Problem changing crashes snapshot default folder

Discussions related to using VirtualBox on Linux hosts.
Post Reply
philatatelier
Posts: 2
Joined: 26. Apr 2017, 21:50

Problem changing crashes snapshot default folder

Post 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.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Problem changing crashes snapshot default folder

Post 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.
philatatelier
Posts: 2
Joined: 26. Apr 2017, 21:50

Re: Problem changing crashes snapshot default folder

Post by philatatelier »

Thanks, I was able to move the folder and fix the issue.
Post Reply