Linux VMs on HyperV
Lab:
-
Assumption: Already windows server with hyper v up and running Refer
-
For lab purposes to create the test vm’s we will be using vagrant
-
Vagrant helps in creating virtual machines easily.
-
Manual steps of Creating Virtual Machines Refer Here
-
Tomcat VM Setup:
- To setup tomcat and centos7 vm
mkdir tomcat cd tomcat vagrant init centos/7 vagrant up
- When asked about network switch select "InternalNAT"
- If needed To delete the virtual machine use
vagrant destroy
- Now lets install tomcat
sudo yum install java-1.8.0-openjdk-devel tomcat -y
-
Apache VM Setup:
- Commands are
mkdir apache cd apache vagrant init centos/7 vagrant up # choose the suitable driver vagrant ssh sudo yum search httpd # install apache sudo yum install httpd -y sudo systemctl enable httpd.service sudo systemctl start httpd.service
-
Ensure you have this lab set up ready, As in next class we will be creating
- Azure Migrate Project
- Starting the Assesment of the Virtual Machines