Ny way to change the VirtualBox “snapshot” folder for an existing virtual machine

virtualbox

I have a virtual machine which is currently using a folder on the C: drive to store its snapshots. I have copied the contents of the "Snapshots" folder to an alternate drive, but whenever I go into the General / Advanced settings section for that virtual machine and change the snapshot folder to the new location it resets back to the original location. What do I need to do to get VirtualBox to recognize the new location for the snapshot files?

Best Answer

If you already have snapshots I think you'll have to do what I did, which is manually edit the .vbox xml file. This is what I did for a Win7 32 virtual machine named Win7_32

  1. Shut down the VirtualBox Manager
  2. Navigate to the user/VirtualBox VMs/Win7_32/Win7_32.vbox
  3. Make a copy of the .vbox file just to be safe.
  4. Open the original file with a text or xml editor
  5. Look for a "currentSnapshot" entry.
  6. Manually enter the path to your new snapshot folder
  7. Scroll down a little and look for the HardDisks entry. You should see an entry for your base hard disk, you don't have to change this.
  8. You should also see entries for all your snapshots. You want to modify the "location" attribute so that it reflects your new desired Snapshot path
  9. Save the changes to the file
  10. Move all your old snapshots to the new path
  11. Start the virtualbox manager and start your machine
Related Question