<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 09/04/2015 07:31 PM, bobs wrote:<br>
</div>
<blockquote cite="mid:55E9D565.40401@sectorlink.com" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
I've given up on the web socket...<br>
<br>
Here I'm trying to connect directly to the Proxmox server's openvm
with novnc...:<br>
<br>
<iframe src="<a moz-do-not-send="true"
class="moz-txt-link-freetext" href="https://">https://</a><?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><br>
<br>
Now, the screen shows
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<span style="color: rgb(255, 255, 255); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: bold; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: center; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
inline !important; float: none; background-color: rgb(73, 73,
73);">Loading </span><br>
It does not given me any error, it's just stuck with the message
loading.<br>
<br>
BTW: should the ticket be the login ticket or the vncproxy ticket,
or are they the same? I've tried both.<br>
Also, do I need a cookie for the authorization to work?<br>
</blockquote>
AFAIK, yes, I tried only once and it worked with the cookie.<br>
<br>
Use an extra user which only has access to the VM console
(VM.Console is the permission IIRC), as setting the access cookie
let's the user log in in the interface.<br>
<blockquote cite="mid:55E9D565.40401@sectorlink.com" type="cite"> <br>
<div class="moz-cite-prefix">On 09/04/2015 03:42 AM, Thomas
Lamprecht wrote:<br>
</div>
<blockquote cite="mid:55E94B78.3080606@proxmox.com" type="cite"> <br>
<br>
On 09/03/2015 06:51 PM, bobs wrote: <br>
<blockquote type="cite">I'm looking at: <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://pve.proxmox.com/pve2-api-doc/"><a class="moz-txt-link-freetext" href="http://pve.proxmox.com/pve2-api-doc/">http://pve.proxmox.com/pve2-api-doc/</a></a>
<br>
<br>
I want to use OpenVZ to make a NoVNC console work in a web
page. <br>
<br>
I can create a - VNC Proxy - just fine with the console: <br>
pvesh create /nodes/{node}/openvz/{vmid}/vncproxy <br>
<br>
This returns the cert, port, ticket, etc... <br>
<br>
However, I keep getting this message when trying to create a -
VNC Web Socket -: permission denied - invalid vnc ticket <br>
pvesh get /nodes/{node}/openvz/{vmid}/vncwebsocket -port 5901
-vncticket PVEVNC:55E86D40::blabla <br>
<br>
What am I missing here? <br>
<br>
<br>
<br>
Also, I tried this with PHP code using [Proxmox VE APIv2
(PVE2) Client - PHP Class - by Nathan Sullivan]: <br>
Like above, the VNC Proxy works fine and I get the ticket,
etc...: <br>
$command = "post"; <br>
$path = "nodes/{$node}/openvz/{$vmid}/vncproxy"; <br>
// code to execute command and path... <br>
<br>
</blockquote>
<br>
did you tried to execute the PPH APIs setCookie() method
bevorehand? <br>
btw. read the warnings in it's comment in the PHP file. <br>
<br>
<blockquote type="cite">However, the VNC Web Socket does not
return anything...: <br>
$command = "get"; <br>
$path =
"nodes/{$node}/openvz/{$vmid}/vncwebsocket?port={$port}&vncticket={$vncticket}";<br>
// code to execute command and path... <br>
<br>
Do I need to encode/decode the ticket??? <br>
_______________________________________________ <br>
pve-user mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a>
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________ <br>
pve-user mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
pve-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>
<a class="moz-txt-link-freetext" href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a>
</pre>
</blockquote>
<br>
</body>
</html>