blog posts

How To Build A Virtual Machine Using Client Hyper-V?

How To Build A Virtual Machine Using Client Hyper-V?

In This Article, We Want To Use Hyper-V, One Of The Internal Components Of Professional And Enterprise Windows 10 (64-Bit), To Build And Manage Virtual Machines And Virtual Networks In A Single Workstation.

Client Hyper-V and VirtualBox are client hyperlinks and software used to manage virtual machines installed on a workstation. If you do not want to use Client Hyper-V or VirtualBox as your preferred hypervisor, other hypervisors such as VMware Player are required. In this series of tutorials, we will use the above three hypervisors.

In this project, we want Hyper-V, another internal component of Windows 10 (64-bit) professional and enterprise, to build and manage virtual machines. The first step is to enable the virtualization feature on your motherboard BIOS or UEFI because Hyper-V uses this technology, after which you will be able to build virtual machines in Hyper-V and install operating systems in the virtual machine. And use virtual networks as a single workstation. Follow the steps below to complete the project.

Your CPU must support the hardware-assisted virtualization header HAV feature and be enabled from within the motherboard BIOS or UEFI settings for Hyper-V to work. If you are not sure if this option is enabled, restart your computer. Troubleshoot option when booting the system. Select Advanced options and then select UEFI Firmware Settings. The computer is restarted twice, and this time you enter the UEFI settings.

The above part is enabled in the CPU configuration section in the figure below. Make sure the hardware-assisted virtualization feature is enabled in this section. Also, make sure that each of the HAV subset settings is enabled. Save the settings and exit the UEFI environment. Now restart the system and log in to Windows.

  1. By default, Hyper-V is disabled in Windows 10. Right-click on the Start button and select Apps and Features to activate it. Scroll down the page and select Programs and Features. Click Turn Windows features on or off. Activate the Hyper-V check box and click Ok. When Windows is done, restart the system for the changes to take effect.
  2. From the Windows Administrative Tools folder in the Start menu, run Hyper-V Manager. In the Hyper-V Manager side panel, select the host computer’s name at the bottom of the Hyper-V Manager.
  3. To ensure that the virtual machine on your network has access to the Internet, you must first create a virtual switch in Hyper-V. Click the Virtual Switch Manager option in the Actions panel to make a virtual machine switch.
  4. Pairing a virtual switch to a physical network adapter in a virtual machine allows virtual machines to access the physical network. In the Virtual Switch Manager dialog, make sure the New virtual network switch is selected in the left pane. Select the External option in the right panel. Now click on Create Virtual Switch. In the following dialog, make sure the Allow management operating system to share this network adapter option is enabled. Then select the Apply button. Click Yes in the message that appears. Your virtual local network now has a virtual switch.

Close the Virtual Switch Manager dialog.

Build a virtual machine

Follow these steps to build a virtual machine:

  1. In the Actions panel, click on the Quick Create option. Use the following values ​​for the new virtual machine :
  • Name the virtual machine VM1 or VM_Lab_A.
  • Click the change installation source option and select two .iso or .vhdx files. (.Iso file is a Disk Image File that is a virtual DVD or CD. A .vhdx file is a virtual hard disk.)
  • Make sure the windows Secure Boot option is enabled.
  • Specify that the virtual machine can use the new virtual switch you created in the previous section.
  • Select the Create Virtual Machine option.
  1. Once the virtual machine is built, you can change the virtual machine settings to suit your business needs. If you click the connect button and then Start, the virtual machine will run. If you use an ISO file as input for the operating system installation, the message Press any key to boot from CD or DVD appears, pressing a key starts the boot process from the ISO file. The following figure shows a virtual machine running and booting from an ISO file.

  1. After the installation of Windows on the virtual machine is complete, run the Edge browser to make sure that the virtual machine can connect to the Internet.

Note: If you have problems with the boot process from the ISO file, it is better to increase the primary memory size in the Settings menu. The more you increase the virtual machine‘s main memory, the less the host machine’s main memory decreases. On 64-bit Windows, you need 4 GB of main memory and at least 2 GB of main memory.