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?

On Fri, May 25, 2012 at 5:27 PM, Andrew Martin <> wrote:
Hi Patrick,

My VM configuration contains those same entries:
<domain type='kvm' id='65'>
    <type arch='i686' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  <clock offset='localtime'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/testvm.img'/>
      <target dev='hda' bus='ide'/>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
    <interface type='bridge'>
      <mac address='52:54:00:98:fe:49'/>
      <source bridge='br0'/>
      <target dev='vnet20'/>
    <console type='pty' tty='/dev/pts/22'>
      <source path='/dev/pts/22'/>
      <target port='0'/>
    <console type='pty' tty='/dev/pts/22'>
      <source path='/dev/pts/22'/>
      <target port='0'/>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5990' autoport='no' listen=''/>
      <model type='cirrus' vram='9216' heads='1'/>
  <seclabel type='dynamic' model='apparmor'>

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?



From: "Patrick Wilbur" <>
To: "Andrew Martin" <>
Sent: Friday, May 25, 2012 4:15:34 PM
Subject: Re: [libvirt-users] Virtual Machines Stay Off If Rebooted

Hey Andrew,

Could you run the following?

#virsh dumpxml <domain>

The XML for one of my VMs contains some entries that look like the following:


What do yours look like?

Patrick F. Wilbur
Researcher, Consultant, Educator,
Computer Science Graduate at Clarkson University

On Fri, May 25, 2012 at 5:01 PM, Andrew Martin <> wrote:

I am using libvirt on Ubuntu 10.04 Server and the following versions of these packages:
libvirt-bin, libvirt0, python-libvirt - 0.7.5-5ubuntu27.22
qemu-kvm 0.12.3+noroms-0ubuntu9.18

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

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?



libvirt-users mailing list