Send ACPI signal to guest from command line ?

Discussions related to using VirtualBox on Linux hosts.

Send ACPI signal to guest from command line ?

Postby mark_orion » 5. Mar 2009, 13:47

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 :(
mark_orion
 
Posts: 33
Joined: 4. Nov 2008, 17:16

Re: Send ACPI signal to guest from command line ?

Postby sandervl » 5. Mar 2009, 14:03

VBoxManage controlvm VMNAME acpipowerbutton
sandervl
Volunteer
 
Posts: 1064
Joined: 10. May 2007, 10:27
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Windows, Linux, Solaris


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], MopedTobias and 30 guests