Problems with Virtual Network Configuration in Hyper-V

I’m having some confusion regarding the proper way to set up a network adapter for a VM.  I first setup a new external virtual network (NET1), which I bound to my real Broadcom NIC.  Then, in my VM settings for VM1, I set NET1 as the network adapter.  Problem is, it’s not working.  What am I doing wrong?
tballinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Syed Mutahir AliTechnology ConsultantCommented:
You haven't provided what is the Host OS and Guest OS ?

Assuming you have the windows hyper-v role installed.

It is a best practice to use a separate network card for Hyper-V Virtual Machines and a separate NIC for Hyper-V Host.

You can also use just one NIC too.

Now, if you have only ONE NIC, you would create a virtual network via "Hyper-V Manager" > Virtual Network Settings / Manager, set the type as "External", bind it to the NIC which is physically connected to your LAN Switch.

Once thats done, you simply create a virtual machine, go into the virtual machine settings and assign that machine that Virtual Network.

If still it doesn't work, then try using the "Legacy Adapter" for your Virtual  Machine.

Sometimes, with some nics (HP QuadPort), there have been some driver issues on R2, for which you simply remove all virtual networks, remove nics from the device manager of the host server and then reboot to let Windows detect and install them.

http://www.virtuatopia.com/index.php/Understanding_and_Configuring_Hyper-V_Virtual_Networks

http://blogs.msdn.com/virtual_pc_guy/archive/2008/01/08/understanding-networking-with-hyper-v.aspx
 
 
0
msmamjiCommented:
in the VM do you have the guest NIC as showing "UP" or "not connected" or "limited connectivity"?
are you using DHCP or static IP?
0
tballinAuthor Commented:
The Hyper-V host has its own NIC.  (There are 4 NICs in this system - 1 for the Hyper-V host and 3 for VMs)

In the VM the NIC shows up as "limited connectivity", and it is configured to use a static IP.

FYI: This is a Win2k8 R2 server core install with the Hyper-V role enabled.



0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

msmamjiCommented:
Have you made sure that the IP information is correct?
The NIC to which the VM is connected has correct IP info?
trying pinging the gateway IP address from host machine?

Regards,
Shahid
0
Syed Mutahir AliTechnology ConsultantCommented:
Have you tried clicking on the "Diagnose" option (right click network card and diagnose) and see if that helps ?

As Shahid has mentioned to check a few things, check them and report back.

Which network card is that ?

are you using all 3 nics as 3 different virtual networks ?

are these HP NICS ?

Once you haev verified what Shahid has asked you and if that doesn't helps at all then :

if YES, then remove the virtual network, remove the nics from the device manager (uninstall / delete drivers) and reboot, let windows detect the drivers.
0
tballinAuthor Commented:
I have tried "troubleshoot problem" on the VM, but that results in "Troubleshooting couldn't identify the problem."

The IP information in the VM is correct, however, the IP information of the NIC the VM is connected to is picking up a DHCP address.  To be more specific, the Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client) #4 (Which now shows up as "Ethernet adapter Local Area Connection 6:" on the Hyper-V host machine - see below) is connected to virtual network "ABC2", and VM "ABC2" is set to use virtual network "ABC2".  However, the Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client) #4 (Now LAC #6) is getting the DHCP assigned 192.168.1.105 address, but the VM it's connected to is set statically to 192.168.1.5.

And again, I'm working on a server core install, so I'm not quite sure how I'd remove the NICs from device manager.


ipconfig /all from Hyper-V host:

Windows IP Configuration

   Host Name . . . . . . . . . . . . : abc1
   Primary Dns Suffix  . . . . . . . : acme.com
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : acme.com

