]> git.proxmox.com Git - mirror_qemu.git/commit - qga/qapi-schema.json
qga: Add 'guest-get-host-name' command
authorVinzenz Feenstra <vfeenstr@redhat.com>
Tue, 4 Apr 2017 06:46:31 +0000 (08:46 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 27 Apr 2017 04:56:47 +0000 (23:56 -0500)
commit0a3d197a71b0508f5ca066488fbbbe45a61c44fe
tree0a65a698f38b9b0ade48d85a4367843d3e4a588a
parent15296053378462e996032d9f50d62515f2230681
qga: Add 'guest-get-host-name' command

Retrieving the guest host name is a very useful feature for virtual management
systems. This information can help to have more user friendly VM access
details, instead of an IP there would be the host name. Also the host name
reported can be used to have automated checks for valid SSL certificates.

virsh # qemu-agent-command F25 '{ "execute": "guest-get-host-name" }'
{"return":{"host-name":"F25.lab.evilissimo.net"}}

Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
* minor whitespace fix-ups
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands.c
qga/qapi-schema.json