AWS Classroom Series – 06/July/2021

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
  • 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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube