vboxmanage bug (online snaoshot)

This is for discussing general topics about how to use VirtualBox.
Post Reply
jianghao
Posts: 8
Joined: 6. May 2012, 17:31

vboxmanage bug (online snaoshot)

Post by jianghao »

hi! everybody!
i think this is a bug!
there is my lab environment,
host os: win7 32bit
guest os:win7 32bit

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list  hostinfo
Host Information:

Host time: 2012-05-07T08:23:10.392000000Z
Processor online count: 2
Processor count: 2
Processor#0 speed: unknown
Processor#0 description: AMD Athlon(tm) II X2 250 Processor
Processor#1 speed: unknown
Processor#1 description: AMD Athlon(tm) II X2 250 Processor
Memory size: 3325 MByte
Memory available: 2235 MByte
Operating system: Windows 7
Operating system version: 6.1.7600
if I use virtualbox manage to create a "online snapshot" and restore this "online snapshot", everything is ok;
if I use vboxmanage subcommand snapshot to create "online snapshot" and restore this "online snapshot" this is a bug;
first i poweron the VM win7,and usevboxmanage to create a oneline snapshot;

Code: Select all

VBoxManage.exe snapshot win7 take online
Progress state: E_FAIL
VBoxManage.exe: error: Failed to take snapshot. Error message: Failed to save the machine state to '
C:\Users\Administrator\VirtualBox VMs\win7\Snapshots\2012-05-07T08-13-59-718364700Z.sav' (VERR_SSM_L
IVE_GURU_MEDITATION)
2. so,i use GUI to create a online snapshot :

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe snapshot win7 list
   Name: Snapshot 1 (UUID: 9f33f1e5-ae1a-4e3f-a369-9badf4ba3231) *

Code: Select all

3. C:\Program Files\Oracle\VirtualBox>VBoxManage.exe snapshot win7 restore "9f33f1e5-ae1a-4e3f-a369-9ba
df4ba3231"
Restoring snapshot 9f33f1e5-ae1a-4e3f-a369-9badf4ba3231
VBoxManage.exe: error: Cannot delete the current state of the running machine (machine state: Runnin
g)
VBoxManage.exe: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), component Console, interf
ace IConsole, callee IUnknown
Context: "RestoreSnapshot(pSnapshot, pProgress.asOutParam())" at line 424 of file VBoxManageSnapshot
.cpp

thanks eveybody
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: vboxmanage bug (online snaoshot)

Post by frank »

Known issue. Live snapshots are broken in VirtualBox 4.1.*. Add the --pause command line switch to the command line and it will work, that is

Code: Select all

VBoxManage snapshot VM_NAME take SNAPSHOT_NAME --pause
jianghao
Posts: 8
Joined: 6. May 2012, 17:31

Re: vboxmanage bug (online snaoshot)

Post by jianghao »

oh!~ yeah! great! thanks!
Post Reply