Need to move a virtual machine, only to find that copying and pasting doesnt work?
Perhaps you just want to know what to backup?
Next, double-check you get rid of any snapshots you have.
There isnt a fool-proof and safe way to do this without getting rid of them, unfortunately.
Select your virtual machine and punch the Snapshots tab.
Select your snapshot and hit the delete button.
Be prepared to wait a while as VirtualBox merges differences with your machines current state.
The machines state wont actually change, though, so dont worry.
Now that the prep stuff is out of the way, we can start the moving process.
Once thats done, go to File > Virtual Media Manager.
Youll see a list of media that youve used or have attached to your machines.
Select which virtual machine you want to move, then punch the Release icon above.
In my case, Ill be moving W7.vdi from my home directory to another hard drive.
Be patient, as this can take a while depending on your configuration.
Meanwhile, lets edit the VirtualBox.xml file to our liking.
Open it up in gedit.
Scroll down a bit and youll get to the parts we need to edit.
Once youve moved the .vdi file, fire up VirtualBox and go to File > Virtual Media Manager.
press the old .vdi file and click remove.
Now, click Add, navigate to its new location, and click Open.
At the main screen select it, go to tweaks, and tap on the Storage panel.
Under the appropriate IDE controller, hit the Add Attachment button.
Youll see a hard disk get added automatically, but it probably wont be the correct one.
Click it and on right side, under Hard Disk, choose the correct .vdi file.