change VirtualBox.xml location

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Serge N.
Posts: 2
Joined: 21. Nov 2012, 07:22

change VirtualBox.xml location

Post by Serge N. »

Hello, All!

I'm using virtualbox on win7 x64.
All virtual machines are stored on manually mounted partition.
But VirtualBox.xml is located in c:/users/UserName/.VirtualBox
Is it possible to move VirtualBox.xml to manually mounted partition - change c:/users/UserName/.VirtualBox to Y:/VM/.VirtualBox?
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: change VirtualBox.xml location

Post by mpack »

Serge N. wrote:Is it possible to move VirtualBox.xml to manually mounted partition ... ?
Yes it is, using the VBOX_USER_HOME environment variable to set the non default path. However I'm puzzled as to why you'd want to do this, as VirtualBox.xml is tiny. This will not affect where VMs are created - to do that change the File|Preferences|General|Default Machine Folder field.
Serge N.
Posts: 2
Joined: 21. Nov 2012, 07:22

Re: change VirtualBox.xml location

Post by Serge N. »

because of security reason - so that when partition is unmounted it would be impossible to view list of virtual machines.
testworks
Posts: 1
Joined: 3. Dec 2012, 01:16

Re: change VirtualBox.xml location

Post by testworks »

VBOX_USER_HOME appears broken in 4.2.4

I upgraded from 4.1.18 or something so it could have been broken anywhere inbetween.

In previous versions, I had VBOX_USER_HOME set to C:\Users\my.username, which placed (and looked for) the VirtualBox.xml file in the C:\Users\my.username\.VirtualBox hidden directory.

Now, everything is going into the root directory of C:\Users\my.username, so when I loaded up VirtualBox after the upgrade, it failed to find my virtual machines.
Post Reply