VirtualBox

Ticket #597 (new enhancement)

Opened 7 years ago

Last modified 5 years ago

Cannot take a snapshot when there is a Writethrough hard disk attached

Reported by: nvivo Owned by:
Priority: major Component: other
Version: VirtualBox 1.4.0 Keywords:
Cc: Guest type: other
Host type: other

Description

Trying to take a snapshot of a VM that has a disk in writethrough mode (even if you have other regular disks) causes the GUI to show an error:

Cannot take a snapshot when there is a Writethrough hard disk attached ('/path/to/disk.vdi').

Result Code: 
0x80004005
Component: 
Machine
Interface: 
IMachine {31f7169f-14da-4c55-8cb6-a3665186e35e}
Callee: 
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

This makes it hard to have a "system disk" that you want to snapshot and a "data disk" where you persist documents, settings and other stuff. The workaround today is to manually remove the disk from the VM using the settings window, take the snapshot, then re-add the disk. (And you must remember everytime you restore it).

In VMWare, using the "persistent disk" that is the writethrough equivalent, the behaviour is to take the snapshot of regular disks and ignore the persistent ones.

So, VBoxManage could have a similar behaviour, and maybe show a simple message like this when taking/restoring snapshots:

The following disks are beign ignored because they are in writethrough mode:

/path/to/disk1.vdi
/path/to/disk2.vdi

Change History

comment:1 Changed 6 years ago by kproth

I was going to write this up as well, so consider this a Me Too. For me, I prefer to setup my Windows Paging File (in the Guest OS) on a separate WriteThrough VDI file. There's no need to include this in snapshots for me, since Windows doesn't really care what's in that file after it shuts down. But having to remove and re-add that pagefile disk is a real drag.

comment:2 Changed 5 years ago by flszen

Yes, this is a very nice feature that hasn't been implemented yet. See enhancement 2502 defect 2578 also. 2578 refers to the documentation that suggests the use of writethrough disks to exclude them from snapshots.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use