Re: [libvirt] How does virt-manager send shutdown?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bryan Kearney wrote:
Daniel P. Berrange wrote:
On Fri, Aug 01, 2008 at 01:22:43PM -0400, Bryan Kearney wrote:
How does virt-manager send shutdown to guests? Does it depend on if you are running kvm or xen? I have been building images with acpid enabled and acpi=force on the command line. After upgrading to f9 and running kvm my images no longer respond to shutdown. Is there a tweak which I have missed?

virt-manager just invokes the shutdown API in libvirt, which has different
impls depending on the underlying hypervisor. In KVM case it invokes the
QEMU 'system_shutdown' command, which then triggers an ACPI power button
event in the guest. You need to make sure your guest has the <acpi/>
feature enabled in its XML config of course, and that the kernel has activated ACPI (may need the acpi=force param), and that acpid is running.
IIRC certainly KVM versions have a bug wrt this causing it not to work

Daniel

I added the following to my xml

      <features>
        <feature>
                <acpi/>
        </feature>
        </features>


One follow up question. Any reason that this should _not_ be the default set up by the appliance-creator?

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]