[libvirt-users] virsh shutdown <domain> not fully working on win7 ?

Andrey Korolyov andrey at xdel.ru
Mon Apr 20 14:12:23 UTC 2015


On Fri, Apr 17, 2015 at 4:05 PM, Eric Blake <eblake at redhat.com> wrote:
> On 04/17/2015 02:26 AM, Marko Weber | 8000 wrote:
>>
>> hello list,
>>
>> i have a running vm with win7.
>> When i fire up an 'virsh shutdown win7' nothing happens.
>> When i fire up a second the same command, then the win7 machine is
>> shutting down.
>> Why do i need to fire up this command twice?
>> Any ideas?
>
> 'virsh shutdown' requires guest cooperation. In particular, if you have
> not hooked up a guest agent, then all it can do is send an ACPI signal
> into the guest, but it is up to the guest whether it shuts down on
> receipt of that signal (and not all guests do).
>
> --
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users


Being a bit late... From my experience, the windows guest does
recognize ACPI signal when one of two conditions are met: the signal
was sent *twice* in a short period, or you had issued C-A-D on the
standard input before. I do not understand why the Microsoft did
things exactly this way, but that`s how it works (or may work).




More information about the libvirt-users mailing list