Virtualization Ready: Hyper-V User Guide

Prerequisite for the installation of a virtual machine

Storage Method

Each virtual machine must have its own method of storing information.

In this paper we use the image method where the information is placed into a single file which is in fact an image of the virtual machine. Please refer to the appropriate architectures section to know how to create an image in each of them.

Installation Tools

It is necessary that you have the installation medium for the operating system you plan to install on your virtual machines. An image of the CD-ROM (.iso) or a mirror will do nicely.

Here's a short list of sites available to get .iso for Linux :

For more information about the Windows operating system visit: :

* To install the Windows virtual machine you must also have in hand a valid license and key.

Installing a virtual machine

Creating new virtual machines

    1. Launch the Hyper-V Manager

    2. Click Action >> New >> Virtual Machine 


    3. Click “Next

    4. Naming you VM

    5. Click “Next

    6. How much RAM you want allocated to your VM ?

    7. Click Next

    8. Choose the network you want to connect to this VM

    9. Leave "Create a virtual hard disk" and specify the virtual disk size of your VM

    10. Click “Next

    11. Choose the option to install the OS on your new VM (from an ISO file)

    12. Click“Finish” if every thing is OK

    13. Go to “Settings” on you VM 


     14. Remove "Network Adapter" by clicking on "Remove " and then "Ok"



    15. Add a new "Legacy Network Adapter"

    16. Start your VM by clicking "Start"

    17. Install the OS on your VM 

Network configuration


While installing the operating system you will need to enter the correct IP address to get an external connection. Each virtual machine should use a secondary IP address except for the first secondary ip (which serves as gateway to the virtual machine)


Here is an example of a server with two Virtual Machines and Network Configuration.    

Note: IP addresses mentioned in this example are not real but the DNS server addresses are the iWeb's DNS servers (which you can use) 

Primary Ip :
Secondary Ip :
DNS : ,

Secondary IP :
Netmask :
Gateway :
DNS : ,

Secondary IP :
Net mask :
Gateway :
DNS : ,

As you can see, on the server (the host) we have the primary IP address and the first IP address of your secondary IP address range (which will be used as gateway for the VM). Then each virtual machine uses a secondary IP address. 

Important note: If you are behind a firewall in NAT mode, you have private IP addresses assigned to your server - usually a /24 IP range. Your virtual machine will have to use them.  it means if your Xen is configured in Bridge mode, you can use the same gateway for the host and the VM. The gateway is the internal IP of the firewall.

For example, If the firewall has the private IP range, the gateway will be

So first you must make sure that the first secondary IP address is actually configured on the server (the host). Otherwise you can follow this Microsoft procedure.

IP Forwarding

In addition you must ensure that the "ip forwarding" is enabled on the host :

    1. Go to Start >> Run >> Cmd

    2. Type the following commands :

netsh> interface ipv4

    3. Then the following command to view the list of available interfaces

netsh interface ipv4> show int

    4. To view the interface settings, replace "16" by the proper ID :

netsh interface ipv4> show int 16

    5. And finally, the following command to enable IP forwarding :    

netsh interface ipv4> set int 16 forwarding=enabled    


Article is closed for comments.
Powered by Zendesk