Solved

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

Posted on 2015-01-14
17
238 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 57

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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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
 
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Limitations of Microsoft Hyper-V Server 2016. 20 211
DHCP scope restore question Server 2003 to 2012R2 6 57
Harden RDP Server 4 27
How to use smart cards 2 15
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
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 restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

813 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

18 Experts available now in Live!

Get 1:1 Help Now