Solved

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

Posted on 2012-12-30
12
1,175 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

910 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

24 Experts available now in Live!

Get 1:1 Help Now