<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 4, 2016 at 9:16 AM, Tadas <span dir="ltr"><<a href="mailto:tadas@ring.lt" target="_blank">tadas@ring.lt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Got everything working now.<br></blockquote><div><br></div><div>Great to hear.</div><div>What is your use case?</div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="">Thank you for your help.<br>
</span>For any users, whom it may be useful, heres the code for external (SSO)<br>
logins from hypervisor.<br>
<br>
<a href="http://paste.ubuntu.com/18435531/" rel="noreferrer" target="_blank">http://paste.ubuntu.com/18435531/</a><br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, 2016-07-01 at 13:53 +0200, Vinzenz Feenstra wrote:<br>
><br>
> > On Jul 1, 2016, at 12:05 PM, Tadas <<a href="mailto:tadas@ring.lt">tadas@ring.lt</a>> wrote:<br>
> ><br>
> ><br>
> > is there any documentation o oVirt guest agent commands?<br>
> > To be more precise: i need to pass commands to oVirt guest agent<br>
> > from<br>
> > hypervisor.<br>
> > Reading info works fine:<br>
> ><br>
> > socat /var/lib/libvirt/qemu/channel/target/domain-20-<br>
> > win7_32bit/com.redhat.serial.0 -<br>
> ><br>
> > {"applications": ["Python 2.7.12rc1", "SPICE Guest Tools", "Total<br>
> > Commander (Remove or Repair)", "Python 2.7 pywin32-216", "Microsoft<br>
> > .NET Framework 4.6.1", "Git version 2.9.0", "WinRAR 5.40 beta 2<br>
> > (32-<br>
> > bit)", "Notepad++"], "__name__": "applications"}<br>
> > {"__name__": "host-name", "name": "WIN7_32BIT"}<br>
> > {"__name__": "os-version", "version": "Win 7”}<br>
><br>
> Every command has to be send as a whole JSON object and sent as line<br>
> terminated by a \n character<br>
><br>
> The commands available are currently not documented however.<br>
><br>
> {“__name__”: “name”, … args}<br>
><br>
> - name: shutdown<br>
> parameters:<br>
> - timeout: optional integer (seconds)<br>
> - reboot: optional boolean<br>
> - message: string<br>
><br>
> - name: refresh<br>
> parameters:<br>
> - apiVersion: optiona integer <br>
> this defines what information can be exchanged<br>
><br>
> - name: hibernate:<br>
> parameters:<br>
> - state: disk or mem (default is disk if not specified)<br>
><br>
> if you need more you can look here: <a href="https://github.com/oVirt/ovirt-g" rel="noreferrer" target="_blank">https://github.com/oVirt/ovirt-g</a><br>
> uest-agent/blob/master/ovirt-guest-agent/OVirtAgentLogic.py#L306 at<br>
> the parseCommand function<br>
> or just ask here :-)<br>
><br>
> ><br>
> > I'm unable to find how to send command (lets say "shutdown") to<br>
> > agent?.<br>
> > echo "shutdown" | socat<br>
> > /var/lib/libvirt/qemu/channel/target/domain-20-<br>
> > win7_32bit/com.redhat.kvm-vdi.0 -<br>
> > Does not seem to work<br>
> > Thank you for your help.<br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> > <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div>