Clone Virtual Machine – Linux (debian) – eth0 missing

Today I found a solution for a problem which was bugging me for a while now.  (I encountered this error when I tried to clone my WanEm virtual machine.)

If you clone a virtual machine (created via Hyper-V, Virtualbox, VMWare, …) which is using Linux as an operating system you will notice that the cloned machine is missing the eth0 network interface. That´s strange because you added a network adapter during it´s creation.

If you run the following command in the terminal:

ifconfig eth0 up

You will receive the following error message:

eth0: ERROR while getting interface flags: No such device

So what could have gone wrong? The answer is quite simple: You added a new network adapter with a different MAC address and Linux was not able to detect this change. What can you do to solve this problem? The solution is also quite simple.

Here it is:

Run the following commands:

sudo rm /etc/udev/rules.d/z25-persistent-net.rules
sudo reboot

After the operating system successfully rebooted your problem will be solved.

If you now run

ifconfig -a

you will see that there is an eth0 interface now.


Tagged , ,

One thought on “Clone Virtual Machine – Linux (debian) – eth0 missing

  1. escort Paris says:

    Thank you very much for that great article

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: