VMware

This Question is Answered

1 "helpful" answer available (6 pts)
1 2 Previous Next 15 Replies Last post: Dec 15, 2006 3:07 AM by roeschu  

No Network connect in Guest posted: Dec 14, 2006 8:18 AM

Click to view roeschu's profile Novice 25 posts since
Nov 16, 2006
Hi

Didn't find the answer in the many other "network problems" postings...

Problem:

On an newly installed ESX 3.0.1 i've imported (with vmkfstools -i) a VM (Ubuntu) from a Vmware Server. Everything works fine, i can start the imported VM in ESX without problems. With "ifconfig eth0" inside the guest Ubuntu i see

eth0 Link encap:Ethernet HWaddr 00:0B:DB:D5:59:2B
inet addr:192.168.150.67 Bcast:192.168.150.255 Mask:255.255.255.0
inet6 addr: fe80::20b:dbff:fed5:592b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 GiB) TX bytes:0 (0.0)
Interrupt:193

So the virtual NIC is attached correct. But i cant reach this guest VM from the network (no ping, no services available) also i cant reach the network from inside the VM (no ping, no reaching of services of other servers). I've tried to setup a complet (and not imported from VMware Server) new Test VM (Debian). I gave it the same network infos as above, but this didn't work either.

I have no problem in reaching the ESX Server (ping, ssh, VC Agent). The ifconfig of the esx console:

vmnic0 Link encap:Ethernet HWaddr 00:14:22:1F:85:DE
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:21106 errors:0 dropped:0 overruns:0 frame:0
TX packets:25549 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2638803 (2.5 Mb) TX bytes:20132286 (19.1 Mb)
Base address:0xecc0 Memory:fe6e0000-fe700000

vmnic1 Link encap:Ethernet HWaddr 00:14:22:1F:85:DF
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2016 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:397506 (388.1 Kb) TX bytes:0 (0.0 b)
Base address:0xdcc0 Memory:fe4e0000-fe500000

vswif0 Link encap:Ethernet HWaddr 00:50:56:49:9F:88
inet addr:192.168.150.33 Bcast:192.168.150.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10395 errors:0 dropped:0 overruns:0 frame:0
TX packets:16195 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1224809 (1.1 Mb) TX bytes:13786187 (13.1 Mb)

There are two physical NIC's in this server. for the moment i have only vmnic0 attached to the virtual Switch named vSwitch0. There is only one virtual Switch. I have not configured a second. In this virtual Switch vSwitch0 there is the service console port and a VLAN named "testserver vlan which is the vlan of the guest above.

So everything pretty standard. I just can't find the problem.

Any help is appreciated...

thx + greets

Message was edited by:
roeschu

Re: No Network connect in Guest

1. Dec 14, 2006 8:36 AM in response to: roeschu
Click to view masaki's profile Virtuoso 1,814 posts since
Oct 26, 2005
Which is Default gateway of the guest?
Can you ping it from guest?
Look also at routing tables.

Re: No Network connect in Guest

3. Dec 14, 2006 10:28 AM in response to: roeschu
Click to view masaki's profile Virtuoso 1,814 posts since
Oct 26, 2005
Can you post the output of these commads?

esxcfg-vswitch -l
esxcfg-route
esxcfg-nics

Let me know

Re: No Network connect in Guest

6. Dec 14, 2006 12:16 PM in response to: roeschu
Click to view masaki's profile Virtuoso 1,814 posts since
Oct 26, 2005
Did you try rebooting HOST?
Try e launch lspci command again

Can you figure out which is the unknown device?

Re: No Network connect in Guest

9. Dec 14, 2006 1:06 PM in response to: roeschu
Click to view masaki's profile Virtuoso 1,814 posts since
Oct 26, 2005
Mmmm,
I think this "Unknown device" is a false problem.

Just to be sure: Where did you connect the vm? On vmnic1 or 0?

I see vmnic1 has some Rx packets, so the source could be the vm.

Can you put vmnic1 in the same lan of vmnic0 to be sure?

Re: No Network connect in Guest

12. Dec 15, 2006 12:30 AM in response to: roeschu
Click to view masaki's profile Virtuoso 1,814 posts since
Oct 26, 2005
Now with the two vswitch

execute again:

esxcfg-vswitch -l
Switch Name Num Ports Used Ports Configured Ports Uplinks
vSwitch0 256 5 256 vmnic0

PortGroup Name Internal ID VLAN ID Used Ports Uplinks
TestServer VLAN portgroup8 10 2 vmnic0
Service Console portgroup0 0 1 vmnic0

Which is now your VLAN ID in vswitch1?

Re: No Network connect in Guest

14. Dec 15, 2006 1:22 AM in response to: roeschu
Click to view masaki's profile Virtuoso 1,814 posts since
Oct 26, 2005
Yes, now VLAN ID testserver is 0 instead of 2.

This ID must match the one on your physical switches.

But VLAN ID 0 means no VLANs.

I think your network has no vlans so this is why.

as described also in this thread:

http://www.vmware.com/community/thread.jspa?messageID=292887&#292887

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities