QEMU-GA has evolved a little and does not provide just service functions (shutdown/reboot or file system freeze), but also a bunch of functions that query the information about the guest OS. Such as list of network interfaces with their IP addresses, file systems, date and time, list of active users, etc. Currently, there is no supported way how to access this information. The interesting commands (at the time of writing) in QEMU-GA are: guest-get-fsinfo: information about mounted filesystems guest-get-host-name: guest host name guest-get-osinfo: inormation about guest OS guest-get-timezone: current timzeone guest-get-users: list of logged in users guest-network-get-interfaces: list of network interfaces and addresses I can imagine that the current date/time (guest-get-time) could be interesting for some management apps too.
(In reply to Tomáš Golembiovský from comment #0) > QEMU-GA has evolved a little and does not provide just service functions > (shutdown/reboot or file system freeze), but also a bunch of functions that > query the information about the guest OS. Such as list of network interfaces > with their IP addresses, file systems, date and time, list of active users, > etc. Currently, there is no supported way how to access this information. > > The interesting commands (at the time of writing) in QEMU-GA are: > > guest-get-fsinfo: information about mounted filesystems > guest-get-host-name: guest host name > guest-get-osinfo: inormation about guest OS > guest-get-timezone: current timzeone > guest-get-users: list of logged in users This one: > guest-network-get-interfaces: list of network interfaces and addresses is already exposed as virDomainInterfaceAddresses(source = VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT); > > I can imagine that the current date/time (guest-get-time) could be > interesting for some management apps too. Again, exposed as: virDomainSetTime(); virDomainGetTime();
Much of this was exposed in the new virDomainGetGuestInfo in v5.7.0