I'd use rsync after you've created the machine image you want.
Start by installing the identical version of Ubuntu on the new machine. Make sure the image is up-to-date by running:
Code:
sudo apt-get update
sudo apt-get upgrade
after installation.
Now make sure you can see the new machine over the network from inside the VM. Make sure it's also up-to-date then transfer the files by running:
Code:
cd /
sudo apt-get update
sudo apt-get upgrade
sudo rsync -av . newserver_ip_address:/
All the files in the VM will be copied over to the new server. I'd probably exclude /boot and the transient directories like /proc and /sys by using
Code:
sudo rsync -av . newserver_ip_address:/ --exclude=/boot --exclude=/proc --exclude=/sys
Bookmarks