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
Text code
  1. Reconfiguring network interfaces...SIOCSIFADDR: No such device
  2. eth0: ERROR while getting interface flags: No such device
  3. SIOCSIFNETMASK: No such device
  4. eth0: ERROR while getting interface flags: No such device
  5. 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
Text code
  1. /etc/udev/rules.d/z25_persistent-net.rules

Under Ubuntu you can edit the file :-

Show Plain Text
Text code
  1. /etc/iftab

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.

Filed under: Linux  Tags: Debian, Ubuntu

3 Responses to “Debian VM network error SIOCSIFADDR no such device”

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.

I have not experienced this error during a dist-upgrade, I've only encountered the error when copying a VM on the same machine for testing purposes, thanks for the tip.

You rock. Thanks for posting this.

Post a comment