Windows

Windows 2012 FAQ

Hyper-V

1. How do I install Hyper-V on Windows 2012?

How to install and enable Hyper-V on Windows 2012

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.

Import VM

3. How do I convert a Physical Server to a Virtual Server?

First you will need to copy the data from the physical disk to a Virtual Hard disk (VHD) file using the Disk2VHD tool available from Microsoft, on the server to be converted. You can also use the New Virtual Hard Disk wizard in Hyper-V to copy physical disks.

Disk to VHD

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.

4. What do the options on Hyper-V Manager mean?

1. New
1a. New Virtual Machine - Create a new VM
1b. New Hard Disk - Create a new virtual HD using Fixed Size, Dynamically expanding of Differencing of .vhd format.
1.c New Floppy Disk - Create a floppy file in .vfd format
2. Import Virtual Machine - Import a VM from a specified folder to restore, copy or duplicate files to create a VM.
3. Virtual Network Manager - to create or modify virtual networks.
4. Edit Disk - Option to compact, convert (dynamic to fixed), or expand size of a disk.
5. Inspect Disk - Display location, file name, size and max size of a disk.

Inspect disk

6. Stop Service - stops the Virtual Machine Management service
7. Remove Server - removes server from Hyper-V Manager console (no warning given)
8. Refresh - Refreshes window
9. Connect .. - Connects to a VM and opens a console window
10. Settings - Displays settings for a VM incl BIOS, Memory, Processor, IDE/SCSI Controller, Serial Ports, Diskette drives, Name, Integration Serices, Snapshot location, Start/Stop actions.
11. Start - Powers on a VM
12. Turn off - Powers off a VM
13. Shutdown - shuts down a VM in a controlled fashion (needs OS installed)
14. Save - Saves current State of a VM
15. Snapshot - Create a snapshot of a VM (.avhd)
16. Delete Snapshot - Removes an existing snapshot
17. Delete Snapshot subtree -
18. Export - Export VM files to a folder

Export

19. Rename - Renames the Name of a VM
20. Delete - Removes a VM
21. Delete Saved State - Removes a saved state (see Save)
22. Help - Displays help about Hyper-V
23. Pause - Pauses a running VM machine
24. Resume - Unpauses a paused VM machine
25. Restart - Stops and restarts a VM Machine

5. What do the toolbar and menu options on the VM machine window mean?

Toolbar

Ctrl+Alt+Del - Send Ctrl+Alt+Del key sequence
Start - Start a VM
Turn off - Power off a VM
Shutdown - Shutdown a VM in a controlled fashion
Save - Save state of VM
Pause - Pause a VM
Reset - Stop and restart a VM
Snapshot - Create a snapshot of the VM
Revert - undo a change

Menus

1. File
1a. Settings - Display settings of the vm (Ctrl+O)
1b. Exit - Close window
2. Action
2a. Ctrl+Alt+Del (Ctrl+Alt+End) - Send Ctrl, Alt and Del key sequence
2b. Turn off (Ctrl+S) - Power off a VM
2c. Shutdown (Ctrl+D) - Shutdown a VM (needs OS installed)
2d. Save (Ctrl+A) - Save VM's state
2e. Pause (Ctrl+P) - Pause VM from running
2f. Reset (Ctrl+R) - Stop and restart a VM
2g. Snapshot (Ctrl+N) - Create a snapshot of the VM
2h. Revert (Ctrl+E)
2i. Insert Integration Services Disk (Ctrl+I) - Install drivers and VM tools
3. Media
3a. DVD Drive >
3a.i Eject
3a.ii Insert Disk (ISO images)
3a.iii Capture F:
3b. Diskette Drive >
3b.i Eject
3b.ii Insert Diskette
4. Clipboard
4a. Type clipboard text (Ctrl+V)
4b. Capture screen (Ctrl+C)
5. View
5a. Full Screen Mode (Ctrl+Alt+Break)
5b. Toolbar (Ticked)
6. Help
6a. Help Topics (F1)
6b. About Virtual Machine Connection

6. What guest operating systems can I install on Hyper-V?

Windows 2003 x86 or x64
Windows 2003 R2
Windows 2008 x86 or x64
Windows 2008 R2
Red Hat Enterprise Linux 5.2 or later
SusE Linux Enterprise 10 or later
Sun Solaris = only 32 bit OpenSolaris 32 bit (not supported)

7. How do I remotely manage Hyper-V from a client machine?

If you have Windows Vista or 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 (see VM Backups).
Make sure any existing snapshots are removed, as backups require the use of Snapshots to back up VMs.