Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
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

5 Answers

up vote 14 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
2  
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
1  
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.

Now, close VirtualBox, and move the contents of your Users/YourUserName/VirtualBox VMs folder to whereever it is you want it. Then the edit Users/YourUserName/.VirtualBox/VirtualBox.xml file. Change the paths there to your VMs to wherever you've moved your VM folders, 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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.