Setting up a Virtual Machine using Additional IPs and Hyper-V over a vRack

How to use Hyper-V with Additional IPs over a vRack

Last updated 25th February 2021


This guide will take you through the process of installing Hyper-V, associating a virtual switch, and configuring a VM to work with Additional IPs over a vRack.


  • A vRack compatible dedicated server with Windows Server installed
  • An ISO for the OS that will be installed on your VM (CentOS 7 will be used as an example in this guide)
  • A vRack delivered to your OVHcloud account
  • An Additional IP block of 4 or more IPs
  • Access to the OVHcloud Control Panel

This feature might be unavailable or limited on servers of the Eco product line.

Please visit our comparison page for more information.


This guide assumes that you have already installed Windows Server, connected via Remote Desktop, and have already assigned your dedicated server and IP block to a vRack. For more information on these steps please refer to steps 1 through 4 on our guide: Configuring the vRack on your dedicated servers.

Installing Hyper-V

The first step you will need to do is install Hyper-V.

In the Server Manager, click Add roles and features.

Installing hyper-v

On the Wizard, click Next to proceed to the next page.

Installing hyper-v

Make sure "Role-Based or feature-based installation" is selected and click Next.

Installing hyper-v

Ensure that "Select a server from the server pool" is selected and that the server you are working on is selected on the list. Then click Next.

Installing hyper-v

In the server roles list, check "Hyper-V" and then click Next.

Installing hyper-v

On the "Features" page, you can simply click Next.

Installing hyper-v

Next, you are asked to identify which network connection on your server you want to use for the virtual switch.

To do this, open a Command Prompt or PowerShell and execute the command ipconfig /all.

Note that in our example Ethernet 2 is the interface used for the vRack. However, it is possible that the vRack NIC is a different interface in your configuration. The correct one to select will be the interface that does not have the server's main IP address or has a self-assigned IP (169.254.x.x).


Once you have this information, go back to the 'Add Roles and Features Wizard' and click Next.

Installing hyper-v

Now select the adapter for the vRack that you identified in the Command Prompt or PowerShell, and click Next.

Installing hyper-v

The next two pages are for choosing migration and storage options. You can configure those as you please.

Once you reach the confirmation page, check "Restart the destination server automatically if required" and click Yes, then Install.

Installing hyper-v

Hyper-V will now install and the server should reboot.

Creating and Configuring a VM

Once the server has rebooted, log in and open Hyper-V Manager.

Select your server on the left and click New. Select "Virtual Machine" in the context menu.


In the "New Virtual Machine Wizard", you can configure the VM as you please. When you reach the "Configure Networking" step, make sure to select the virtual switch. Once selected, click Next to continue.


In the "Installation Options" section, be sure to add the ISO for the operating system you are going to install. Click Next to continue.


When you reach the "Summary" page, ensure that the "Network" (Virtual Switch) and "Operating System" settings are correct and click Finish.


Installing the OS and Configuring the IP

When you start the virtual machine, the OS installation should launch automatically. If not, you will likely get the following error message:

"The unsigned image's hash is not allowed (DB)"

If this occurs, you will need to disable "Secure Boot".

Turn off the VM and click on Settings.


Next, open the "Security" section, deselect "Enable Secure Boot", then click Apply.


Once done, start the Virtual Machine again.

Configure the operating system as you prefer.
As for the networking settings, you will need to set a static IP.

In our example, the IP block assigned to the vRack is The following is the breakdown of the block: - Network Address (Reserved - Not usable) - First usable IP - Last usable IP - Default Gateway (Reserved - Not usable) - Broadcast Address (Reserved - Not usable)

Using for this example, the configuration should look like the following:

Subnet Mask:
DNS: (You can put another DNS if you wish.)

Once the OS is installed, it should have a network connection established.

You can also see in the example below how the ifcfg-eth0 file should appear.


Go further

Join our community of users on

Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.

These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices exclude VAT. VAT may vary according to the customer's country of residence.