Network interfaces for a Debian Etch guest under VMWare

I’m using Debian Etch as a guest OS under VMWare. When you copy the VM (to another machine or another instance on the same machine), VMWare wants to give it a new UID (you should let it so you don’t end up with duplicate machines). A side effect is that you get a new ethernet MAC address. In Debian Etch, a side effect of that is that it thinks you have a new network card but it doesn’t forget about the old network card, so instead of the network interface being eth0, it is now eth1. And the next time you copy the VM, it is eth2, and so on.

It is really a pretty simple fix, once you know where to look. The clue is that udev is what is remembering the old MAC address. In my VMs, the addresses were in:

/etc/udev/rules.d/z25_persistent-net.rules

It is just a plain text file. Delete the lines with the old MAC addresses and change the last one to be eth0.

13 Responses to “Network interfaces for a Debian Etch guest under VMWare”

  1. carlo piana Says:

    Thank you, this was exactly my problem. I wish Google had brought this page up well before wasting a solid hour searching around. ;-)

  2. Tyron Madlener Says:

    Beautiful, you just saved me a lot of time! I never expected to fix that within 5 Minutes. Thanks for posting!

  3. Joacim Says:

    Aah beautiful!
    Thanks, works like a charm! :)

  4. Bealers Says:

    This has been annoying me for some time and to fix it I’ve been randomly trying different eth[n] numbers, with limited success but wanted to know what the actual issue was.

    Googling for “vmware etch networking” you were number one and issue fixed in 2 minutes.

    Ta!

  5. Mart Says:

    This was driving me bonkers!
    Thank you thank you!

  6. James Says:

    Lifesaver, many thanks!

  7. Marco Says:

    Thanks!
    It’s so simple when you know it ;-)
    Thank you

  8. Linux Sand Garden » Blog Archive » Debian VMWare guest host network interfaces disappearing Says:

    [...] thanks to fileformat blog at [...]

  9. Alansuno Says:

    You’re the man!
    Thank you so much!

  10. Espen Says:

    I was getting crazy….. your solution saved my sanity :)

  11. CK Says:

    Thanks, pal!

  12. Edwin Fine Says:

    Thanks so much. I would never have figured it out. This issue has been plaguing me for ages (on different systems).

  13. HELB JavaBAC3 Says:

    Thx, working at a glance !

Leave a Reply