On 13-09-14 11:15 AM, Robert Mustacchi wrote:
On 09/14/2013 11:12 AM, Kent Watsen wrote:
I'm using OmniOS, but I don't think this question is specific to it.
Looking at the SMF here (http://omnios.omniti.com/wiki.php/VirtualMachinesKVM),
the "stop" command simply kills the process:
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
Is there a more graceful way to do this?
Yes, there is. In SmartOS we attempt to talk to the qemu monitor to drop
an ACPI halt and then wait for that to complete or timeout and then drop
the kill. This requires that the guest understand the ACPI events and
for GNU/Linux VMs that usually refers to the acpi daemon package being
installed and active.
Robert
startup script add the monitor option:
-monitor unix:/tmp/$HOSTNAME.monitor,server,nowait,nodelay
and you can use netcat to control it:
echo system_powerdown | nc -U /tmp/test1.monitor
Have a great day!
Geoff
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com