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"