[ovirt-users] Communicating with ovirt agent

Tadas tadas at ring.lt
Fri Jul 1 10:05:44 UTC 2016


is there any documentation o oVirt guest agent commands?
To be more precise: i need to pass commands to oVirt guest agent from
hypervisor.
Reading info works fine:

socat /var/lib/libvirt/qemu/channel/target/domain-20-
win7_32bit/com.redhat.serial.0 -

{"applications": ["Python 2.7.12rc1", "SPICE Guest Tools", "Total
Commander (Remove or Repair)", "Python 2.7 pywin32-216", "Microsoft
.NET Framework 4.6.1", "Git version 2.9.0", "WinRAR 5.40 beta 2 (32-
bit)", "Notepad++"], "__name__": "applications"}
{"__name__": "host-name", "name": "WIN7_32BIT"}
{"__name__": "os-version", "version": "Win 7"}


I'm unable to find how to send command (lets say "shutdown") to agent?.
echo "shutdown" | socat /var/lib/libvirt/qemu/channel/target/domain-20-
win7_32bit/com.redhat.kvm-vdi.0  -
Does not seem to work
Thank you for your help.



More information about the Users mailing list