Re: [Engine-devel] Hints for building up a spicec connection in Ovirt

2012-03-15 Thread Michael Pasternak
On 03/14/2012 06:53 PM, Itamar Heim wrote:
 On 03/14/2012 06:49 PM, Ewoud Kohl van Wijngaarden wrote:
 On Wed, Mar 14, 2012 at 05:36:38PM +0200, Itamar Heim wrote:
 On 03/14/2012 04:51 PM, Andrew Wells wrote:
 I am trying to build a connection manually with spicec (or what ever I
 need to build the connection with) in Ovirt/RHEV and I am wondering what
 do I need to form this connection?

 And if this is the wrong place to ask, can you point me in the correct
 direction?

 rhev-m mostly uses the activex/xpi wrappers.
 cc-ing spice-devel on command line invocation (or client integrating
 with the REST API).

 one thing you will need is to call the engine via the API to set the
 ticket (password) of the VM, to pass to the client.
 http://code.google.com/p/rhev-api-labs/source/browse/python/spice/
 is a fairly old example written for RHEV 2.2 based on the powershell
 RHEV-M API, but I don't think this really changed.
 
 actually, i just saw the ovirt cli has a console launch option.
 michael - does it launch spice as well, or only vnc?

right now only vnc, in next release spice will be supported as well.



-- 

Michael Pasternak
RedHat, ENG-Virtualization RD
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Hints for building up a spicec connection in Ovirt

2012-03-15 Thread Itamar Heim

On 03/15/2012 05:03 PM, Andrew Wells wrote:

On Thu, Mar 15, 2012 at 2:58 AM, Michael Pasternak mpast...@redhat.com
mailto:mpast...@redhat.com wrote:

...


Is the api-power-shell
https://rhevm.example.com:8443/rhevm-api-powershell still in 3.0? do I
need to install it? Or is this the /api now?


no. this is the old 2.2 wrapper api. 3.0 has a native /api now.
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Hints for building up a spicec connection in Ovirt

2012-03-15 Thread Andrew Wells
On Thu, Mar 15, 2012 at 11:07 AM, Itamar Heim ih...@redhat.com wrote:

 On 03/15/2012 05:03 PM, Andrew Wells wrote:

 On Thu, Mar 15, 2012 at 2:58 AM, Michael Pasternak mpast...@redhat.com
 mailto:mpast...@redhat.com wrote:

 ...


 Is the api-power-shell
 https://rhevm.example.com:**8443/rhevm-api-powershellhttps://rhevm.example.com:8443/rhevm-api-powershellstill
  in 3.0? do I
 need to install it? Or is this the /api now?


 no. this is the old 2.2 wrapper api. 3.0 has a native /api now.


Is there a package that provides the python rhev libraries used in the
script? Or where is the source so that I can include/import them.
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Hints for building up a spicec connection in Ovirt

2012-03-15 Thread Andrew Wells
And is their any documentation on using the python rhev libraries as that
would be helpful as well. you guys are getting me excited thinking this
might work.

On Thu, Mar 15, 2012 at 11:32 AM, Andrew Wells agwells0...@gmail.comwrote:



 On Thu, Mar 15, 2012 at 11:07 AM, Itamar Heim ih...@redhat.com wrote:

 On 03/15/2012 05:03 PM, Andrew Wells wrote:

 On Thu, Mar 15, 2012 at 2:58 AM, Michael Pasternak mpast...@redhat.com
 mailto:mpast...@redhat.com wrote:

 ...


 Is the api-power-shell
 https://rhevm.example.com:**8443/rhevm-api-powershellhttps://rhevm.example.com:8443/rhevm-api-powershellstill
  in 3.0? do I
 need to install it? Or is this the /api now?


 no. this is the old 2.2 wrapper api. 3.0 has a native /api now.


 Is there a package that provides the python rhev libraries used in the
 script? Or where is the source so that I can include/import them.

___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Hints for building up a spicec connection in Ovirt

2012-03-15 Thread Itamar Heim

On 03/15/2012 05:33 PM, Andrew Wells wrote:

And is their any documentation on using the python rhev libraries as
that would be helpful as well. you guys are getting me excited thinking
this might work.


to both your questions:
http://www.ovirt.org/wiki/CLI
http://www.ovirt.org/wiki/SDK
http://lists.ovirt.org/pipermail/users/2012-March/001159.html
http://lists.ovirt.org/pipermail/users/2012-March/001158.html


On Thu, Mar 15, 2012 at 11:32 AM, Andrew Wells agwells0...@gmail.com
mailto:agwells0...@gmail.com wrote:



