Page 1 of 1

Problem changing crashes snapshot default folder

Posted: 26. Apr 2017, 22:18
by philatatelier
Hi everyone,

I am having a bit of an issue with the configuration of our Virtual Box machines at our office.

All our Hosts run on CentOS 6.8
Vbox version : 5.5.12

Basically, I would like to change the default value of the automatic snapshots directory.

Even though I setup the Snapshots location to

Code: Select all

 /public/exampleusername/virtualbox 
when the virtual machine crashes , it creates a snapshot file under

Code: Select all

/home/exampleuser/VirtualBox VMs/Windows_7/Snapshots/
. The .vbox file is under

Code: Select all

/home/exampleuser/VirtualBox VMs/Windows_7/Windows_7.vbox
I don't care if the virtual machine crashes since the users run really heavy software so it's to be expected, but these snapshots are really annoying since we set up quotas on users home folder and it always fills them up.



If I open the .vbox file I'd like to change this particular line :

Code: Select all

<HardDisk uuid="{e536eb7a-78d6-4a56-b420-443f7fc38fbc}" location="Snapshots/{e536eb7a-78d6-4a56-b420-443f7fc38fbc}.vdi" format="VDI" autoReset="true"/>
to this :

Code: Select all

<HardDisk uuid="{e536eb7a-78d6-4a56-b420-443f7fc38fbc}" location="/public/exampleusername/virtualbox/Snapshots/{e536eb7a-78d6-4a56-b420-443f7fc38fbc}.vdi" format="VDI" autoReset="true"/>
The header mentions that the changes won't be saved and that it should be done through vboxmanage but I haven't been able to find the correct option.
My research has been kind of pointless since all the info I've found only points to the "standard" snapshots.

Any help would be appreciated :D

Thanks,
Phil.

Re: Problem changing crashes snapshot default folder

Posted: 27. Apr 2017, 10:59
by mpack
"Standard snapshots" is the only kind of snapshots that exist.

Snapshots go in the VM folder. If you want them somewhere else then move the VM folder. Howto: Move a VM.

Re: Problem changing crashes snapshot default folder

Posted: 27. Apr 2017, 20:04
by philatatelier
Thanks, I was able to move the folder and fix the issue.