Go Vegetarian

Go Vegetarian

Thursday, March 19, 2009

Moving Virtual Box Machines

This document does not show the way to make a Virtual Box configuration see a Virtual Box machine that was copied from somewhere. What I propose(temporarily) is to rename the current Virtual Box directory(.VirtualBox) and then copy the files from the Virtual Box machines where you did the copy. At this time, why would you run 2 machines at the same time ?
  • make a copy of the current Virtual Box
  • start Virtual Box
accept the license agreement
enter your name and email address
  • exit VirtualBox
  • copy the files
rudy@catalogne:/tank/VirtualBox$ ls
compreg.dat HardDisks Machines VirtualBox.xml xpti.dat

tank is a ZFS filesystem on an external disk(from where the VM was copied).

rudy@catalogne:/tank/VirtualBox$ cp -pr HardDisks /export/home/rudy/.VirtualBox
rudy@catalogne:/tank/VirtualBox$ cp -pr Machines /export/home/rudy/.VirtualBox
rudy@catalogne:/tank/VirtualBox$ cp -pr VirtualBox.xml /export/home/rudy/.VirtualBox/
  • start Virtual Box(new VM copied)
rudy@catalogne:~$ VirtualBox

That should make the trick ! You have now access to the VM that was moved !


-Rudy-

No comments: