jLuger.de - Clone virtual box guest OS with cp
When you clone a virtual box guest OS via cp command
you have to execute this steps:
- cp the VDI file that is
the HDD of the OS you want to clone.
- execute: VBoxManage
internalcommands sethduuid <copied VDI file>
- Check if you network
card switched from eth0 to eth1. This is very likely as the mac address
is stored in the file /etc/udev/rules.d/70-persistent-net.rules. A new
mac address gives you a new ethX interface. Delete the entry for eth0
and rename eth1 to eth0 if you want eth0 back.
- You may want to change /etc/hostname and /etc/hosts
when the cloned system should get a new name.