How to solve several issues in Linux after Cloning a VM in KVM
This will solve the issue that you have no network connection.If you run your virtual environment using KVM you will recognize some issues after cloning a virutal machine (eg Ubuntu 10.04 Server).
- No network connection could be established
- ssh-keys on all clones are identical
- hostnames are identical
- static ip-addresses are identical and lead to trouble in your network
This
To solve most of these issues follow the very nice instructions of
After I recognized that the blog is currently unavailable follow the following instructions to resolve this issue after cloning.
- sudo rm /etc/udev/rules.d/70-persistent-net.rules
- sudo reboot -h now
- sudo nano /etc/hosts
- Change the hostname and ip-address
- sudo nano /etc/hostname
- Change the hostname of the VM
- If you work with static ip-addresses you have to adjust your network configuration
- sudo nano /etc/network/interfaces
- Change ip-addresses and other network settings.
- sudo nano /etc/network/interfaces
- sudo reboot -h now
- check whether your network is running and your machine is available
Have fun!