Code: Select all
$ VBoxManage showvminfo "Ubuntu Server" | grep State
State: paused (since 2008-08-26T21:56:48.212000000)Code: Select all
$ VBoxManage controlvm "Ubuntu Server" resume
VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.Code: Select all
$ VBoxManage showvminfo "Ubuntu Server" | grep State
State: paused (since 2008-08-26T22:16:05.707000000)
Code: Select all
$ VBoxManage discardstate "Ubuntu Server"
VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
[!] FAILED calling virtualBox->OpenSession(session, guid) at line 6008!
[!] Primary RC = E_ACCESSDENIED (0x80070005) - Access denied
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_ACCESSDENIED (0x80070005) - Access denied
[!] Text = A session for the machine 'Ubuntu Server' is currently open (or being closed)
[!] Component = Machine, Interface: IMachine, {f95c0793-7737-49a1-85d9-6da81097173b}
[!] Callee = IVirtualBox, {2d3b9ea7-25f5-4f07-a8e1-7dd7e0dcf667}Code: Select all
$ VBoxManage controlvm "Ubuntu Server" reset
VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
[!] FAILED calling console->Reset() at line 5558!
[!] Primary RC = NS_ERROR_FAILURE (0x80004005) - Operation failed
[!] Full error info present: true , basic error info present: true
[!] Result Code = NS_ERROR_FAILURE (0x80004005) - Operation failed
[!] Text = Cannot reset the machine as it is not running (machine state: 5)
[!] Component = Console, Interface: IConsole, {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}
[!] Callee = IConsole, {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}
Code: Select all
$ VBoxManage controlvm "Ubuntu Server" resume && VBoxManage showvminfo "Ubuntu Server"|grep State
VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
State: paused (since 2008-08-26T22:39:17.958000000)
$ VBoxManage controlvm "Ubuntu Server" resume && VBoxManage showvminfo "Ubuntu Server"|grep State
VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
State: paused (since 2008-08-26T22:39:18.672000000)
$ VBoxManage controlvm "Ubuntu Server" resume && VBoxManage showvminfo "Ubuntu Server"|grep State
VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
State: paused (since 2008-08-26T22:39:19.466000000)