On Thu, Mar 15, 2012 at 11:07 AM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com wrote:

On 03/15/2012 05:03 PM, Andrew Wells wrote:

On Thu, Mar 15, 2012 at 2:58 AM, Michael Pasternak
mpast...@redhat.com mailto:mpast...@redhat.com
mailto:mpast...@redhat.com mailto:mpast...@redhat.com
wrote:

...


Is the api-power-shell
https://rhevm.example.com:__8443/rhevm-api-powershell
https://rhevm.example.com:8443/rhevm-api-powershell still
in 3.0? do I
need to install it? Or is this the /api now?


no. this is the old 2.2 wrapper api. 3.0 has a native /api now.


Is there a package that provides the python rhev libraries used in
the script? Or where is the source so that I can include/import them.




___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Hints for building up a spicec connection in Ovirt

2012-03-15 Thread Andrew Wells
On Thu, Mar 15, 2012 at 11:47 AM, Itamar Heim ih...@redhat.com wrote:

 On 03/15/2012 05:33 PM, Andrew Wells wrote:

 And is their any documentation on using the python rhev libraries as
 that would be helpful as well. you guys are getting me excited thinking
 this might work.


 to both your questions:
 http://www.ovirt.org/wiki/CLI
 http://www.ovirt.org/wiki/SDK
 http://lists.ovirt.org/**pipermail/users/2012-March/**001159.htmlhttp://lists.ovirt.org/pipermail/users/2012-March/001159.html
 http://lists.ovirt.org/**pipermail/users/2012-March/**001158.htmlhttp://lists.ovirt.org/pipermail/users/2012-March/001158.html

  On Thu, Mar 15, 2012 at 11:32 AM, Andrew Wells agwells0...@gmail.com
 mailto:agwells0...@gmail.com** wrote:



On Thu, Mar 15, 2012 at 11:07 AM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com wrote:

On 03/15/2012 05:03 PM, Andrew Wells wrote:

On Thu, Mar 15, 2012 at 2:58 AM, Michael Pasternak
mpast...@redhat.com mailto:mpast...@redhat.com
mailto:mpast...@redhat.com mailto:mpast...@redhat.com

wrote:

...


Is the api-power-shell
https://rhevm.example.com:__**8443/rhevm-api-powershell


 https://rhevm.example.com:**8443/rhevm-api-powershellhttps://rhevm.example.com:8443/rhevm-api-powershell
 still
in 3.0? do I
need to install it? Or is this the /api now?


no. this is the old 2.2 wrapper api. 3.0 has a native /api now.


Is there a package that provides the python rhev libraries used in
the script? Or where is the source so that I can include/import them.




You are Awesome!
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Hints for building up a spicec connection in Ovirt

2012-03-14 Thread Andrew Wells
On Wed, Mar 14, 2012 at 12:53 PM, Itamar Heim ih...@redhat.com wrote:

 On 03/14/2012 06:49 PM, Ewoud Kohl van Wijngaarden wrote:

 On Wed, Mar 14, 2012 at 05:36:38PM +0200, Itamar Heim wrote:

 On 03/14/2012 04:51 PM, Andrew Wells wrote:

 I am trying to build a connection manually with spicec (or what ever I
 need to build the connection with) in Ovirt/RHEV and I am wondering what
 do I need to form this connection?

 And if this is the wrong place to ask, can you point me in the correct
 direction?


 rhev-m mostly uses the activex/xpi wrappers.
 cc-ing spice-devel on command line invocation (or client integrating
 with the REST API).

 one thing you will need is to call the engine via the API to set the
 ticket (password) of the VM, to pass to the client.

 http://code.google.com/p/rhev-**api-labs/source/browse/python/**spice/http://code.google.com/p/rhev-api-labs/source/browse/python/spice/
 is a fairly old example written for RHEV 2.2 based on the powershell
 RHEV-M API, but I don't think this really changed.


 actually, i just saw the ovirt cli has a console launch option.
 michael - does it launch spice as well, or only vnc?

 __**_
 Engine-devel mailing list
 Engine-devel@ovirt.org
 http://lists.ovirt.org/**mailman/listinfo/engine-develhttp://lists.ovirt.org/mailman/listinfo/engine-devel


So I am assuming that building this connection up in a linux terminal on
Ovirt is more or less equal to setting it up using RHEV, but is that not
the case? Also what michael posted looks good, but I will need to wait
before I can actually dig into that code. In the end I am hoping to just
launch X and then launch the spicec session.
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel