Displaying 3 results from an estimated 3 matches for "vir_domain_event_shutdown_guest".
2020 Aug 26
2
Distinguishing between host and guest initiated VM shutdown
...oweroff because Vdsm identifies the case as a user initiated
shutdown (https://bugzilla.redhat.com/1800966).
When poweroff is run on the host, libvirt-guests service takes an
action. `virsh shutdown' is run on the VM, the guest OS is shut down
cleanly and libvirt reports a shutdown event with
VIR_DOMAIN_EVENT_SHUTDOWN_GUEST detail. Although it is a host initiated
shutdown actually.
Does libvirt provide any means to distinguish this case from a regular
user shutdown?
Thanks,
Milan
2020 Aug 27
0
Re: Distinguishing between host and guest initiated VM shutdown
...iating a graceful host shutdown, then surely it already
knows what VMs it has running on the host at that time, and so has enough
info to restart them later.
> `virsh shutdown' is run on the VM, the guest OS is shut down
> cleanly and libvirt reports a shutdown event with
> VIR_DOMAIN_EVENT_SHUTDOWN_GUEST detail. Although it is a host initiated
> shutdown actually.
>
> Does libvirt provide any means to distinguish this case from a regular
> user shutdown?
A "virsh shutdown" merely triggers a request to the guest OS to start
a guest initiated shutdown. As such it is indisting...
2020 Aug 27
2
Re: Distinguishing between host and guest initiated VM shutdown
...Virt.
> then surely it already knows what VMs it has running on the host at
> that time, and so has enough info to restart them later.
>
>> `virsh shutdown' is run on the VM, the guest OS is shut down
>> cleanly and libvirt reports a shutdown event with
>> VIR_DOMAIN_EVENT_SHUTDOWN_GUEST detail. Although it is a host initiated
>> shutdown actually.
>>
>> Does libvirt provide any means to distinguish this case from a regular
>> user shutdown?
>
> A "virsh shutdown" merely triggers a request to the guest OS to start
> a guest initiated shu...