Solved

How to get the nested VM windows 2008 to access the internet?

Posted on 2012-12-30
12
1,151 Views
Last Modified: 2013-01-02
hi guys

I've got a situation where I have a nested environment.

A Vmware Workstation 8.0 running Vmware Esxi 5.0. And on that, is running a Windows 2008 VM.

The IP address of my local PC is 192.168.1.10/24. With a gateway of 192.168.1.1.

The Esxi hypervisor has an IP of 192.168.1.15.

However, the Windows 2008 sitting on there has been given a 192.168.1.20/24 address with a gateway of 192.168.1.1 and it can't access the internet.

I don't know if there are settings I have to play with on the Workstation in order to get the nested VM access to the internet?

Any ideas on how to do this?

Many thanks
Yashy
0
Comment
Question by:Yashy
  • 6
  • 6
12 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 38731058
What have you set the ESXi Virtual Host Networking to?

NAT?

You need to set it to BRIDGED. (VMware Workstation VM needs to be set to BRIDGED).

This also MUST be the E1000 NIC!

you then need to set your networking in the ESXi Host to use VLAN 4095 (ALL).

In this way ALL Virtual and Nested Host Machines will be on the same network as the HOST.
0
 
LVL 1

Author Comment

by:Yashy
ID: 38731102
Everything was what you described, other than the VLAN 4095 which I had to do go and do.

For anybody else reading this who doesn't know how to do it, in order to get to the VLAN 4095, you must:

 - Log on to the Esxhi host (with the Vsphere client)
 - Select the Esxi host.
- Go to the 'Configuration' tab on the right.
- Select 'Networking' on the left hand column and then click on the 'Properties'.
- Select 'Management Network' and click 'Edit'.
- Where it says 'VLAN ID', use the dropdown to select '4095 (ALL)' and click OK.
0
 
LVL 118
ID: 38731109
So it's working now?

and make sure your VMs are also using the Virtual Machine Network 4095 (ALL).

You should find then if you allocate a VM with an IP Address of 192.168.1.x it should be on the same network, from what I recall, there is someting odd with DHCP, so maybe do not expect DHCP from your MAIN LAN to passthrough twice to the nested VMs!
0
 
LVL 1

Author Comment

by:Yashy
ID: 38731135
It's not working sadly:(.

I've selected the 'VM Network' to 4095 (ALL).

I've set the IP address of the VM itself with a static IP and a gateway of my router.

When you said 'make sure your VM's are also using the Virtual Machine Network 4095 (ALL)', did you mean the setting that I've mentioned in the second line above?

Because on the Workstation 8, there isn't any place I can see where I can select the VM's to be on the 4095 (ALL)?
0
 
LVL 118
ID: 38731181
okay, I'll need screenshots of:-

VM Settings for ESXi Nested Host

vSwitch and NIC settings of ESXi Host

can you ping host from the nested VM?

can you ping other devices from the nested VM?
0
 
LVL 1

Author Comment

by:Yashy
ID: 38731732
Okay, I've attached all of the necessary screenshots for you.

To answer the questions.

I can't ping host from the nested VM. I get a ping transmit failed. I've attached a screenshot of the IP settings of this VM. I can't ping anything from the nested VM.
Vmware-setting-1.jpg
Vmware-setting-2.jpg
Vmware-setting-3.jpg
Vmare-setting-4.jpg
Vmware-setting-5.jpg
VM-IP-address.jpg
VM-IP-address-2.jpg
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 118
ID: 38731808
so the nested ESXi server is able to get an IP Address 192.168.1.15 from your LAN, same LAN as the VMware Workstation host?

I have seen VLAN issues with ESXi 5.1, I'm wondering if it's the same bug.

all looks okay, does your VM if set to DHCP receive an IP Address?

btw 6 vCPU for your VM is far too many, not that's the network issue!
0
 
LVL 1

Author Comment

by:Yashy
ID: 38731821
Il reduce cpus..hehe.
The esxi host gets its IP via dhcp. And it is on the same network as Workstation on the LAN. The VM however is unable to get dhcp.
0
 
LVL 118
ID: 38731841
Just had another thought ALSO SET THE vSwitch to

ALLOW Promiscious Mode: Accept, either on the vSwitch or Virtual Machine Network.

Promiscuous-mode-network1.jpg
0
 
LVL 1

Author Comment

by:Yashy
ID: 38732343
I tried this also and still doesn't work. I set it to Accept.

The weird thing is that when I add a static IP to the VM, it still sees it as an Unindentified Network. Even if it didn't have internet access, I'd expect the IP address added to make the VM part of an identified network.

Also, I've taken a screenshot for you of something else. In the Vswitch properties, the 'networks' only shows as the IP address range of my own PC (192.168.1.9). Is that correct?
Vmware-setting.jpg
0
 
LVL 118
ID: 38732976
I'll need to debug this, and check, ESXi 4.1, 5.0 and 5.1, and see if something has changed or broken in 5.1!
0
 
LVL 1

Author Comment

by:Yashy
ID: 38733076
Hanccocka - you won't believe it.

It was  my own PC's internal firewall driver. I unchecked it in my network settings and hey presto....all is good:).

Thanks so much again for your help.

Happy new year to you sir.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

760 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

20 Experts available now in Live!

Get 1:1 Help Now