Hyper-V is a hypervisor built into Windows which can be used to host virtual machines. The role can be installed either through the command line interface (CLI) with PowerShell, or through the graphical user interface (GUI).
Firstly, we need to create the virtual machine. Secondly, we install Windows server 2016 on the Virtual Machine.
Open Hyper-v Manager. In the right pane, right-click on New tool and choose Virtual Machine.
or Right click your host machine name just below Hyper-v Manager & Select > New > Virtual Machine. A new window will be opened.
You have nothing to do in the Welcome page. Just click on Next button.
In the Specify Name and Location page you need to assign a name for the virtual machine. Then specify the path which you want to store VM’s files in. Then click on Next button.
In the Specify Generation page, you have to specify the generation of the virtual machine. You have got two options: Generation 1 and Generation 2. Generation 1 supports both 32-bit and 64-bit processor architectures. Generation 2 supports only 64-bit processor architecture. Also be aware that once you select one of the generations, later you can’t change that.
Assign the memory based on MB in the box next to startup memory. Put a mark in the vacant box next to Use dynamic Memory for the virtual machine. It is a very useful option. Selecting this option, virtual machine uses memory dynamically. It means it uses the amount of memory which is needed, not the all of the memory which is specified. If you don’t select the option, the amount of memory you specified for the virtual machine would be abstracted fully when virtual machine is turned on. Click on Next button to move to the next page.
Network adapter is the tool which a machine can be connected to network through. Use a network adapter that you have created before. Then click on Next button. Here we are selecting Not Connected as we did not created any virtual network. How to create virtual network we will show in another post.
You need to connect the virtual machine to a virtual hard disk. For the purpose, click on Create a virtual hard disk. All Windows server files would be copied in the hard disk which you connect the virtual machine to. You can specify name, location and size for the hard disk. By default, the location of the hard disk is the folder which you have stored virtual machine files inside. If you want you can change the location. If you have created a hard disk before, select Use an existing virtual hard disk and then specify path. While you’re done, click on Next button.
Select the Install an operating system from a bootable CD/DVD-ROM option. Then elect the Image file (.iso) file. You need to have the operating system with .iso extension. Type the path where you have stored the image file. If you don’t know the path, click on Browse button and search for the location of the image file through file explorer. When finished click on Next button.
Finally we’re done. We created the Virtual machine. Click on Finish button to close the wizard.
Our Virtual Machine Node1 is ready to use.
We are ready to install Windows server 2016 on virtual machine. In the right pane, right-click on Connect or Open Hyper-v Manger and right-click on the Virtual machine name which you have created. Select the Connect option. Virtual machine windows will be opened.
Click on Start button to turn on the virtual machine. Also you can click on Action in the menu bar and select Start.
It is the time to specify installation language, time format and keyboard. When finished click on Next button.
We are ready to go. Just click on Install now button shown in the picture below to start the installation.
Select the appropriate edition that meets your needs. I choose Datacenter edition with full GUI (Graphical User Interface). Then click on Next button.
After that normal process of OS installation….