How to move VMs from their default location

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
rereidy
Posts: 3
Joined: 3. Mar 2012, 19:33

How to move VMs from their default location

Post by rereidy »

Hi,

I have a Macbook air and want to move the VMs I am creating from their default locations under my $HOME to a removable disk. I have been looking at the XML file (VM_name.vbox), but am not sure what items to change in order to move the VM.

I have also thought of making symlinks, but I am not sure if this will work.

Any pointers or advice?

Thanks.

--
Ron
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to move VMs from their default location

Post by Perryg »

What version of VirtualBox are you using and what version were the guests created with. Also are there snapshots?
rereidy
Posts: 3
Joined: 3. Mar 2012, 19:33

Re: How to move VMs from their default location

Post by rereidy »

VirtualBox 4.1.8. No snapshots of any of the VMs.

Thanks for your help.
--
Ron
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to move VMs from their default location

Post by Perryg »

Version 4.* of VirtualBox made it easier to move the VMs to a new location. You should see them all in a folder called VirtualBox VMs.

You can copy this to the new location and before you do anything else backup the VirtualBox.xml file.
Next remove the guests from the VirtualBox main manager ( without deleting them ) and use the add feature to put them back from the new location.
Change the preference to show the new location and it should be good to go.
Once you are sure everything is working as it should then and only then can you delete the old guests.
Post Reply