(3.1.0) VBoxManage not able to delete snapshots

Discussions related to using VirtualBox on Windows hosts.
Post Reply
kmrdeva
Posts: 5
Joined: 11. Jul 2009, 17:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 2003, Linux

(3.1.0) VBoxManage not able to delete snapshots

Post by kmrdeva »

Hi all,

Have just installed VB 3.1.0 on my Windows 2003 host and found a problem (hope I'm not doing it wrong). Is anyone facing the same issue?

Guest Name : VB0S1
Snapshot Names : OS120091201, OS120091202, OS120091203


I've successfully taken snapshots via VBoxManage, but am having trouble deleting them via the cmd line tool. Deleting via the VB UI is working ok.

Taking snapshots (OK):

vboxmanage snapshot VB0S1 take OS120091201

Deleting snapshots (ERROR):

vboxmanage snapshot VB0S1 delete OS120091201

VirtualBox Command Line Management Interface Version 3.1.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

ERROR: Argument aId is invalid (must be Guid(aId).isEmpty() == false)
Details: code E_INVALIDARG (0x80070057), component Console, interface IConsole, callee IUnknown
Context: "DeleteSnapshot(guidSnap, pProgress.asOutParam())" at line 369 of file VBoxManageSnapshot.cpp
xr1140
Posts: 3
Joined: 3. Dec 2009, 23:21
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: XP

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by xr1140 »

i have the same problem except the fact that i can not delete the snapshots not even from GUI.

in my case a have a VM with 3 cascading snapshots and i can`t delete any of them.
r0lZ
Posts: 3
Joined: 8. Dec 2009, 14:15
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win7, Linux Mint

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by r0lZ »

Same thing here (vboxmanage and GUI)! I can't even delete the snapshots I've just made one second before with v3.1.0 (Running under WinXP SP3).

This is obviously an important bug!
r0lZ
Posts: 3
Joined: 8. Dec 2009, 14:15
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win7, Linux Mint

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by r0lZ »

I've posted a bug report on the public bugtracker. Ticket #5727
http://www.virtualbox.org/ticket/5727
xr1140
Posts: 3
Joined: 3. Dec 2009, 23:21
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: XP

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by xr1140 »

the problem is still present in 3.1.2
void64
Posts: 21
Joined: 11. Jan 2008, 21:56
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Xubuntu
Contact:

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by void64 »

I also have this problem. I can delete snapshots in the GUI, but not using vboxmanage. Since I use a script running vboxmanage to do nightly backups of my VM, a speedy resolution would be much appreciated - thank you!
nullone
Posts: 1
Joined: 2. Jan 2010, 01:08
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Server 2003, XP, Ubuntu, OSX

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by nullone »

I seem to only encounter this problem if there is an attached write-through disk in the snapshot. Anyone have a problem with just an immutable disk attached?
void64
Posts: 21
Joined: 11. Jan 2008, 21:56
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Xubuntu
Contact:

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by void64 »

nullone wrote:I seem to only encounter this problem if there is an attached write-through disk in the snapshot. Anyone have a problem with just an immutable disk attached?
I do not use a write-through disk but still have the same problem.
kmrdeva
Posts: 5
Joined: 11. Jul 2009, 17:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 2003, Linux

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by kmrdeva »

void64 wrote:
nullone wrote:I seem to only encounter this problem if there is an attached write-through disk in the snapshot. Anyone have a problem with just an immutable disk attached?
I do not use a write-through disk but still have the same problem.
My setup has no write-through disks, same problem though..
r0lZ
Posts: 3
Joined: 8. Dec 2009, 14:15
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win7, Linux Mint

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by r0lZ »

I have some writethrough discs too, but even when I mount only a single normal disc, I cannot delete the snapshots.

Not sure if it's related to this bug, but I've also noticed that it is impossible to unmount a CD drive. Seems that when you attach something to a vobx, you can never get rid of it!

As nobody seems to take care of this bug, I guess we have to downgrade to a more stable version... :evil:
void64
Posts: 21
Joined: 11. Jan 2008, 21:56
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Xubuntu
Contact:

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by void64 »

r0lZ wrote: As nobody seems to take care of this bug, I guess we have to downgrade to a more stable version... :evil:
It's free software ... ask nicely ... be happy for what's available already!
c1b8
Posts: 1
Joined: 18. Apr 2010, 02:39
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Fedora

Re: (3.1.0) VBoxManage not able to delete snapshots

Post by c1b8 »

I use VirtualBox 3.1.6 and I have a similar problem: VBoxManage is not able to delete snapshots using the snapshot name but it can delete them using the UUID.

The UUID can be found in one of two ways:
1) using the VBoxManage "showvminfo" command,
2) looking for the name of the .sav file in .VirtualBox/Machines/<vmname>/Snapshots

So, here is the workaround:

VBoxManage snapshot Myvmname take test-snap --description test-snapshot

...do what you need with the snapshot, then delete it

VBoxManage controlvm Myvmname acpipowerbutton
VBoxManage snapshot Myvmname delete `ls /home/vmadmin/.VirtualBox/Machines/Myvmname/Snapshots/*.sav | sed -e 's/.*{\(.*\)}.*/\1/'`

Hope it helps.
Post Reply