Debian – VMware virtual machine network devices malfunctioning

debiannetworkingvmware-workstation

I'm running Ubuntu 10.04 LTS and VMvware workstation 7.0.1 build-227600.
The virtual machine i'm running in VMware is a custom distribution
built on Debian Linux version 3.1.
I'm still pretty much a beginner with UNIX administration.
After having messed around with the vmware (changed only the name of
the folder, the vmx and and other .v* files accordingly in which the
.vmx was situated, and the configuration in the vmx file accordingly),
the network devices on the virtual machine do not work anymore. The
virtual machine is used for securely sending messages.

The virtual machine:

As far as I know, this perl file called proxy-gen-ifalias eth0 is responsible for properly setting up the two virtual network devices eth0 and eth1.

The Virtual machine comes with a GUI interface in which I have set up two ethernet network devices, one internal, the other external. Now, after having messed around with this, the UI gives me this error message:

perl proxy-gen-ifalias eth0
/etc/modprobe.d/alias-eth0
/sbin/update-modules
perl proxy-gen-ifalias eth1
/etc/modprobe.d/alias-eth1
/sbin/update-modules
ifdown eth0
ifdown: interface eth0 not configured
ifdown eth1
ifdown: interface eth1 not configured
perl proxy-gen-netcfg
/etc/network/interfaces
ifup eth0
SICCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
ifconfig eth0
eth0: error fetching interface information: Device not found
make: *** [/etc/network/interfaces] Error 1

~
Here are the contents of the two perl files referred to in the message:
paste.pocoo.org/show/2AMzAYhoCRZqlGY7wUFk/
proxy-gen-netcfg

Best Answer

Try doing

ifconfig eth2 up
ifconfig eth3 up

And so on until you find which one comes up, then change your scripts to use those interfaces. If you removed and readded the virtual nic's the eth number can change.

You can stop it from changing by running the commands

rm /etc/udev/rules.d/70-persistent-net.rules
rm /lib/udev/rules.d/75-persistent-net-generator.rules

Your error may be caused by something else but the DEVICE NOT FOUND errors are pretty typical for me when I mess around with virtual interfaces because of this problem.