Page 1 of 1

Send ACPI signal to guest from command line ?

Posted: 5. Mar 2009, 13:47
by mark_orion
Is it possible to send an ACPI signal to the guest from the command line ? I am asking this because I want to properly shut down a headless VM. The suggested way to save the state of the VM does not work. The first attempt to start the VM with VBoxHeadless ends in a crash:
ffit@virtualbox:~$ VBoxHeadless -a 127.0.0.1 -s Zeroshell
VirtualBox Headless Interface 2.1.4
(C) 2008-2009 Sun Microsystems, Inc.
All rights reserved.

[!] FAILED calling vrdpServer->SetNetAddress(Bstr(vrdpAddress)) at line 854!
[!] Primary RC = VBOX_E_INVALID_VM_STATE (0x80BB0002) - Current virtual machine state prevents the operation
[!] Full error info present: true , basic error info present: true
[!] Result Code = VBOX_E_INVALID_VM_STATE (0x80BB0002) - Current virtual machine state prevents the operation
[!] Text = The machine is not mutable (state is 2)
[!] Component = Machine, Interface: IMachine, {ea6fb7ea-1993-4642-b113-f29eb39e0df0}
[!] Callee = IVRDPServer, {f4584ae7-6bce-474b-83d6-17d235e6aa89}

The second attempt works, but the VM does not restore properly but reboots :(

Re: Send ACPI signal to guest from command line ?

Posted: 5. Mar 2009, 14:03
by sandervl
VBoxManage controlvm VMNAME acpipowerbutton