Environment: VirtualBox v4.1.8
- Backup everything that you’ll be touching in case anything goes wrong and you need to revert back.
- Move the
<vm>.vdi
hard disk file from the old machine’s"$HOME/.VirtualBox/VDI"
to the new machine. - Move the
<vm>
directory from the old machine’s"$HOME/VirtualBox VMs"
to the new machine. - Edit the
"$HOME/VirtualBox VMs/<vm>/<vm>.vbox"
file to change the old<HardDisk>
location to that of the new machine. - Double-click on this
vbox
file to load it into VirtualBox. - Start the VM. It should load without any error.