[ovirt-users] Getting SPICE connection parameters with Python-SDK

Fabrice Bacchella fabrice.bacchella at orange.fr
Sun Jun 5 14:21:45 EDT 2016


> Le 5 juin 2016 à 12:37, nicolas at devels.es a écrit :
> 
> Hi,
> 
> On user portal, when users click on the "Connect" link of a VM that is configured to be run with "Native client" and SPICE protocol, a .vv file is generated with the connection parameters so the SPICE client knows where to connect: host, port, password, ...
> 
> Currently, is there a way to generate those parameters with the Python SDK? Especially the session password so it's possible to connect to the VM directly with a SPICE client.

You can have a look at my example :

https://github.com/fbacchella/ovirtcmd/blob/master/ovlib/vms/__init__.py#L45

It does not generate a full vv file, but an usable URL any way.


More information about the Users mailing list