Creating a Virtual Machine in Hyper-V

Published on
3,106 Points
Last Modified:
Joseph Hornsey
I built my first network in 1994 using PowerLAN.  From there I messed around with NetWare and then moved to Windows NT and Cisco.
Want to create a VM?  Here's how you do it.

Virtualization is incredibly useful.  Among other things, the ability to create virtual machines allows one to consolidate hardware, create more resilient networks and play around in lab environments without investing in expensive hardware.  I'll show you how to create a basic virtual machine.

I'm using Windows 10 Professional, but the steps are pretty much the same in all versions of Windows that have Hyper-V.

First, you need to make sure Hyper-V is installed on your computer.  Once that's done, launch your Hyper-V manager.

Creating a Virtual Machine

In Hyper-V Manager, select "New" under the "Actions" pane on the right side of the Hyper-V Manager window:

When the wizard launches, just click next:

Before you begin.png

I'm creating a virtual router for a test environment, so I'll be installing Ubuntu Linux.  It doesn't require a lot of resources, which is nice.  You'll want to make sure you set up a virtual machine that has the settings you need.

For the "Specify Name and Location" window, give the VM a name and then decide where you want to store it.  Then, click "Next":

Name and Location.png

You'll need to choose what generation machine you'll create.  If you're migrating a VM from a previous version of Hyper-V, if you're installing a 32-bit OS or you're creating a non-Windows VM, you'll want to create a Generation 1 machine.  Otherwise, go with Generation 2.  I'm installing Linux, so Gen 1 it is!

In the "Specify Generation" window, select the appropriate generation and click "Next":


When it comes to memory and drive space, make sure you configure settings that are adequate for the intended purpose of the virtual machine.  For my little router, I don't need much, so 2GB is fine.  Regardless, I recommend using dynamic memory... it keeps things efficient by only allocating physical memory when necessary.

In the "Assign Memory" window, enter the appropriate amount of memory and ensure the "Use Dynamic Memory for this virtual machine" box is checked and then click "Next":

Assign Memory.png

When it comes to networking, you need to select a virtual switch to use for connectivity.  Or, you can simply decide to not use anything.  I need connectivity, so I'm selecting a virtual switch.

In the "Configure Networking" window, select the desired connection and then click "Next":

Config Net.png

In the "Connect Virtual Hard Disk" window, give your VHD a name, browse to where you want it stored, and give it a size appropriate to its use.  Once you're satisfied, click "Next":

Connect Vir Dsk.png

You can choose several ways to install your OS.  It doesn't really matter at this point; you can always mount media later.  I've got the ISO downloaded and ready to go, so I'm going to go ahead and mount it now.   This doesn't actually install the OS; it simply mounts the media and the next time you launch the VM, it will boot to that media.

In the "Installation Options" window, select the appropriate option and configure it.  Once you're done, click "Next":

Install Opt.png

By the way, you're not hallucinating.  There actually is an option to install from floppy disk.

In the "Completing the New Virtual Machine Wizard" window, click "Finish":



That's it!  Now you can connect to the VM, install the OS and have just a whale of a time.

Hope you find this useful!



Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month