Ethernet adapter Local Area Connection 6:

   Connection-specific DNS Suffix  . : acme.com
   Description . . . . . . . . . . . : abc2
   Physical Address. . . . . . . . . : A4-BA-DB-08-B9-00
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::d9d2:1e5e:f286:1ec8%316(Preferred) 
   IPv4 Address. . . . . . . . . . . : 192.168.1.105(Preferred) 
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, April 13, 2010 3:30:08 PM
   Lease Expires . . . . . . . . . . : Wednesday, April 21, 2010 3:30:09 PM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.8
   DHCPv6 IAID . . . . . . . . . . . : 1067760347
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-3C-4B-9F-A4-BA-DB-08-B9-02
   DNS Servers . . . . . . . . . . . : 192.168.1.22
                                       192.168.3.4
                                       192.168.2.4
                                       192.168.40.5
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection 3:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client) #3
   Physical Address. . . . . . . . . : 00-10-18-6A-EA-D2
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Local Area Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client) #2
   Physical Address. . . . . . . . . : 00-10-18-6A-EA-D0
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client)
   Physical Address. . . . . . . . . : A4-BA-DB-08-B9-02
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::a8b5:46ab:1edf:6fb3%3(Preferred) 
   IPv4 Address. . . . . . . . . . . : 192.168.1.4(Preferred) 
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 61127387
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-3C-4B-9F-A4-BA-DB-08-B9-02
   DNS Servers . . . . . . . . . . . : 192.168.1.22
                                       192.168.2.4
   NetBIOS over Tcpip. . . . . . . . : Enabled

Open in new window

0
msmamjiCommented:
have you tried setting the VM to get DHCP IP?
0
tballinAuthor Commented:
Yes I have set the VM to DHCP, but the VM still can't get an address.  

As I've mentioned before, at first this system reported 4 physical adapters via ipconfig (adapters 1, 2, 3 and 4).  Then, after creating a virtual network in Hyper-V, adapter 4 disappeared and “local area connection 6” appeared (I’ll call it “LAC6” from here on out), and LAC6  had grabbed a DHCP address.  However, after configuring the VM to use the virtual network that was bound to physical adpater #4  (Now LAC6), I was unable to establish any network connectivity.  I would think the new LAC6 would reflect the settings of the VM, but that is not the case.  The VM can have a static address, while LAC6 can be set to DHCP.  What's the best practice here?  How can the VM have one address, and the physical NIC that the VM talks through have another?
0
msmamjiCommented:
"How can the VM have one address, and the physical NIC that the VM talks through have another?"
Infact, this is the way it should be. You don't need to do anything special to achieve that specially when you are using host and VM are on the same subnet.
This is strange.

Can you send the screen shot of the VM settings
Can you list the output of ipconfig/all on the Guest VM

Regards,
Shahid
0
tballinAuthor Commented:
0
msmamjiCommented:
Have you tried adding another NIC to the VM and see if that helps?
tried both network adapter and legacy network adapter

Regards,
Shahid
0
tballinAuthor Commented:
So are you saying I should try to create another virtual network bound to another NIC, and then add that to the VM?
0
msmamjiCommented:
Yes, that would help us isolate the problem.
Can you do that?
please share the results.

Regards,
Shahid
0
tballinAuthor Commented:
I've tried creating other virtual networks, but that made no difference.

I do think I'm on to something though - I've notice that the switch port the virtual machine is plugged into on my Catalyst 2960 often times goes into err-disabled mode.  Given that, I then connected both the NIC attached to the parent partition and the NIC attached to the VM into a hub, and WAS able to ping to the other.  After a doing a little research I came to the conclusion that “port security” on the switch may have had something to do with the problem.  However, after disabling port security, the port did NOT go into err-disabled mode, but it also would not allow any pings.

Any ideas?
0
tballinAuthor Commented:
It was the switch (I didn't realize it until now though because when I removed port security I also removed the VLAN settings which resulted in the server being placed in the wrong VLAN)

So bottom line, it was switch port security the entire time.  What I cannot understand is why switch port security would effect this - Maybe the Virtual Network appears to be a switch to the Catalyst 2960, and so it shuts down the port when port security is enabled?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Virtual Server

From novice to tech pro — start learning today.