Howto move vms folders to another drive

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Arzamm
Posts: 9
Joined: 27. Aug 2014, 00:06

Howto move vms folders to another drive

Post by Arzamm »

Hi all

I need to reubicate the default folder where the vms are located, from C:\VirtualMachines to another disk E:\VirtualMachines

What are the steps i must follow to safely move the folder with the VMs inside?

Thanks in advance...
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Howto move vms folders to another drive

Post by socratis »

Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Howto move vms folders to another drive

Post by mpack »

Arzamm wrote: I need to reubicate the default folder where the vms are located, from C:\VirtualMachines to another disk E:\VirtualMachines

What are the steps i must follow to safely move the folder with the VMs inside?
"Reubicate"? I like to think I have a wide vocabulary, but that's a new one on me... :)

Technical clarification: VirtualBox doesn't define "a default folder where VMs are located". It defines a default folder where new VMs are created, but changing this folder doesn't affect VMs which already exist. The upshot is that if you want existing VMs to be located somewhere else, follow the link which Socratis provided.

Or, (unofficial method) if you have a lot of VMs and you're confident with XML editing, then you could simply copy the "VirtualMachines" folder, and then fix up the drive letters in <userdoc>\.VirtualBox\VirtualBox.xml. All with VBox shut down of course.
Arzamm
Posts: 9
Joined: 27. Aug 2014, 00:06

Re: Howto move vms folders to another drive

Post by Arzamm »

Thanks!!

Reubicate ---> Move something to a new place
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Howto move vms folders to another drive

Post by mpack »

Arzamm wrote:Reubicate ---> Move something to a new place
Hmm. All of the English dictionaries that I can lay my hands on are sadly deficient, since they all fail to include that word. So, I think I'll stick with "relocate" as my preferred word in that context. :)
Post Reply