[PVE-User] VNCWebSocket returns invalid ticket

bobs bobs at sectorlink.com
Fri Sep 4 19:31:17 CEST 2015


I've given up on the web socket...

Here I'm trying to connect directly to the Proxmox server's openvm with 
novnc...:

<iframe src="https://<?php echo $host; 
?>:8006/?console=openvm&novnc=1&vmname=<?php echo $host; ?>&vmid=<?php 
echo $vmid; ?>&node=<?php echo $node; ?>&user=<?php echo $user; 
?>&password=<?php echo $ticket; ?>" width="840" height="900" 
frameBorder="0">Browser not compatible.</iframe>

Now, the screen shows Loading
It does not given me any error, it's just stuck with the message loading.

BTW: should the ticket be the login ticket or the vncproxy ticket, or 
are they the same? I've tried both.
Also, do I need a cookie for the authorization to work?

On 09/04/2015 03:42 AM, Thomas Lamprecht wrote:
>
>
> 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
>>
>
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20150904/3654c941/attachment.htm>


More information about the pve-user mailing list