Hi,
On Čt, 2014-06-19 at 23:41 +0300, cyber python wrote:
Hello everyone!
I currently have an MS Windows client running remote viewer which
connects to an oVirt Linux VM using SPICE.
My applicaiton is running on the VM.
(Actually there are several clients each connecting to one VM at a
time, with each client connecting to the first available VM every time
- I have already achieved this using the oVirt REST API).
What I want to do now, is have the MS Windows client (I am using
remote-viewer as the SPICE client) log out automatically when the user
closes the application's window in the VM.
Is this possible?
do I understand correctly that you wish to log out a user at Client
machine (the one where actual user physically sits at) when an app in
the guest machine closes? If so, I'm afraid that oVirt won't have
anything like it integrated in foreseeable future so you'll have to come
up with something yourself
If not, is there a way to get the IP address of the client machine
(the one running remote-viewer) from the guest so that I can notify it
to log off?
IMO the other way is easier:
1) run remote-viewer through a wrapper that will log off the user if
told to do so. Wrapper can get the guest IP address from API
(GET /api/vms/VM_UUID -> <vm><guest_info><ips><ip
address="GUEST_IP">)
2) create a service in a guest that will emit the signal to log off to
the connected client when the app in question exits.
maybe you could use a new "port" channel of spice but IIRC that would
require modification of a client...
David
Best regards,
George.
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users