[libvirt] virsh reboot not working with QEMU driver?

I've noticed when using the QEMU driver that virsh reboot is not supported. Can this be supported, or is there some functionality that the underlying QEMU is missing?

On 11/03/2010 01:27 PM, Jon Stanley wrote:
I've noticed when using the QEMU driver that virsh reboot is not supported. Can this be supported, or is there some functionality that the underlying QEMU is missing?
Which version of libvirt and qemu? There has been some progress made on this front lately, and the most likely answer is that you are using older versions where it was not yet supported. Also, it may depend on whether your guest OS is responsive to ACPI commands. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

On Wed, Nov 3, 2010 at 3:44 PM, Eric Blake <eblake@redhat.com> wrote:
Which version of libvirt and qemu? There has been some progress made on this front lately, and the most likely answer is that you are using older versions where it was not yet supported. Also, it may depend on whether your guest OS is responsive to ACPI commands.
I'm particularly concerned with RHEL5, which uses an ancient version of both (I know that libvirt is 0.6.3, not sure about QEMU off the top of my head). But the same thing is happening on my Fedora 13 machine, which is using: # qemu-kvm --version QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008 Fabrice Bellard # rpm -q libvirt libvirt-0.8.2-1.fc13.x86_64 The guests respond to ACPI, since 'virsh shutdown' works as intended in them.

On 11/03/2010 01:44 PM, Eric Blake wrote:
On 11/03/2010 01:27 PM, Jon Stanley wrote:
I've noticed when using the QEMU driver that virsh reboot is not supported. Can this be supported, or is there some functionality that the underlying QEMU is missing?
Which version of libvirt and qemu? There has been some progress made on this front lately, and the most likely answer is that you are using older versions where it was not yet supported. Also, it may depend on whether your guest OS is responsive to ACPI commands.
Just tested on Fedora 14, and it's still not directly supported in # rpm -q libvirt qemu qemu-kvm libvirt-0.8.3-2.fc14.x86_64 qemu-0.13.0-1.fc14.x86_64 qemu-kvm-0.13.0-1.fc14.x86_64 And virt-manager is still faking it with a shutdown, wait for event, and fresh boot. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

于 2010年11月04日 04:24, Eric Blake 写道:
On 11/03/2010 01:44 PM, Eric Blake wrote:
On 11/03/2010 01:27 PM, Jon Stanley wrote:
I've noticed when using the QEMU driver that virsh reboot is not supported. Can this be supported, or is there some functionality that the underlying QEMU is missing?
Which version of libvirt and qemu? There has been some progress made on this front lately, and the most likely answer is that you are using older versions where it was not yet supported. Also, it may depend on whether your guest OS is responsive to ACPI commands.
Just tested on Fedora 14, and it's still not directly supported in # rpm -q libvirt qemu qemu-kvm libvirt-0.8.3-2.fc14.x86_64 qemu-0.13.0-1.fc14.x86_64 qemu-kvm-0.13.0-1.fc14.x86_64
And virt-manager is still faking it with a shutdown, wait for event, and fresh boot.
IMHO, it's still in the TOBO list. :-) - Osier
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (3)
-
Eric Blake
-
Jon Stanley
-
Osier Yang