[Spice-devel] connect my vm with a web portal using spice in window 7

David Jaša djasa at redhat.com
Thu Sep 15 02:40:28 PDT 2011


Hello Steve,

Stephen Duse-Anthony píše v St 14. 09. 2011 v 22:50 -0700:
> Hi,
> I would like to connect my vm using a web portal with spice in windows
> 7
> When I do:
> spicec -h vm.dyndsn-server.com -p 5900 

This way, you're connecting to unsecured port,

>  
> I can connect to my virtual machine.
> But I when I use the following script I can not:
> <!DOCTYPE html> 
> <html> <head> 
> <title>SPICE Plugin Test</title> 
> <script type="text/javascript"> 
> function connectvm() { 
> var ip = String("vm.dyndsn-server.com"); 
> var sport = String("5900"); 
> var channels = String("all"); 
> var spice = document.embeds[0]; 
> spice.hostIP = ip; 
> spice.SecurePort = sport; 

But here, you're trying to connect to secured port, that requires host
to have some actually opened and on client side, pass CA certificate
with --ca-certificate cert.pem (CLI) or
spice.TrustStore=DER_encoded_cert (controller interface - spiceX or
spice-XPI) and --host-subject / spice.HostSubject

> spice.fullScreen = true; 
> pluginobj.connect(); 
> } 
> </script> 
> </head> 
> <body> <p> <embed type="application/x-spice"> 
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I'm assuming you're using spice-XPI with Firefox based on this line, so
I'll attach "my" test page that is known to work. Let us know if it will
work for you.

BTW where did you get Spice-XPI for Windows?

David

> <button onclick='connectvm()'>connect to VM</button> 
> </p> 
> <p> If the plugin is working correctly, a click on the button should
> open spice client. </p> 
> </body> 
> </html>
>  
>  
> Thanks and best regards,
> Stephen
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel

-- 

David Jaša, RHCE

SPICE QE based in Brno
GPG Key:     22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110915/21bc281e/attachment.html>


More information about the Spice-devel mailing list