[libvirt-users] Libvirt supported qemu-ga commands

Where can I find the full list of libvirt supported qemu-ga commands? The docs [0] imply virDomainQemuAgentCommand bypasses libvirt and is not recommended. I am looking to pass suspend/resume events from the host to the guest and then have the guest act on this internally. Your help is appreciated. [0] https://wiki.libvirt.org/page/Qemu_guest_agent

procmem:
Where can I find the full list of libvirt supported qemu-ga commands? The docs [0] imply virDomainQemuAgentCommand bypasses libvirt and is not recommended.
I am looking to pass suspend/resume events from the host to the guest and then have the guest act on this internally. Your help is appreciated.
Did some RTFMing [1], I guess if I go by the shutdown example I can suspend/resume via guest agent with these commands? virsh suspend --mode=agent virsh resume --mode=agent [1] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/htm...

On Wed, Feb 28, 2018 at 11:13:46PM +0000, procmem wrote:
Where can I find the full list of libvirt supported qemu-ga commands? The docs [0] imply virDomainQemuAgentCommand bypasses libvirt and is not recommended.
I am looking to pass suspend/resume events from the host to the guest and then have the guest act on this internally. Your help is appreciated.
By suspend/resume, do you mean ACPI S3 suspend-to-ram events ? If so, that doesn't require guest agent involvement at all. Just requires virsh dompmsuspend virsh dompmwakeup Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Daniel P. Berrangé:
On Wed, Feb 28, 2018 at 11:13:46PM +0000, procmem wrote:
Where can I find the full list of libvirt supported qemu-ga commands? The docs [0] imply virDomainQemuAgentCommand bypasses libvirt and is not recommended.
I am looking to pass suspend/resume events from the host to the guest and then have the guest act on this internally. Your help is appreciated.
By suspend/resume, do you mean ACPI S3 suspend-to-ram events ?
If so, that doesn't require guest agent involvement at all. Just requires
virsh dompmsuspend virsh dompmwakeup
Regards, Daniel
I see. Thats simpler but will the guest be "sentient" about the fact that it had just been resumed? I need it to know so that it triggers specific events in this case.

On Thu, Mar 01, 2018 at 12:57:59PM +0000, procmem wrote:
Daniel P. Berrangé:
On Wed, Feb 28, 2018 at 11:13:46PM +0000, procmem wrote:
Where can I find the full list of libvirt supported qemu-ga commands? The docs [0] imply virDomainQemuAgentCommand bypasses libvirt and is not recommended.
I am looking to pass suspend/resume events from the host to the guest and then have the guest act on this internally. Your help is appreciated.
By suspend/resume, do you mean ACPI S3 suspend-to-ram events ?
If so, that doesn't require guest agent involvement at all. Just requires
virsh dompmsuspend virsh dompmwakeup
Regards, Daniel
I see. Thats simpler but will the guest be "sentient" about the fact that it had just been resumed? I need it to know so that it triggers specific events in this case.
This works the same way as it does on physical hardware. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
participants (2)
-
Daniel P. Berrangé
-
procmem