(3.1.0) VBoxManage not able to delete snapshots

Discussions related to using VirtualBox on Windows hosts.

(3.1.0) VBoxManage not able to delete snapshots

Postby kmrdeva » 3. Dec 2009, 06:27

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
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

Postby xr1140 » 3. Dec 2009, 23:24

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.
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

Postby r0lZ » 8. Dec 2009, 14:23

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

Postby r0lZ » 11. Dec 2009, 15:03

I've posted a bug report on the public bugtracker. Ticket #5727
http://www.virtualbox.org/ticket/5727
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

Postby xr1140 » 26. Dec 2009, 22:49

the problem is still present in 3.1.2
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

Postby void64 » 27. Dec 2009, 08:50

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!
void64
 
Posts: 21
Joined: 11. Jan 2008, 21:56
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Xubuntu

Re: (3.1.0) VBoxManage not able to delete snapshots

Postby nullone » 2. Jan 2010, 01:15

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?
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

Postby void64 » 2. Jan 2010, 03:28

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.
void64
 
Posts: 21
Joined: 11. Jan 2008, 21:56
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Xubuntu

Re: (3.1.0) VBoxManage not able to delete snapshots

Postby kmrdeva » 2. Jan 2010, 07:09

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..
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

Postby r0lZ » 3. Jan 2010, 05:52

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:
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

Postby void64 » 3. Jan 2010, 07:02

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!
void64
 
Posts: 21
Joined: 11. Jan 2008, 21:56
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Xubuntu

Re: (3.1.0) VBoxManage not able to delete snapshots

Postby c1b8 » 18. Apr 2010, 04:34

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.
c1b8
 
Posts: 1
Joined: 18. Apr 2010, 02:39
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Fedora


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: rodak and 53 guests