Hi,
I have 30 snapshots on one of my test machine. Now I have realized that all of this snapshots are eating whole disk. I don't need any of this snapshot anymore, so I would like to delete them all.
But deleting one by one takes 30 minutes to delete single snapshot. Is there any way I can delete all of the snapshots at the single time? This can't be done using GUI - I can't mark multiple snapshots to delete. Any command like "delete all snapshots for VM"?
Is there some heck to manually delete all files and write some settings in one of xml files?
The only think I would like to preserve is "current state" of this virtual machine.
Host: Ubuntu 8.04 LTS (hardy).
Guest: Windows XP sp3.
VirtualBox: v3.2.12 (yes I am still on version 3!)
Regards
How to delete all of the snapshots with single action?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: How to delete all of the snapshots with single action?
If you clone the current state VDI then what you get is a stand alone merger of all the snapshots plus the base. You can build a new VM around this, of course ensuring that the hardware is identical. Try out the clone for a while to make sure it's ok, then delete the old VM.
-
twistedlincoln
- Posts: 86
- Joined: 17. Dec 2008, 17:08
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: Nexradix
- Contact:
Re: How to delete all of the snapshots with single action?
The ability to delete multiple snapshots at once would be a great feature for the GUI.
-
qkb
- Posts: 24
- Joined: 16. Nov 2009, 21:02
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: WinXP, Win7, Debian
- Location: Kraków, Poland
Re: How to delete all of the snapshots with single action?
Set the 'current state' to the base VM. If you now start deleting snapshots one-by-one starting from these which have no 'descendants' then it is quite fast: the operation simply deletes the diff VDI.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How to delete all of the snapshots with single action?
That would work only if you were wanting to loose everything and return to the pristine state of the base. Otherwise you will loose everything that has been done since the first snapshot was created. But the OP wants to preserve the current state and your solution would kill it for him.qkb wrote:Set the 'current state' to the base VM. If you now start deleting snapshots one-by-one starting from these which have no 'descendants' then it is quite fast: the operation simply deletes the diff VDI.
@abcuser, listen to mpack.
-
abcuser
- Volunteer
- Posts: 595
- Joined: 10. May 2007, 20:03
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows XP
Re: How to delete all of the snapshots with single action?
I am using VBox for years, so I know this was a bad advice. Now I have just manually delete one by one snapshot it took me 'hell' a lot of the time, but just to make it sure I don't lose anything.Perryg wrote:That would work only if you were wanting to loose everything and return to the pristine state of the base.
It would be nice feature to mark all the snapshots in GUI and then delete them with single Delete click button.