Setting up VMs for migration in Hyper V
- To create vms in Hyper V we will be using a software called as vagrant
choco install vagrant -y
-
create the following folder structure
- tomcat
- vagrant init centos/7
- vagrant up –provider hyperv
- apache
- vagrant init centos/7
- vagrant up –provider hyperv
- tomcat
-
Now install git for git bash
choco install git -y -
Enable password authentication for centos machines
sudo vi /etc/ssh/sshd_config (PasswordAuthention yes)
sudo service sshd restart
- Now connect from git bash using
ssh vagrant@<ipaddress>(password is also vagrant) - Now login into apache vm
sudo yum install epel-release -y
sudo yum install httpd -y
sudo systemctl enable httpd
sudo systemctl start httpd
- Now login into tomcat vm
sudo yum update
sudo yum install epel-release -y
sudo yum search openjdk
