To install centos 7 on hyper-v windows Server

Step-1: in hyper-v manager select the host machine and right click –>new –>virtual machine

 

image

Step-2: follow the wizard

give name to vm

 

image

Step – 3: choose the generation

we will be using the  generation  2 to take advantage of some of the features.

image

Step – 4: Assign the memory for the server

[ the host server i am using got plenty of memory for me to play around so i am giving this vm 8gb]

image

*not using dymanic memory at this movement , from my understanding using dynamic memory will allow me to over provision the memory. Basic idea is that not all vms will be using 100% of its memory which are allocated to them, by backing on this principle we can allocate limited memory to multiple vms ie.,for example 8gb host memory can be allocated to 5 x2gb vm with dynamic memory allocation, here 2gb memory over provisioned against 8gb actual memory. this popular practice for many vps hosting companies 20% to 25% of memory are over provisioned.

 

Step –5: Assign network connection interface.

*the best practice is usually have a separate interface for guest vms and host server esp if you have multiple vms, gives you best network performance.

 

image

 

Step-6: Define virtual hdd.

I am going to live this to defaults, as i already move my default location to E: against the usual location in c: drive.

 

image

Step-7:  Select the install media

you can either mount the iso later when you switch on the vm or assign it now.

image

i am going to mount cento7 minimal install iso now

 

image

Step-8: Verify the summary

it might be a good idea to copy the summary for future reference  and hit finish

image

Step-10:  Now the machine is created, you have to switch it on to continue further, before that some settings still need to be tweaked.

image

Step -11:  Adjust the vm settings before turning it on

right click on the vm –> settings

image

image

Step – 12: goto the firmware under hardware panel and disable the secure boot option

image

Step-13: adjust the boot order, move the network boot to last and hdd boot option to second

image

Step-14: adjust the virtual processor,

depend on the need adjust the number of virtual processors, and tweak the reserves for this particular machine, i am going to give this machine 4 virtual processors and leave the rest to defaults

image

Step – 15: under management panel,you can adjust the other options like integration services, i am going to enable the guest services too, its optional not really necessary

image

 

other options like paging fine location can be moved to ssd hdd if you have one to help improve the preformance, if not can just leave them alone

Automatic start & stop actions helps to define how the hyper-v should behave during start up and shutdown of hyper-v services.

 

Step-16: Setting vm to start automatically after the host server boots up

under automatic start action, change to always start this virtual machine automatically and it might also be a good idea to put some start delays so it does not over load the machine during boot up process.

image

after all the settings are adjusted hit apply to save it

 

Step-17: Proceeding to installation of the centos.

right click and connect to the vm,

can confirm the install media is mounted under media-> dvd drive

 

image

Step-18: Press the power on button and proceed to install the vm

[ i am using a second vm as i noticed that i did not catpure the screen shoots properly, but the steps are same]

install screen

Click on each menu and define the defaults

disk

Set-up your network settings

network

Enter your date and time zone

time

Once all the settings are done

Hit begin installation.

hit install

Step-19:  Set root password and wait for installation to complete.

set root password

set root password2

might have click done 2 times if the password is weak.

wait for finish

and that is it

Step 19: Once the installation is complete, reboot and you will have a fresh cento7 installed.

reboot

Step – 20: After rebooting have to some initial setups

firstlogin

Step – 21: After login run update command to update to latest libraries

“yum update –y”

run first update

 

run first update2

Step-22: The default minimal install does not come with  ifconfig tool to help find the ip address, ifconfig is packaged under net-tools

yum install net-tools -y

 

install nettools

 

after install you can check the ipaddress of the server using ifconfig command.

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you a Robot * Time limit is exhausted. Please reload CAPTCHA.