[libvirt-users] Do I need to enable qemu-ga's guest-suspend: hybrid/suspend-ram/disk/shutdown?

Eric Blake eblake at redhat.com
Tue Aug 11 03:48:20 UTC 2015


On 08/10/2015 07:16 PM, james harvey wrote:
> How do I "enable" qemu-ga on a guest to be able to (I think this means have
> a success-response:true) for: guest-suspend-hybrid; guest-suspend-ram;
> guest-suspend-disk; and guest-shutdown?
> 

"success-response":false has nothing to do with whether a guest-agent
command is enabled, but rather whether you should expect a response from
the agent itself when the command succeeds.  For these commands, the
answer is no, you do not get a response from the guest agent, because
the action performed by the guest has shut things down to the point that
it cannot reply; instead, to learn if the command was successful, you
must listen to the ordinary QMP monitor for an event notification
corresponding to the change in guest state.

Libvirt already handles this interaction correctly.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150810/cf542d4b/attachment.sig>


More information about the libvirt-users mailing list