[PVE-User] VNCWebSocket returns invalid ticket

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Sep 4 09:42:48 CEST 2015



On 09/03/2015 06:51 PM, bobs wrote:
> I'm looking at: http://pve.proxmox.com/pve2-api-doc/
>
> I want to use OpenVZ to make a NoVNC console work in a web page.
>
> I can create a - VNC Proxy - just fine with the console:
> pvesh create /nodes/{node}/openvz/{vmid}/vncproxy
>
> This returns the cert, port, ticket, etc...
>
> However, I keep getting this message when trying to create a - VNC Web 
> Socket -: permission denied - invalid vnc ticket
> pvesh get /nodes/{node}/openvz/{vmid}/vncwebsocket -port 5901 
> -vncticket PVEVNC:55E86D40::blabla
>
> What am I missing here?
>
>
>
> Also, I tried this with PHP code using [Proxmox VE APIv2 (PVE2) Client 
> - PHP Class - by Nathan Sullivan]:
> Like above, the VNC Proxy works fine and I get the ticket, etc...:
> $command    = "post";
> $path        = "nodes/{$node}/openvz/{$vmid}/vncproxy";
> // code to execute command and path...
>

did you tried to execute the PPH APIs setCookie() method bevorehand?
btw. read the warnings in it's comment in the PHP file.

> However, the VNC Web Socket does not return anything...:
> $command    = "get";
> $path        = 
> "nodes/{$node}/openvz/{$vmid}/vncwebsocket?port={$port}&vncticket={$vncticket}";
> // code to execute command and path...
>
> Do I need to encode/decode the ticket???
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>





More information about the pve-user mailing list