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
you will see that there is an eth0 interface now.