Debian VM network error SIOCSIFADDR no such device
A common error when moving your debian VMWare virtual machine (VM) or creating another instance on your local machine you will encounter at system restart the "SIOCSIFADDR: no such device" network configuration error, the full error is as follows:
Show Plain Text- Reconfiguring network interfaces...SIOCSIFADDR: 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
Note: When starting up your VM for the first time make sure you allow VMWare to create another UUID else you will get a duplicate VM i.e. same MAC address.
If you run "ifconfig -a" from the command line you will notice that it has detected the new assigned MAC address as eth1 (or eth2 if you have duplicated before). Under Debian etch you can change the assigned eth0 MAC address by editing the file :-
Show Plain Text- /etc/udev/rules.d/z25_persistent-net.rules
Under Ubuntu you can edit the file :-
Show Plain Text- /etc/iftab
- or
- /etc/udev/rules.d/70_persistent-net.rules
Once you've set the MAC address correctly the next thing to do is make sure the /etc/network/interface ethernet settings to match your new eth1 or eth2 setting.
I had a similar problem running Debian Lenny on the s390 platform. In my case, the offending file was 70-persistent-net.rules in the /etc/udev/rules.d directory. The problem occurred after running aptitude dist-upgrade and rebooting. Erasing (with rm) the offending file and rebooting again solved the problem.