<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hi Patrick,<br><br>Yes, this is a production server.<br><br>Thanks,<br><br>Andrew<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Patrick Wilbur" <patrick.wilbur@gmail.com><br><b>To: </b>"Andrew Martin" <amartin@xes-inc.com><br><b>Cc: </b>libvirt-users@redhat.com<br><b>Sent: </b>Saturday, May 26, 2012 9:27:20 AM<br><b>Subject: </b>Re: [libvirt-users] Virtual Machines Stay Off If Rebooted<br><br><div><div><div>Hmm.  I'm not sure.  I'll keep thinking about it and let you know if I come up with any ideas!  Is this a production environment?</div></div></div>
<br><br><div class="gmail_quote">On Fri, May 25, 2012 at 5:27 PM, Andrew Martin <span dir="ltr"><<a href="mailto:amartin@xes-inc.com" target="_blank">amartin@xes-inc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:Times New Roman"><font size="3">Hi Patrick,</font><div style="font-size:12pt;font-family:'Times New Roman'"><br></div><div style="font-size:12pt;font-family:'Times New Roman'">

My VM configuration contains those same entries:</div><div><div><font face="courier new, courier, monaco, monospace, sans-serif"><domain type='kvm' id='65'></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <name>testvm</name></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">  <uuid>e630518d-2ccc-f643-a6cb-61c09a3fb251</uuid></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <memory>524288</memory></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">  <currentMemory>524288</currentMemory></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <vcpu>1</vcpu></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">  <os></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <type arch='i686' machine='pc-0.12'>hvm</type></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <boot dev='hd'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  </os></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <features></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <acpi/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <apic/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <pae/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">  </features></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <clock offset='localtime'/></font></div>

<div class="im"><div><font face="courier new, courier, monaco, monospace, sans-serif">  <on_poweroff>destroy</on_poweroff></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <on_reboot>restart</on_reboot></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">  <on_crash>restart</on_crash></font></div></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <devices></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <emulator>/usr/bin/kvm</emulator></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <disk type='file' device='disk'></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <driver name='qemu' type='raw'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">      <source file='/var/lib/libvirt/images/testvm.img'/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <target dev='hda' bus='ide'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    </disk></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <disk type='block' device='cdrom'></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">      <driver name='qemu' type='raw'/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <target dev='hdc' bus='ide'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">      <readonly/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    </disk></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <interface type='bridge'></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <mac address='52:54:00:98:fe:49'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">      <source bridge='br0'/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <target dev='vnet20'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    </interface></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <console type='pty' tty='/dev/pts/22'></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">      <source path='/dev/pts/22'/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <target port='0'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    </console></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <console type='pty' tty='/dev/pts/22'></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">      <source path='/dev/pts/22'/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <target port='0'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    </console></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <input type='tablet' bus='usb'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <input type='mouse' bus='ps2'/></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <graphics type='vnc' port='5990' autoport='no' listen='0.0.0.0'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <video></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">      <model type='cirrus' vram='9216' heads='1'/></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    </video></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">  </devices></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">  <seclabel type='dynamic' model='apparmor'></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">    <label>libvirt-e630518d-2ccc-f643-a6cb-61c09a3fb251</label></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    <imagelabel>libvirt-e630518d-2ccc-f643-a6cb-61c09a3fb251</imagelabel></font></div>

<div><font face="courier new, courier, monaco, monospace, sans-serif">  </seclabel></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif"></domain></font></div><div style="font-size:12pt;font-family:'Times New Roman'">

<br></div><div style="font-size:12pt;font-family:'Times New Roman'">A few months ago the configuration worked as expected - rebooting a machine would obey the directive in the config file and restart it, however that is no longer the case. What other information would be helpful in debugging this?</div>

<div style="font-size:12pt;font-family:'Times New Roman'"><br></div><div style="font-size:12pt;font-family:'Times New Roman'">Thanks!</div><div style="font-size:12pt;font-family:'Times New Roman'">

<br></div><div style="font-size:12pt;font-family:'Times New Roman'">Andrew</div><br><hr style="font-size:12pt;font-family:'Times New Roman'"><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal">

<b>From: </b>"Patrick Wilbur" <<a href="mailto:patrick.wilbur@gmail.com" target="_blank">patrick.wilbur@gmail.com</a>><br><b>To: </b>"Andrew Martin" <<a href="mailto:amartin@xes-inc.com" target="_blank">amartin@xes-inc.com</a>><br>

<b>Cc: </b><a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br><b>Sent: </b>Friday, May 25, 2012 4:15:34 PM<br><b>Subject: </b>Re: [libvirt-users] Virtual Machines Stay Off If Rebooted<div>

<div class="h5"><br><br>Hey Andrew,<div><br></div><div>Could you run the following?</div><div><br></div><div>#virsh dumpxml <domain></div><div><br></div><div>The XML for one of my VMs contains some entries that look like the following:</div>



<div><div><br></div><div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>restart</on_crash></div><div><br></div><div>What do yours look like?</div>



<div><br></div>--<br>Patrick F. Wilbur<div>Researcher, Consultant, Educator,<br>Computer Science Graduate at Clarkson University<div><br><a href="mailto:patrick.wilbur@gmail.com" target="_blank">patrick.wilbur@gmail.com</a><br>



<a href="mailto:wilburpf@clarkson.edu" target="_blank">wilburpf@clarkson.edu</a><br><br>Check out our book: <a href="http://runningxen.com" target="_blank">http://runningxen.com</a><div>My website: <a href="http://pdub.net" target="_blank">http://pdub.net</a></div>



<div>Consulting: <a href="http://pfwilbur.com" target="_blank">http://pfwilbur.com</a></div></div></div><div><br></div>
<br><br><div class="gmail_quote">On Fri, May 25, 2012 at 5:01 PM, Andrew Martin <span dir="ltr"><<a href="mailto:amartin@xes-inc.com" target="_blank">amartin@xes-inc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div style="font-size:12pt;font-family:Times New Roman">Hello,<div><br></div><div>I am using libvirt on Ubuntu 10.04 Server and the following versions of these packages:</div><div>libvirt-bin, libvirt0, python-libvirt - 0.7.5-5ubuntu27.22</div>



<div>qemu-kvm 0.12.3+noroms-0ubuntu9.18</div><div><br></div><div>Recently, when restarting a VM (either by issuing "sudo reboot" on a Linux guest or choosing "Restart" from the Start Menu on a Windows guest) the VM shuts down and remains off rather than simply restarting. I cannot test "virsh restart <domain>" on this server as the version of libvirt does not appear to support restarting - see <a href="https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/368962" style="font-size:12pt" target="_blank">https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/368962</a></div>



<div><br></div><div>I do not receive any errors in /var/log when the shutdown occurs. Powering the VM back on works, however I would prefer to have hot restart working so VMs that are automatically rebooted to install updates will come back up automatically. Do you have any suggestions on how to debug this behavior?</div>



<div><br></div><div>Thanks,</div><div><br></div><div>Andrew</div><div><br></div><div><br></div></div></div><br>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br></div>
</div></div></div><br></div></div></div></blockquote></div><br>
</div><br></div></body></html>