Discussion:
[pve-devel] External noVNC without proxmox panel login
p***@rwolthuis.nl
2015-05-08 10:28:48 UTC
Permalink
Hey,

Currently I'm trying to create an external VNC connection using the HTML VNC
application 'noVNC'.
I'm using the ProxMox API commands 'vncproxy' and 'vncwebsocket' which
almost work perfectly.

One problem tho. The connection only works when I'm logged in into the
proxmox web panel, while this is exactly what I don't want.
I found this topic;
http://forum.proxmox.com/threads/19903-access-noVNC-html5-console-from-exter
nal-site-vncwebsocket-via-api
Which basically describes the same problem I'm facing.

The solution was to let noVNC login into the ProxMox web panel, providing
the login into the javascript code (which is no option for me).
Or to alter the proxmox perl file to allow external VNC connections with
ticket authorization, but without the proxmox login problem. Unfortunality
this person did't respond any more, after someone else asked if he could
share his solution.

Is there anyone that has a fix for the problems I'm facing described above?

Thanks in advance!
Daniel Hunsaker
2015-05-08 13:48:02 UTC
Permalink
The Proxmox API needs a way to know which user is attempting to access it
so it can handle permissions appropriately. The login process (via web UI
or otherwise) provides a ticket that can be used in subsequent requests to
provide this information to the API. You still need to obtain this ticket
- which expires after (I believe) a couple of weeks - in order to pass it
in your API requests.

Probably the best approach here is to provide a login prompt to your users,
passing their input to the login API endpoint, and using the ticket the
server returns in subsequent requests for that user. If, however, you're
setting this up so that authentication is never required, the API is
probably not your best option. At that point, you'll want a VNC server
installed inside the VM, and configured appropriately for noVNC.
Post by p***@rwolthuis.nl
Hey,
Currently I'm trying to create an external VNC connection using the HTML
VNC application 'noVNC'.
I'm using the ProxMox API commands 'vncproxy' and 'vncwebsocket' which
almost work perfectly.
One problem tho. The connection only works when I'm logged in into the
proxmox web panel, while this is exactly what I don't want.
I found this topic;
http://forum.proxmox.com/threads/19903-access-noVNC-html5-console-from-external-site-vncwebsocket-via-api
Which basically describes the same problem I'm facing.
The solution was to let noVNC login into the ProxMox web panel, providing
the login into the javascript code (which is no option for me).
Or to alter the proxmox perl file to allow external VNC connections with
ticket authorization, but without the proxmox login problem. Unfortunality
this person did’t respond any more, after someone else asked if he could
share his solution.
Is there anyone that has a fix for the problems I’m facing described above?
Thanks in advance!
_______________________________________________
pve-devel mailing list
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Loading...