How to configure Hyper-V network over RDP with a single NIC

collages
collages used Ask the Experts™
on
On one of our boxes half way across the country has a fresh install of Windows Server 2008 R2 Enterprise with 1 NIC and the Hyper-V role installed.  This NIC is set to a static IP.  Our previou attempts got us disconnected from the host and forced us to reboot the host to disable the guest machines.  Our goal is to have 2 Windows Server 2003 x86 Enterprise servers running inside of this host.

Does anyone have any experience setting up Hyper-V in this environment who can help us navigate this configuration?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I may not be an expert with HyperV but I do have a question - what were you configuring that caused the disconnect?  Were you trying to configure the guest VMs NICs or actually working on the Host NIC?  Stating the obvious, but any changes to the host NIC would cause a disconnect as it went about applying the changes.  Changes to the Guest VMs should not have affected the Host connection you had.  What type of network connection do you have between the Host and the Guests?  NAT, Bridged, etc?

Author

Commented:
In the Virtual Network Manager I had created an external External network with "Allow management operating system to share this network adapter" unchecked, which is where I may have gone wrong and lost the connection.


Top Expert 2012

Commented:
You need to be in front of the server to get this working again. You can try to setup Hyper-v Management on another system then try to reconfigure the network settings from here as well
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Svet PaperovIT Manager

Commented:
You cannot do that over the network anymore. You need a physical access to the server.

Author

Commented:
The server has been completely re-installed.


All I've done so far is disable the IPv6, set the IPv4 to static and install the Hyper-V role.  Haven't yet added a Virtual Network or installed a host.  I wanted to get advice before I did anything this time around.

Author

Commented:
By "server" i mean the host server.

I dumped the whole host server and reinstalled 2K8 R2 Enterprise x64, then disabled IPv6, set the IPv4 adapter to static and installed the Hyper-V role.  Then I logged onto experts-exchange and posted this question.
Top Expert 2012

Commented:
Sorry thought you already had it setup and you lost connection to the Host.

The recommendation is to have multple network cards at least two.

Read this as well.
http://technet.microsoft.com/en-us/magazine/dd744830.aspx
Svet PaperovIT Manager

Commented:
In that case you can add the Hyper-V role. Next, just make sure that you check “Allow management operating system to share this network adapter” when you create a virtual network adapter. That will allow you to share the adapter for managing the host and for the virtual machines.  
This post:
http://www.experts-exchange.com/Microsoft/Applications/Virtual_Server/Hyper-V/Q_24421075.html

Leads to this one:
http://blogs.msdn.com/b/virtual_pc_guy/archive/2009/02/19/script-creating-an-external-virtual-network-with-hyper-v.aspx

Would read both.  Again, not a Hyper-V expert but it seems like they had success and only with one NIC.  Definitely, in any virtual environment, better to (and recommended best practice) use two NICs but seems like you can get it going with one.

Author

Commented:
Yeah, 2 NIC cards definitely seems ideal, unfortunately I'm going to have to try to solve the problem with only one.  I'm going to give these resources a good read.
Top Expert 2012

Commented:
You should be able to run with one but you will lose network connection after making this change.
kevinhsiehNetwork Engineer

Commented:
The mistake was to uncheck the box to share the NIC with the management operating system. When you install the virtual network, that will cause the host to see a new, different network adapter. That new adapter will have default settings so you need to have a DHCP server to give it an IP address or you won't be able to get back to the server. After the virtual netwok has been established you can give the host a static IP. Not much point in giving it a static IP before configuring the virtual network as that will just cause th host to complain about duplicate IPs assigned when you try to statically assign the virtual NIC to the same IP.

If the server is from a tier 1 manufacturer I suggest getting the out of band management module that gives you KVM and power management over the network. For Dell it is iDRAC Enterprise, HP it is iLO. This allows you to get back to your server even if the network settings are messed up, it blue screened, etc. On the Dell it can even share the same network port for by the host (and VMs).  

Author

Commented:
relliott66,


This worked beautifully to create the virtual switch that would previously disconnect my RDC session.

http://blogs.msdn.com/b/virtual_pc_guy/archive/2009/02/19/script-creating-an-external-virtual-network-with-hyper-v.aspx



At this point, the host machine has 2 network adapters..  the physical (with nothing on it except the virtual protocol) and the virtual switch with all the configuration on it.  I've given the virtual switch the static public facing IP assignments.

At this point, I need to give the guest machines their virtual interfaces and attach them to the virtual switch but still have the packets for my RDC session still get routed to the host over the public IP.
kevinhsiehNetwork Engineer

Commented:
As long as your VMs are connected to an external virtual network, everything will get/need its own IP address. At that point everything works just like if they were physical boxes. Your host should not be acting like a router; it should have only 1 IP address assigned to it. Your VMs will need their own IPs.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial