VMware Communities > VMTN > General > Virtual Machine & Guest OS > Discussions

This Question is Answered

2 "helpful" answers available (6 pts)
9 Replies Last post: Dec 30, 2007 7:41 PM by hananiel
Reply

Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning

Oct 30, 2007 8:51 PM

Click to view Joel Duckworth's profile Novice Joel Duckworth 19 posts since
Oct 30, 2007
Hi,

I've had some serious network issues with Ubuntu 7.10 Server (gutsy) as a guest OS in ESX 3.0.2. Creating a new machine, installing, booting and installing VMware tools works as expected. However after creating a template image and cloning it, the network card (eth0) disappears. I tried reinstalling / reconfiguring VMware tools but the best I could get it doing was reporting some sort of "eth0: hw csum failure" (it just kept popping up after a 'sudo ifconfig eth0 up' after reinstalling the VMware tools)

I've tried using the latest install of ESX (3.0.2 update 1) and with the latest VC and installing the latest VMware tools from that release. I've also tried removing the network adapter and re-adding it but just have the same issue... no network.

Has anyone got any ideas? I read something about updating the MAC address for Debian base distros but I've not had to do this for Ubuntu Dapper 6.06 Server (LTS) it's just worked as expected.
Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Oct 30, 2007 10:39 PM
Click to view Joel Duckworth's profile Novice Joel Duckworth 19 posts since
Oct 30, 2007
Here's the log from my vmware-tools install

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon:-ne done

Guest memory manager:-ne done

  • Deconfiguring network interfaces... OK
Guest vmxnet fast network device:-ne done

Trying to find a suitable vmmemctl module for your running kernel.

None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
yes
Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.22-14-server/build/include]
Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmemctl-only'
make -C /lib/modules/2.6.22-14-server/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-server'
CC [M] /tmp/vmware-config0/vmmemctl-only/os.o
SHIPPED /tmp/vmware-config0/vmmemctl-only/vmmemctl1.o
LD [M] /tmp/vmware-config0/vmmemctl-only/vmmemctl.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /tmp/vmware-config0/vmmemctl-only/.vmmemctl1.o.cmd for /tmp/vmware-config0/vmmemctl-only/vmmemctl1.o
CC /tmp/vmware-config0/vmmemctl-only/vmmemctl.mod.o
LD [M] /tmp/vmware-config0/vmmemctl-only/vmmemctl.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-server'
cp -f vmmemctl.ko ./../vmmemctl.o
make: Leaving directory `/tmp/vmware-config0/vmmemctl-only'
The module loads perfectly in the running kernel.

Extracting the sources of the vmhgfs module.

Building the vmhgfs module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
make -C /lib/modules/2.6.22-14-server/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-server'
CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o
CC [M] /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o
CC [M] /tmp/vmware-config0/vmhgfs-only/dev.o
CC [M] /tmp/vmware-config0/vmhgfs-only/driver.o
CC [M] /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o
CC [M] /tmp/vmware-config0/vmhgfs-only/main.o
CC [M] /tmp/vmware-config0/vmhgfs-only/staticEscape.o
LD [M] /tmp/vmware-config0/vmhgfs-only/vmhgfs.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmhgfs-only/vmhgfs.mod.o
LD [M] /tmp/vmware-config0/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-server'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
The module loads perfectly in the running kernel.

pcnet32 34820 0
Unloading pcnet32 module

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmxnet-only'
make -C /lib/modules/2.6.22-14-server/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-server'
CC [M] /tmp/vmware-config0/vmxnet-only/vmxnet.o
/tmp/vmware-config0/vmxnet-only/vmxnet.c: In function ‘vmxnet_open’:
/tmp/vmware-config0/vmxnet-only/vmxnet.c:816: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmxnet-only/vmxnet.mod.o
LD [M] /tmp/vmware-config0/vmxnet-only/vmxnet.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-server'
cp -f vmxnet.ko ./../vmxnet.o
make: Leaving directory `/tmp/vmware-config0/vmxnet-only'
The module loads perfectly in the running kernel.

No X install found.

Starting VMware Tools services in the virtual machine:
Switching to guest configuration:-ne done

Guest memory manager:-ne done

