Getting Hyper-V virtual machines access to the internet has been driving me bonkers! Any help is much appreciated.
I have a dedicated Windows 2008 R2 device with 16 internet IP addresses from Fasthosts.co.uk and want to split this up into private virtual machines as well as virtual machines that connected directly to the internet using the internet IP addresses.
The Big Idea:
By private virtual machines I mean one device that is internet facing with internet IP addresses (Linux Firewall) that will NAT traffic to the specified virtual machines (web, mail, storage etc.)The devices I want to connect directly to the internet using internet IP addresses are for servers running Cpanel, Plesk, Zpanel etc. Such GUI’s don’t like being behind a firewall using NAT.
Where I am at:
So far I have a few test instances up and running that are able to talk to each other on an internal virtual network that uses a VLAN ID for separation. On a second virtual Switch that is set to external, these devices can also ping the internet IP address of the Virtual Switch but cannot ping the gateway (gateway as specified in the IPv4 settings of the virtual switch).
There is only one NIC connected to the internet and the Virtual switch shares the connection with the Host OS. I know this is not recommended but that is all Fasthosts are willing to give me.
I can confirm the host is able to get out on the internet and any IP addresses I add to the physical/host NIC can be pinged from the outside world.
What I thought needed to be done:
Having read many many articles on the subject I have tried lots of configurations but from what I understand it should be as simple as adding one of my assigned internet IP addresses to the vNIC on the VM?
When I have done this I have used one of the assigned internet IP address, the same subnet mask, gateway and DNS servers. These details work fine if I add them to the physical/host NIC as the sole IP.
What has been done/tried:
• Using the virtual network switch’s IP address as the gateway of the VM’s.
• Confirming Integration Services are running/installed on the VM’s.
• The physical/host NIC is shared (allow other network users to connect through this computers internet connection).
• The Public/External vSwitch is not shared.
• The firewall is off for all connection types.
• Rebooted VM’s & Host millions of times after network configuration changes.
And much more that I am too embarrassed to admit I even tried.
Has anyone every work on such infrastructure or can any gurus shine a light on my problems?
Thank in advance
Oliver