self20 / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

VNC console #213

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reason:
I would like to access to a graphical interface
Description:
I would like to open a vnc console from the panel. It's possible because 
proxmox does it but I don't know how.
When I clic on a virtual machine I would have a link to open vnc console, it is 
possible or not ?

Thanks

Original issue reported on code.google.com by bbalz...@gmail.com on 17 Nov 2010 at 2:28

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 17 Nov 2010 at 2:33

GoogleCodeExporter commented 9 years ago
When install OWP over PROXMOX, VNC already available by address:
https://<SERVER>/openvz/console-direct.htm?cid=0&veid=<VEID>
Realisation: Java TightVNC

File console-direct.htm contain perl code, which:
1. Generate random password
2. Write it in tempfile
3. Find free port equal or above 5900
4. Execute on server command: /usr/bin/vncterm -rfbport 5900 -passwdfile 
rm:/tmp/.vncpwfile.#### -timeout 1 -c /usr/sbin/vzctl enter <VEID>

and return simple html code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>server - Proxmox Console</title></head>
<body id=vnc style='margin:0px;' onLoad='javascript:wresize();'><div 
class=lightcolbd style='border: 1px solid;'><APPLET CODE='VncViewer.class' 
ARCHIVE='/vncterm/VncViewer.jar' WIDTH=745 HEIGHT=400>
<param name=PORT value='5900'>
<param name=PASSWORD value='*********************'>
<param name='Show Controls' value='No'>
</APPLET></div><body></html>

But. It does not work without PROXMOX auth cookies )

To developers: Can you add in OWP configs: UseProxMoxVNC = 'true' ?
Realizations will not be so hard, I guess...

With best regards!
OWP is Great! 

Original comment by Y.ia...@gmail.com on 28 Nov 2010 at 5:46

GoogleCodeExporter commented 9 years ago
Thank you for explanation. Also I want to search for non-Java VNC client, 
'cause personally haven't JVM for most of the browsers/computers I use.

Original comment by sibprogrammer on 29 Nov 2010 at 7:32

GoogleCodeExporter commented 9 years ago
I can recommend a project was called shellinabox, which provides a ajax-based 
terminal emulator. I  useing it on many servers, and if this could be included 
in this web terminal in the webpanel think it would be convenient to think that 
after the authentication of the user would enter in the specified machine. :-)

Original comment by vass.kar...@gmail.com on 11 Apr 2011 at 9:22

GoogleCodeExporter commented 9 years ago
Hello!

I found a VNC client which is based on HTML5: http://kanaka.github.com/noVNC/

Original comment by vass.kar...@gmail.com on 15 Apr 2011 at 8:11

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 17 Apr 2011 at 12:46

GoogleCodeExporter commented 9 years ago
Issue 367 has been merged into this issue.

Original comment by sibprogrammer on 4 Nov 2011 at 5:13

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 1 May 2012 at 8:53