Guest vmxnet fast network device:-ne done

DMA setup:-ne done

Guest operating system daemon:-ne done

The configuration of VMware Tools 3.0.2 build-52542 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/networking stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/networking start

If you wish to configure any experimental features, please run the following
command: "vmware-config-tools.pl --experimental".

Enjoy,

--the VMware team
Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Oct 31, 2007 12:03 AM
Click to view Joel Duckworth's profile Novice Joel Duckworth 19 posts since
Oct 30, 2007
I am aware this isn't a support guest OS yet... but maybe this will help get it on the list a bit quicker ;)
Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Nov 1, 2007 4:04 PM
Click to view Joel Duckworth's profile Novice Joel Duckworth 19 posts since
Oct 30, 2007
I've got the same issue with Feisty Server 7.04 which IS supported as per the supported guest OS guide. I've got a case with VMware support but we're just sitting tight waiting at the moment. If anyone has any insights I'd be really interested.

Perhaps it's got to do with the hardware it's running on: Dell PowerEdge 1850... I doubt it however.
Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Nov 4, 2007 2:38 PM
in response to: Joel Duckworth
Click to view wwolkers's profile Novice wwolkers 6 posts since
Nov 4, 2007

Debian (and Ubuntu for that matter) uses a special udev rule to assign a MAC to the same ethx interface (see /etc/udev/rules.d/rules.d/z25_persistent-net.rules which is generated by /etc/udev/persistent-net-generator.rules). Changing the MAC only means changing the eth interface, therefore try eth1, eth2 or something. dmesg should tell you the name.

Personally I just remove the old eth0 from /etc/udev/rules.d/rules.d/z25_persistent-net.rule and change the eth1 to eth0, has always worked for me so far.

probably /etc/udev/persistent-net-generator.rules should be updated in debian and in ubuntu, since they already list a couple of vmware mac addresses in there....

Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Nov 5, 2007 4:32 PM
in response to: wwolkers
Click to view Joel Duckworth's profile Novice Joel Duckworth 19 posts since
Oct 30, 2007

Ahhh!

in Ubuntu 7.04 (feisty) this information is in /etc/iftab - I think you might have to just update the MAC address with the new one from the .vmx file

In Ubuntu 7.10 (gutsy) the file is /etc/udev/rules.d/70-persistent-net.rules - You need to remove the first line which has the old MAC address and eth0 then rename the eth1 to eth0 in the new line. The line looks something like:

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:xx:xx:xx:xx:xx", NAME="eth0"

Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Nov 7, 2007 12:09 PM
Click to view PixelBitch's profile Lurker PixelBitch 2 posts since
Nov 7, 2007

I found that going to System > Administration > Network, changing the properties on "Wired connection" to disable roaming mode and allow for "Automatic configuration (DHCP)" worked well for me.

No more network issues, and I only had to click a few times in a UI...Linux, is that you hiding under there? :)

Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Nov 9, 2007 1:58 AM
in response to: Joel Duckworth
Click to view icottee's profile Lurker icottee 3 posts since
Feb 24, 2005
In my case I'm starting from a known point so I'm continually cloning from the same start point. Therefore I deleted 70-persistent-net.rules in my master, shut the machine down and started cloning from it. Everytime you boot up the clone the rule is recreated and your network works straight away. Works for me with Gutsy server.
Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Nov 20, 2007 9:14 AM
in response to: Joel Duckworth
Click to view lanivdw's profile Lurker lanivdw 3 posts since
Nov 20, 2007

Joel Duckworth, Thank you for your post, I have been looking for the file -> /etc/udev/rules.d/70-persistent-net.rules for sometime. Now I have one question, where can one find infomation about changes like this iftab to udev/rules.d/70-persistent-net.rules?
Reply Re: Ubuntu 7.10 Server (gutsy) incompatibility with ESX 3.0.2 - Network eth0 dissapears when cloning Dec 30, 2007 7:41 PM
in response to: PixelBitch
Click to view hananiel's profile Lurker hananiel 1 posts since
Dec 30, 2007

pixelb, that worked for me . Thanks. I had to check the checkbox after that and it started working. I am using gutsy gibbon on xp.

thanks,

Actions