<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Helvetica,Arial,sans-serif'>
<p>You can make qemu dump a monitoring socket, you can then use netcat to send commands like acpi shutdown events but also query other info. If the socket is dead, the qemu process crashed.</p>
<p>So applying some wrapper magic it could be possible to make the svc more intelligent. I can't offor you a working manifest though :( I theorized about it but deemed it too much work for the one vm I run. I do use the qemu monitoring socket however.</p>
<div> </div>
<p>-chardev socket,id=monitor,path=/vms/hosts/${VMNAME}/run/monitor.sock,server,nowait \<br />-monitor chardev:monitor \<br /><br /></p>
<p>To add the monitor</p>
<p>Hope this is somewhat helpful!</p>
<p>Regards</p>
<p>Jorge</p>
<p>On 2014-09-26 16:30, Filip Marvan wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored --><!-- node type 8 --><!-- node type 8 -->
<div class="WordSection1">
<p class="MsoNormal">Hello,<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">I'm running virtual machines on KVM in OmniOS. It works great, but I would like to know, if there is any way, how to manage that virtual machines more comfortably.<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">If I create a transient service for every virtual guest (transient, because I don't want to start that virtual machine again when I shutdown the system directly from the guest), but as service is transient, it seems to be still "online" even guest is not running anymore so I have no knowledge from OmniOS, if this virtual machine is running or not. So Is there any other way, how to find which virtual machines are running?<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">Of course I can shutdown virtualmachine with: <!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">svcadm disable virtualmachine<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">But sometimes ACPI is not working or is blocked by some reason, si I have to shutdown system directly from guest.<!-- o ignored --></p>
<p class="MsoNormal">So how can I see, which KVM virtual machines are really running?<!-- o ignored --></p>
<p class="MsoNormal"><!-- o ignored --> </p>
<p class="MsoNormal">Thank you very much for any help,<!-- o ignored --></p>
<p class="MsoNormal">Filip Marvan<!-- o ignored --></p>
</div>
<!-- html ignored --><br />
<pre>_______________________________________________
OmniOS-discuss mailing list
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a>
</pre>
</blockquote>
</body></html>