Marko Weber | 8000
2015-Apr-17 08:26 UTC
[libvirt-users] virsh shutdown <domain> not fully working on win7 ?
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? best regards marko --
Dominique Ramaekers
2015-Apr-17 08:50 UTC
Re: [libvirt-users] virsh shutdown <domain> not fully working on win7 ?
I have the same issue with a Win8. After the second (and succesfull) shutdown command, I check the events after reboot and see that it was still a clean shutdown. So I didn't give it more attention... -----Oorspronkelijk bericht----- Van: Marko Weber | 8000 [mailto:weber@zbfmail.de] Verzonden: vrijdag 17 april 2015 10:26 Aan: libvirt liste Onderwerp: [libvirt-users] virsh shutdown <domain> not fully working on win7 ? 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? best regards marko -- _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
Eric Blake
2015-Apr-17 13:05 UTC
Re: [libvirt-users] virsh shutdown <domain> not fully working on win7 ?
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
Andrey Korolyov
2015-Apr-20 14:12 UTC
Re: [libvirt-users] virsh shutdown <domain> not fully working on win7 ?
On Fri, Apr 17, 2015 at 4:05 PM, Eric Blake <eblake@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@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-usersBeing 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).
Possibly Parallel Threads
- vm in qcow2 runs on host A but not on host B
- Re: virsh shutdown <domain> not fully working on win7 ?
- virsh shutdown <domain> not fully working on win7 ?
- Guest agent is not responding
- Windows, qemu.agent is it possible to shut down services in running windows server?