In Part I, I discussed my hardware and my general concept of what I was going to build. Part II discussed adding the Hyper-V Role to a Windows Server 2008 machine to become the host. Part III will cover some different ways of creating VMs for use in your new Hyper-V host.
As with any hypervisor or VM environment, we need to be able to build fresh images to virtualize. This is pretty easy with Hyper-V Manager that is installed when you enable the Hyper-V Role. When you open up Server Manager, under Roles, you will find the newly enabled Hyper-V.
When you select the Hyper-V server under Hyper-V Manager, you will see the following panel open up on the right of the console.
From here you can modify the General Hyper-V setting along with creating Virtual Networks that the VMs will use. First, we will take a look at the Hyper-V Settings.
The first option is where will your Virtual Hard Disks be placed and accessed from. The option just below that is where will your Virtual Machines be placed and accessed from. You will see in my example, that I have place Virtual Hard Disks in their own subfolder under my Hyper-V root, but my Virtual Machines are being placed at the Hyper-V root level. First, when Hyper-V create VMs, it does not create friendly names for the Virtual Machines on disk. Friendly names are available in the console, but that is not how they are stored. The filenames created with same information that Hyper-V tracks everything internally and that is through GUIDs. So, for me, having a simple path to store the Virtual Machines configurations was the way to go. Each VM get’s its’ own folder created labeled with the GUID along with a configuration file with the same label.
The next four option under User I tend to just leave alone. You can change them if you want, but I have not found a reason to mess with them yet. Click OK to save the changes.
Now onto the Virtual Network Manager.
Under Virtual Networks, select New virtual network and you will see three options; External, Internal, and Private. External will use the physical network card for access to the network. Internal will allow connections only between the VMs and the VMs to the host. Private will allow connections between VMs only. You will see in my example, that I have set up an Internal and an External connection. I typically use this configuration for enabling network access through a gateway VM in my lab.
There is also an option for stamping a VLAN ID on these segments if you are routing by VLAN. Click OK to save and close.
Time to build a VM…….
Click on New\Virtual Machine
This will open the virtual machine wizard.
Click Next.
Give the VM a name. This name is what will be displayed in the console. If you wish to store the VM somewhere else beside the default location set earlier, check the box and change the location. Hit Next.
Specify how much memory you wish to assign to your VM. Hit Next.
Choose the network to use for this VM. Hit Next.
Choose a name for the Virtual Disk (or just leave the pre-assigned) and location along with general size. The disk will dynamically grow up to this size. Hit Next.
Choose if you would like to install the operating system later, from a CD/DVD, ISO image, floppy disk, or network install. I typically have everything in ISO, so that is what is always use. Hit Next.
The summary screen shows the options you chose. Hit Finish to create the virtual machine. The VM is created and you will have a console with your new VM.
Here is mine with a few VMs in place and one of them running.
Yeah, I know. That’s great David, but what if I have some virtual machines from VMWare that I want to load up into Hyper-V. Not a problem, VMTookit has created a tool that will take your VMDK files from VMWare and convert them to VHD format that Hyper-V can use. You can download Vmdk2Vhd from their website. Place the newly created VHDs into your Virtual Disk folder for Hyper-V.
All that is left is to create a New Virtual Machine using the steps above, but when it comes to selecting a Virtual Hard Disk, select them as below.
Point to the newly created VHD and continue on.
TADA! You have just create a new VM that uses your old VMWare image.
Once you have your images in the console, right-click on them and select Start. Once they start running, right-click on it and select Connect to open up the server console to work with it.
Next time we look at the value of exporting and importing virtual machines in Hyper-V.