Solved

Hyper-V Server won't forward traffic from Virtual Machines

Posted on 2015-01-14
17
233 Views
Last Modified: 2015-01-25
This is a test lab setup. In the final live configuration I will be using a dedicated server to host the Hyper-V 2012 R2 Server.
My lab equipment does not give me the luxury of dedicated hardware so for this lab test I have a virtual machine running under an ESXi 5.5 and in this I have installed Windows 2012 Hyper-v R2. From a Windows 8 PC I have installed a VM in the Hyper-V server and installed Windows2012 server (using Hyper-V Manager). I have created a virtual switch (external) and connected the Windows 2012 server to it.
The host Hyper-V server can ping the router to the Internet but the VM within the Hyper-V can only ping the Hyper V server and itself. It cannot see anything that is outside the Hyper-V server even though it's on the same subnet.
Hyper-V Server (Server1): 192.168.2.20
Windows 2012 server (Server2): 192.168.2.30
Gateway (broadband router): 192.168.2.1

For example. Server2 can ping Server1 but it can't ping the gateway.
0
Comment
Question by:ClintonK
  • 9
  • 7
17 Comments
 
LVL 56

Accepted Solution

by:
Cliff Galiher earned 500 total points
ID: 40550092
Unfortunately running Hyper-V inside another Hypervisor isn't supported. The way the hypervisor intercepts hardware calls is fairly close to bare-metal and even when you can get it to work, odd problems occur. Networking, in particular, never works right.  I honestly don't believe this can be resolved and know of no workaround to address the issue.

-Cliff
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40550106
Is the VM running within the Hyper-V instance on ESX or on Windows 8 Hyper-V?

If ESX then make sure the vNIC being passed through to the Hyper-V host within is EXTERNAL. Then make sure your vSwitch created in Hyper-V is EXTERNAL and bound to the ESX vNIC.

If in Windows 8 Hyper-V then make sure to create an EXTERNAL _shared_ with host OS vSwitch and bind that to the VM's vNIC.
0
 

Author Comment

by:ClintonK
ID: 40551810
The VM is running within the Hyper-V instance on ESX.
The vSwitch is definitely external and bound to the ESX vNIC.
How can I make sure the vNIC being passed through to Hyper-V is external? The Hyper-V can connect to the Internet and can do Windows updates but the VM within the Hyper-V can't even though it's attached to an external vSwitch.
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40551878
That's a tough one because of the extra layer that ESX is providing.

I'm not 100% sure the vSwitch could bind correctly to a virtual NIC provided for by ESX.

Could you post a Snip of the Hyper-V Virtual Network setup and the vNIC settings on the VM please?
0
 

Author Comment

by:ClintonK
ID: 40551909
Is this what you mean by the Hyper-V Virtual Network Setup?
Network Config
0
 

Author Comment

by:ClintonK
ID: 40551948
and the vNic settings on the VM are
vnic
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40552032
The settings I'm looking to see would be the Hyper-V VM's vNIC (Hyper-V --> VM --> Settings --> Network) and then Hyper-V's virtual network setup (Hyper-V Manager --> RClick server --> Virtual Networking).

Need to see how the two relate.
0
 

Author Comment

by:ClintonK
ID: 40554078
Here is the vNIC settings for the VM
VMand here is the vSwitch
vSwitchI don't have a Virtual Networking option from Hyper-V Manager --> RClick server
Connection #2 is shown on the vSwitch because I deleted and created a new one on the ESX server to see if it helped. It didn't
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 38

Expert Comment

by:Philip Elder
ID: 40554137
On Hyper-V host: click Start --> type NCPA.CPL [Enter]
Please post a snip of that too.
0
 

Author Comment

by:ClintonK
ID: 40554193
I only have sconfig and a command line interface on the Hyper-V host
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40554456
CMD: PowerShell [Enter]

Get-NetAdapter [Enter]
Get-LbfoTeam [Enter]

Post above.
0
 

Author Comment

by:ClintonK
ID: 40554501
getnet
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40554510
Nothing looks out of the ordinary.

Are you able to ping the VMware host IP address from Hyper-V?
0
 

Author Comment

by:ClintonK
ID: 40555388
My gateway is connected to two subnets and has two IP addresses; 192.168.1.1 and 192.168.2.1
The ESX is 192.168.1.254 and from the Hyper-V host (which has an IP address of 192.168.2.20), I can ping 192.168.1.254.
I can ping 192.168.2.1 from 192.168.2.20
I can ping 192.168.2.20 from 192.168.2.30 (the hosted VM), but I cannot ping 192.168.2.1 from 192.168.2.30
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40555618
No VLAN tagging needed for .2.0?
0
 

Author Comment

by:ClintonK
ID: 40560640
Tried Vlan tagging but it didn't help.
I have started from scratch to ensure that all the poking around hasn't messed anything up. I recreated a new Esxi server and then installed a clean Hyper-V server inside that and then inside that I've created a Windows 2012 Essential server.
The Windows 2012 essentials server can ping the Hyper-V server and visa-versa. The Hyper-V server can ping the gateway but the Windows 2012 server can't ping the gateway.
So to summarise, anything within the Hyper-V server can only go as far as the Hyper-V NIC and not beyond. Although the Hyper-V NIC is talking to the outside world it won't let any of the VM's traffic through.
0
 

Author Closing Comment

by:ClintonK
ID: 40569314
After much trying I think I have to agree that it's not possible to run Hyper-V inside another Hypervisor. Most of it works but there seems no way to get the VMs to talk to the outside world.
I am now using dedicated hardware and all works fine.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Recently, I was assigned the task of performing a hardware refresh in the datacenter. The previous Windows 2008 systems were connected to the SAN via fiber channel HBA’s and among other thing, had PowerPath installed in order to provide sufficient f…
Why should I virtualize?  It’s a question that’s asked often enough.  My response is usually “Why SHOULDN’T you virtualize?”
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now