<p dir="ltr">Thanks David!</p>
<p dir="ltr">I think I am gonna go for a combination of the two approaches: have the client retrieve the IP of the guest and connect to a service running on the guest and once the application running inside the guest closes, notify the client to close the SPICE connection and log off the user.</p>
<div class="gmail_quote">Στις 20 Ιουν 2014 4:26 μ.μ., ο χρήστης "David Jaša" <<a href="mailto:djasa@redhat.com">djasa@redhat.com</a>> έγραψε:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
On Čt, 2014-06-19 at 23:41 +0300, cyber python wrote:<br>
> Hello everyone!<br>
><br>
><br>
><br>
> I currently have an MS Windows client running remote viewer which<br>
> connects to an oVirt Linux VM using SPICE.<br>
><br>
> My applicaiton is running on the VM.<br>
><br>
><br>
> (Actually there are several clients each connecting to one VM at a<br>
> time, with each client connecting to the first available VM every time<br>
> - I have already achieved this using the oVirt REST API).<br>
><br>
><br>
> What I want to do now, is have the MS Windows client (I am using<br>
> remote-viewer as the SPICE client) log out automatically when the user<br>
> closes the application's window in the VM.<br>
><br>
><br>
> Is this possible?<br>
<br>
do I understand correctly that you wish to log out a user at Client<br>
machine (the one where actual user physically sits at) when an app in<br>
the guest machine closes? If so, I'm afraid that oVirt won't have<br>
anything like it integrated in foreseeable future so you'll have to come<br>
up with something yourself<br>
<br>
><br>
> If not, is there a way to get the IP address of the client machine<br>
> (the one running remote-viewer) from the guest so that I can notify it<br>
> to log off?<br>
<br>
IMO the other way is easier:<br>
1) run remote-viewer through a wrapper that will log off the user if<br>
told to do so. Wrapper can get the guest IP address from API<br>
(GET /api/vms/VM_UUID -> <vm><guest_info><ips><ip address="GUEST_IP">)<br>
2) create a service in a guest that will emit the signal to log off to<br>
the connected client when the app in question exits.<br>
<br>
maybe you could use a new "port" channel of spice but IIRC that would<br>
require modification of a client...<br>
<br>
David<br>
<br>
><br>
><br>
> Best regards,<br>
><br>
> George.<br>
><br>
><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" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
<br>
</blockquote></div>