Hi Patrick,
Yes, this is a production server.
Thanks,
Andrew
----- Original Message -----
From: "Patrick Wilbur" <patrick.wilbur(a)gmail.com>
To: "Andrew Martin" <amartin(a)xes-inc.com>
Cc: libvirt-users(a)redhat.com
Sent: Saturday, May 26, 2012 9:27:20 AM
Subject: Re: [libvirt-users] Virtual Machines Stay Off If Rebooted
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 < amartin(a)xes-inc.com > wrote:
Hi Patrick,
My VM configuration contains those same entries:
<domain type='kvm' id='65'>
<name>testvm</name>
<uuid>e630518d-2ccc-f643-a6cb-61c09a3fb251</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='i686' machine='pc-0.12'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/testvm.img'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='bridge'>
<mac address='52:54:00:98:fe:49'/>
<source bridge='br0'/>
<target dev='vnet20'/>
</interface>
<console type='pty' tty='/dev/pts/22'>
<source path='/dev/pts/22'/>
<target port='0'/>
</console>
<console type='pty' tty='/dev/pts/22'>
<source path='/dev/pts/22'/>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5990' autoport='no'
listen='0.0.0.0'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
</video>
</devices>
<seclabel type='dynamic' model='apparmor'>
<label>libvirt-e630518d-2ccc-f643-a6cb-61c09a3fb251</label>
<imagelabel>libvirt-e630518d-2ccc-f643-a6cb-61c09a3fb251</imagelabel>
</seclabel>
</domain>
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?
Thanks!
Andrew
From: "Patrick Wilbur" < patrick.wilbur(a)gmail.com >
To: "Andrew Martin" < amartin(a)xes-inc.com >
Cc: libvirt-users(a)redhat.com
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:
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
What do yours look like?
--
Patrick F. Wilbur
Researcher, Consultant, Educator,
Computer Science Graduate at Clarkson University
patrick.wilbur(a)gmail.com
wilburpf(a)clarkson.edu
Check out our book:
http://runningxen.com
My website:
http://pdub.net
Consulting:
http://pfwilbur.com
On Fri, May 25, 2012 at 5:01 PM, Andrew Martin < amartin(a)xes-inc.com > wrote:
<blockquote>
Hello,
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
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/368962
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?
Thanks,
Andrew
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users
</blockquote>