![]() |
Hyper-V Guide |
Updated: 17 Oct 2021
1. How do I install Hyper-V on Windows Server?
Load Server Manager, select Add Roles and Features and install the Hyper-V role. Then you run Virtual Network Manager to create your networks, and then you can new Virtual Machines to your server.
See instructions for Hyper-V for Windows 2022.
See instructions for Hyper-V for Windows 2019.
See instructions for Hyper-V for Windows 2016 .
See instructions for Hyper-V for Windows 2012 (R2).
How to install Hyper-V on Server Core.
2. How do I Clone a VM or set up a VM Template to use for new machines?
To save time, it is a good idea to set up a VM machine which can be cloned to create new VMs with all the patches and minimum applications already installed. First you need to create a VM setup, then use the Export option to export the VM to a different location. This is ready to be used for cloning by using the Import option to create a new VM from the exported VM.
3. How do I convert a Physical Server to a Virtual Server?
You can use the New Virtual Hard Disk wizard in Hyper-V to copy physical disks.
Then create a new VM using Hyper-V Manager using the same or better settings for processor, memory attributes but do not create a new VHD disk, instead select the option to use an existing VHD disk.
You can use an MDT server to capture the image or alternatively, use the DISM command directly (see ADK or MDT toolkit) to create an image of a disk.
e.g. DISM /Capture-Image /ImageFile:D:\Images\Disk1.wim /SourceDirectory:C:\ /Name:"Server1 Image"
Image can be converted from WIM to VHD using a PowerShell script.
A Virtual Machine can be restored to a physical machine from a full system backup. You may need to install boot disk drivers too.
4. What do the options on Hyper-V Manager mean?
5. What do the toolbar and menu options on the VM machine window mean?
6. What guest operating systems can I install on Hyper-V?
64-bit Versions
32-bit Versions
The following Linux distributions are supported with LIS (Linux Integration Services) or BIS (FreeBSD Integration Services) included:
It is possible to install other similar variants of Linux on Hyper-V including:
7. How do I remotely manage Hyper-V from a client machine?
If you have Windows 7 Pro or better, install the Remote Server Management Tools (RSMT) to get the Hyper-V Tools management console.
A more advanced version for Enterprise environments is called System Center Virtual Machine Manager.
8. Can I control Hyper-V from the Command line?
Yes, if you install the Windows Powershell feature and run C:\Temp\HyperV.ps1 to load the commands, you can control Hyper-V with the following commands:
Add-VMDisk, Add-VMDrive, Add-VMVMFloppyDisk, Add-VMKVP, Add-VMNewHardDisk, Add-VMNIC,
Add-VMSCSIController, Apply-VMSnapshot, Choose-VM, Choose-VMExternalEthernet, Choose-VMNIC,
Choose-VMSnapshot, Choos-VMSwitch, Compact-VHD, Get-VMSummary, Start-VM <name>, New-VM <name>,
Start-VM, Stop-VM, Suspend-VM, Shutdown-VM, Get-VMMemory, Get-VMMemory, Get-VMSnapshot
9. How do I backup my Hyper-V VMs?
Any good backup solution that is VSS (Volume Shadow Copy) aware can be used to backup Virtual Machines.
All the virtual machines should have the Integration Services drivers and tools installed.
Dynamic disks should not be used on Virtual Machines.
Windows Server Backup should have VSS enabled for Hyper-V backup.
Make sure any existing snapshots are removed, as backups require the use of Snapshots to back up VMs.
10. Can I set up Containers for my applications?
Windows server supports containers which allow you to virtualise and contain applications on the same server.
Just install the Containers feature from Windows Server.
This uses the Docker engine and client to provide containers.
You can also set up a Kubernetes cluster on Hyper-V. For example, you can install Hyper-V and setup Ubuntu 18.04 to host the
Kubernetes services. For Kubernetes on Windows nodes, see these instructions.
11. How do I set up a Virtual Switch for networking the host and VMs?
Use New Virtual Switch to setup Virtual LANs to connect your VMs to the network.