Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a SSD Hard drive representing C:\, which is only 30GB.

Therefore, I install all my (non-critical) apps on my large G:\ drive. My VirtualBox installation is on G:\, as well as the hard disks. However, I found that the snapshots directory still defaults to C:\Users\David\.VirtualBox\....

How do I put this on my G:\ drive by default?

share|improve this question
I followed the steps: > 1. Shutdown intended virtual machine; > 2. Right click on virtual machine, go to Settings > General > Advanced; > 3. Change Snapshots destination folder. A good value is a subfolder of your virtual machine hard disk folder. I click OK, and then go back into this settings page and it reverts to the original setting. – user118192 Feb 13 '12 at 18:57
up vote 34 down vote accepted

VirtualBox snapshots reside in the Machine Folder. You should be able to change the default machine folder using the menu option File->Preferences, under the General tab.

share|improve this answer
You are right! I figured that out shortly after I asked the question. One thing I would like to add is that you can't change your snapshots directory for a VM in which you currently have snapshots saved. This means that you have to merge all of your snapshots into the Hard Disk first. Very annoying! – David Ackerman Apr 4 '10 at 16:37
Perhaps a symbolic link would work in this situation – vol7ron Apr 5 '11 at 22:20

"One thing I would like to add is that you can't change your snapshots directory for a VM in which you currently have snapshots saved."

Not true. First, follow the advice of the first answerer, and change the default machine folder by going to File>>Preferences>>General and changing the path. This only changes the path for subsequent machines you create, not for those you've already got.


  1. Close VirtualBox
  2. Move the contents of your Users/YourUserName/VirtualBox VMs folder to whereever it is you want it.
  3. Then the edit Users/YourUserName/.VirtualBox/VirtualBox.xml file
    • /Users/YourUserName/Library/VirtualBox/VirtualBox.xml on OS X
  4. Change the paths there to your VMs to wherever you've moved your VM folders.
  5. Reboot your machine, and you're good to go - no Snapshot flattening required!
share|improve this answer
+1, this worked for me. – newenglander Dec 4 '12 at 15:50
Thanks: this nearly worked for me, on a Mac, but not quite. I've put some details in a new answer. – Ashley Jun 9 '14 at 21:02
Thanks, this worked well for me. I did not have to reboot my PC (Windows 8.1) - the new paths just worked well. – Chethan S. Mar 18 '15 at 6:02

Procedures to change snapshots folder in VirtualBox:

1 - Shutdown intended virtual machine;

2 - Right click on virtual machine, go to Settings > General > Advanced;

3 - Change Snapshots destination folder. A good value is a subfolder of your virtual machine hard disk folder.

Hope this helps preventing loses as I had suffered.

share|improve this answer

Here's a summary of the other answers posted here, along with another option I discovered.

  1. Set the default machine folder by choosing File: Preferences: General. New virtual machines will store their disk files and snapshots under this directory. However, it doesn't affect existing machines.
  2. For an existing machine, open its settings, go to the advanced tab, and change the snapshot folder. This will only work if the machine has no snapshots, so you'll have to merge them all first.
  3. If you can't merge all the snapshots or you don't want to, you can just clone the machine. The clone will use the default machine folder selected above.
share|improve this answer

Small steps:

  1. Shutdown the targeted VM
  2. Move the targeted files from C:\Users\my_user\VirtualBox VMs\Windows\Snapshots to G:\My Snapshots Folder or any folder you see fit
  3. Open C:\Users\my_user\VirtualBox VMs\Windows\Windows.vbox config file and find the Machine node (by name)
  4. Replace:
    • snapshotFolder value from Snapshots to G:/My Snapshots Folder (slash is used so you should leave it like that)
    • all location values from Snapshots to G:/My Snapshots Folder
share|improve this answer

Use Clone. No need to change any config files...

  1. Set the destination drive (G:\Vbox) in File ->Preferences -> General Tab

  2. Right click on the VM and select "Clone". Choose "Everything" if you need the snapshots as well. This will copy the VM and snapshots to the desired drive (G:\VBox).

  3. Delete the old VM.

share|improve this answer

I'm using OS X. I had a VM with several nested snapshots. I wanted to move this to a new location, but I didn't have enough free disk space to use "clone".

Because I'm on a Mac, the various instructions here didn't quite work for me. This is what I did:

  1. Quit VirtualBox.

  2. Move the various files (the .vdi file, and the folder named after the VM, which contains the .vbox file, the Snapshots folder etc) from the default ~/VirtualBox VMs to the new location.

  3. Edit ~/Library/VirtualBox/VirtualBox.xml with a text editor, updating MachineEntry with the new .vbox file location.

  4. Edit the .vbox file with a text editor, updating the first HardDisk entry with the new .vdi file location.

Using the VirtualBox interface, I also changed VirtualBox > Preferences > General > Default Machine Folder to point to where I want to create new VMs in the future. (This setting seems to be stored in the ~/Library/VirtualBox/VirtualBox.xml file... although this setting can be modified in the UI, it seems that for these other settings, we need to resort to the file editing I describe above.)

share|improve this answer
Thanks! Step 4 was not required for me btw but I'd say worth checking in case it does change. – joedragons Feb 24 '15 at 20:36
  1. Change snapshot folder as they say above
  2. Change C:\Users\.VirtualBox\VirtualBox.xml machine settings to point to new machine
  3. Make sure you kill the VBoxSVC.exe background process before you modify the .xml file. This process has memory of the previous settings and will alert you of inconsistency errors and revert the .xml file back to your previous settings.


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .