How to Set Up a Virtual Machine on Windows 10

Installing multiple operating systems on virtual PC’s, including different Windows versions and Linux

laptopHyper-V is built in hypervisor client in windows 10 which allows users to create and install other operating systems on virtual PC’s. Hyper-V can run Microsoft operating systems as well as various Linux versions. Before we start learning about Hyper-V let us learn some virtualization terminology:

Virtualization terminology

  1. Hypervisor: Hypervisor can be a computer software, hardware or firmware that is capable of creating and running virtual machines.
  2. Hyper V: Hyper – V is a Microsoft’s official hypervisor which can build virtual machines on X86 – 64 architecture systems. Prior to the launch of Hyper – V, Virtual Pc was the software used for virtualization. Hyper – V came with the release of windows 8.1 as a hardware virtualization component of client editions of windows.
  3. Virtual Machine: A virtual machine is a software computer which is designed in similar computer architecture and functions like a real computer. To run a Virtual machine the physical host should have optimized hardware resources.
  4. Host: Host is a computer running the virtualization platform on it. A host computer has all virtual machines on it.
  5. Guest: A guest operating system that is installed on a virtual machine and which is saved on virtual hard disk is called a guest.
  6. Virtual Hard Disk: A file having .VHD as an extension and which is capable of storing an entire operating system of a virtual machine. It can be used to save files as well.

Virtual Switch

A virtual Switch is similar to a physical switch in terms of functions. A Hyper – V virtual machine cannot directly connect to the network adapters of the physical host computer. A virtual switch acts as a mediator between these two to establish communication in a virtual network. When Hyper – V is enabled one or more virtual adapters are created. You should not disable these adapters as they are used to connect to the virtual switches. 

Steps to install Hyper – V in windows 10:

  1. Click on ‘Start Menu’ and select ‘Program and Features’.
  2. Click on ‘Turn Windows features On or OFF’ in the right hand pane.
  3. Select ‘Hyper – V’ feature from the features list and also select the check box on the below roles.
  4. Hyper – V management tools.
  5. Hyper – V platform.
  6. Click ‘Ok’. A message will be displayed stating, “Windows will now install the required components. You have to reboot to let windows finalize the installation.”
  7. Click ‘Restart now’ button.
  8. After the computer ‘Restarts’, click the ‘Start Menu’ and launch the ‘Hyper – V manager’. You should be able to see your computer name on the left side of the Hyper – V manager console.
  9. In the left pane if you do not find any server to connect then, Click ‘Connect to Server’ on the right pane.
  10. Select ‘Local computer’ in the dialog window that appears. Click ‘Ok’.
  11. If you want to change the location of your virtual machine, click ‘Hyper – V settings’ and you can change the location from here. C
  12. Click on ‘Browse’ and select the default location for the Virtual Hard Disks.

Creating a Virtual Switch:

  1. Launch the ‘Hyper – V manager’ console. In the right pane of the Hyper – V manager console, click on ‘Virtual Switch manager’.
  2. Select ‘New Virtual Network switch’, on the right hand side, select ‘External’ and click on ‘Create Virtual Switch’.
  3. Give an appropriate name to the new virtual switch. Select ‘External’ radio button and from the drop down menu select the appropriate adapter that you want to assign to the virtual switch. Click ‘Ok’.
  4. Click ‘Yes’ in the dialog box to apply the changes you just made.

Hyper-V Training

If you wish to learn more about Hyper-V there are many training courses available. QA run several courses at a  number of venues in the UK aimed mainly at IT professionals.  Microsoft training specialists Paul Brown Training also provide a variety of  IT courses at London locations.