≡ Menu

How to Create Virtual Machine from Hyper-V Manager Windows Server

As a Linux sysadmin, for some reason, if you are thrown into a virtualization environment that also has Windows, you should be aware that there two ways to create VM in a Hyper-V server.

You can create VM either using the powershell commands from the Hyper-V server, or using a GUI interface from Hyper-V manager, which is a Hyper-V role enabled windows server, as explained in this tutorial.

1. Launch Hyper-V

Open the Hyper-V Manager on the server. Right click on server and choose New –> Virtual Machine from the menu as shown below.

Hyper-V Manager New VM Menu

2. Specify New VM Name

Press next in “Before you begin” screen, which gives some high-level instructions. In the “Specify Name and Location” screen, enter the name of your Virtual machine and click “Next”.

Please note that by default the new VM will be stored under “C:\ProgramData\Microsoft\Windows\Hyper-V”. If you want to store the new VM in a different directory, select the check-box, and enter a new location. But, in most cases, you don’t need to do this. Just use the default directory.

Hyper-V Specify New VM Name

3. Specify Generation

Select the Virtual machine Generation in New Virtual Machine Wizard screen and Press next.

By default, it will be in Generation 1. You can also select “Generation 2”, which will give additional features like ISCSI and PXE boot. But, there is a restriction is you choose Generation 2. You can only install “Windows Server 2012” or “Windows 8 64-bit”.

Hyper-V VM Generation 1 or 2

4. Specify RAM Size

Enter the amount of RAM for your New virtual machine. As you can imagine, this will not accept the amount of RAM more than Total size of your physical machine (Hyper-V server).

Hyper-V Assign VM RAM

5. Specify Network Adapter

Choose the network adapter that the new virtual machine need to use, and press next.

6. Virtual Hard Disk Info

In this screen, provide the name, file location, and size for the new virtual hard disk and press next.

Please note that you can also use an existing virtual hard disk from this screen, or skip the virtual hard disk skip altogether and do it later.

Hyper-V Virtual Hard Disk

7. Installation Options

Choose installation options as per your requirement, and press next.

If you want to install the guest operating system from the CD/DVD, insert the disk into the physical machine (Hyper-V server) CD/DVD drive and choose “Install an operating system from the bootable CD/DVD-ROM” option.

If you have an ISO image file, save it in Hyper-V server somewhere, and provide the ios file location.

For PXE boot options select, “Install an operating system from network-based installation server”

Hyper-V VM Installation Options

8. Create New VM Configuration

The summary page provides machine configuration details. Click “next” to finish New Virtual Machine Wizard. This will complete the machine configuration.

Hyper-V Complete New VM

9. Connect to new VM

To install a guest OS, right click and select connect option on the new virtual machine from the Hyper-V manger console.

Hyper-V Connect to New VM

10. Power Up the VM

Press the power button to power-up the new Virtual machine.

Hyper-V Power-On New VM

11. Install Guest OS

In my case, I have loaded Windows 7 ISO image of the guest OS, which will be used to boot up. Follow the on-screen instructions to install the guest OS on the new VM.

Hyper-V Install Guest OS
Add your comment

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

Comments on this entry are closed.

  • anthony February 20, 2014, 4:12 am

    found TGS series of tutorials very useful. Thanks
    would you spend some time with cloud stuff – openshift maybe?

  • sivakrishna February 20, 2014, 6:49 am

    great and thank you so much

  • Biff Martin February 20, 2014, 7:40 pm

    This is a great how to guide. thanks. By the way, how do you do this using command line tools?

  • Satheesh February 25, 2014, 5:30 am

    Hi Biff Martin,

    We have explained how to create Virtual machine using Powershell commands in previous article, Please look into that it will help you.

    Fyi..
    How to Create Virtual Machine in Hyper-V Server using Powershell Commands

    http://www.thegeekstuff.com/2014/02/create-vm-from-powershell/