Skip to content

Home Search Site Map Contact Us
You are here: Home Blog Howtos Move VirtualBox.xml to Another Drive
Move VirtualBox.xml to Another Drive Print
Sunday, 12 April 2009 12:53

I switched to VirtualBox from VMware a few weeks ago. VirtualBox lets you store your virtual hard disk folders and machines in another location. I store mine on my second hard drive in my system (D:). However the index to these files is stored in C:\Users\{Username}\.VirtualBox\VirtualBox.xml. I often reimaging my operating system and as you can guess that wreaks havoc on my VirtualBox configurations. VirtualBox doesn't let you change the location of VirtualBox.xml but it turns out you can move it by copying it to where you want and then creating a link to the file with MKLINK.

For example, my VirtualBox.xml file was stored in C:\Users\Grant\.VirtualBox\VirtualBox.xml and I moved it to D:\VirtualBox\VirtualBox.xml.

So I dropped to a command prompt and used:

mklink "C:\Users\Grant\.VirtualBox\VirtualBox.xml" "D:\VirtualBox\VirtualBox.xml"


Bookmark and Share

Comments (2)

Subscribe to this comment's feed
That's not entirely true. Take a look at:

Nick , August 06, 2009
it should be mentioned too that the mklink command works on Windows OS starting from Vista (so basically it doesnt work on XP, even on XP SP3)

however, as nick pointed out the whole thing is not necessary if VBOX_USER_HOME environment variable is set.
alex , August 18, 2010

Write comment

narrow screen wide screen Increase font size Decrease font size Default font size