Problem with vnc viewe in Proxmox 2

safranero

Renowned Member
Jan 21, 2010
39
0
71
Spain
I would like to thank everyone who made ​​it possible Proxmox 2.


I have been testing proxmox and all is correct, but I have a doubt, is the next:


We have a vnc viewer in our site for connect with our vps. In Proxmox 1.9 all is correct but in Proxmox 2 not works.


The template use for test is Debian-5.0.


If I push the botton "console" from proxmox interface is ok:


root 78587 0.9 0.0 32376 2692 ? S 10:00 0:00 /usr/bin/vncterm -rfbport 5900 -timeout 10 -authpath /vms/105 -perm VM.Console -c /usr/sbin/vzctl enter 105
root 78588 0.0 0.0 18652 980 pts/3 Ss+ 10:00 0:00 /usr/sbin/vzctl enter 105
root 78589 0.0 0.0 18648 628 ? Ss 10:00 0:00 vzctl: pts/0
root 78590 0.0 0.0 2764 1484 /var/lib/vz/root/105/dev/pts/0 Ss+ 10:00 0:00 -bash


But if I want execute my vnc viewer manually not works. The error is:


Error: Server did not offer supported security type


Thanks.
 
I read the link you gave me and I could finally connect to container tigervnc executable in Windows, but I have not found .jar for my site. Do you know where can download?


I've also seen that within Proxmox there .jar in the path /usr/share/vncterm/VncViewer.jar. Is that you use?


Thank you very much.
 
Hello,


Following your instructions in the API documentation Proxmox 2 I created a VNC connection with pvesh:


pvesh create / nodes / myNode / openvz / myctid / vncproxy


and the result is:

200 OK
{
"cert" : "-----BEGIN CERTIFICATE-----\nMIIEPzCCAyegAwIBAgIJAKkqmNb0iSpJMA0GCSqGSIb3DQEBBQUAMHIxJDAiBgNV\nBAMTG1Byb3htb3ggVmlydHVhbCBFbnZpcm9ubWVudDEpMCcGA1UECxMgZDNmZTkz\nN2JlOTlhMDE0N2FhOWJjMDFjMzUzN2NmODMxHzAdBgNVBAoTFlBWRSBDbHVzdGVy\nIE1hbmFnZXIgQ0EwHhcNMTIwOTA0MDY0NzM3WhcNMjIwOTAyMDY0NzM3WjByMSQw\nIgYDVQQDExtQcm94bW94IFZpcnR1YWwgRW52aXJvbm1lbnQxKTAnBgNVBAsTIGQz\nZmU5MzdiZTk5YTAxNDdhYTliYzAxYzM1MzdjZjgzMR8wHQYDVQQKExZQVkUgQGA1UEAxMbUHJveG1veCBWaXJ0dWFsIEVudmlyb25tZW50MSkwJwYD\nVQQLEyBkM2ZlOTM3YmU5OWEwMTQ3YWE5YmMwMWMzNTM3Y2Y4MzEfMB0GA1UEChMW\nUFZFIENsdXN0ZXIgTWFuYWdlciBDQYIJAKkqmNb0iSpJMAwGA1UdEwQFMAMBAf8w\nDQYJKoZIhvcNAQEFBQADggEBALd6PbB hkXSGCPWZ9bUFZjwjdRCMshmEOiAHVWQ\nJnbuPNd3v6XfqFCwNHUW35mYQTMUgufRdI9VsguXu3vitblBy4UHiedScJCHcNl2\nOK4cLYNlpULjgEGYJsH4NVJUKnfisAz417U6ir ztd9roMNs6FrMyCC74HMVUoJw\ndqZJN6O9JtODKSE0/hpkqn6NsX7bpfuTAnnJ/1N3fUtyQgBKR/7O9pxkZgLW0diw\nj7ChqgRuMXqE0t4cXPplTpZ0AyUmL4/o8sSL434JfgNa7WNIGZXvx76mCcxGzZzA\n53y9TvdQPdOkYh460NYIxv4ZoyV2zU28i W5Ytch 4CccFs=\n-----END CERTIFICATE-----\n",
"port" : 5901,
"ticket" : "PVEVNC:50DDD053::HLwpkwLhqGz/Pv03KBAq4wQDxJzeqyzxMV2ITZWiMCmpGwr gr0h5z8kJkeiQRGKQDWUOpCju6GWAvHDl5zDJ5VPAhuGFahmYQ o5S9TnBQHDXZ6OQxYpVWSvBhL7ELrrajFLUFUXur40HsUedco6pa/Nr7DaPY897IoB7RKN8Crol3FFa3FwxvmYloUcufuDqYOvZEhtqjvV8KzoH 2fvSnBYh2b TVnC7ek3gw==",
"upid" : "UPID:mynode:00004B6F:0008C2E3:50DDD053:vncproxy:1412:root@pam:",
"user" : "root@pam"
}

My question is:


How long will open the connection you've created?

Thank
 
Hi,


Thanks dietmar for you response.


Sorry, but I don't found the .jar for vnc viewer of tigervnc. I searched into the official web, but I only get the executable for Windows or repositories for Linux. Can you says the url from download the java files?


p.d: I probe the .jar file allocated in your Proxmox but need dependencies of javacript proxmox.


Very thanks.


Happy new year!
 
Hello Dietmar,


Your support is very good, helping me much.


I managed to connect to the server from java vnc viewer but instead of showing the black screen of the console displays a message "Error: Authentication failed".


It's strange because I sent the same data as in other active connections made ​​from the Proxmox itself as I captured data through javascript console.


A sample code:
<APPLET CODE=com.tigervnc.vncviewer.VncViewer ARCHIVE=VncViewer.jar
WIDTH=400 HEIGHT=300>
<PARAM NAME="PORT" VALUE=5902>
<PARAM NAME="HOST" VALUE=XX.XXX.XXX.XXX>
<PARAM NAME="PVECert" VALUE="-----BEGIN CERTIFICATE-----|MIIEPzCCAyegAwIBAgIJAKkqmNb0iSpJMA0GCSqGSIb3DQEBBQUAMHIxJDAiBgNV|BAMTG1Byb3htb3ggVmlydHVhbCBFbnZpcm9ubWVudDEpMCcGA1UECxMgZDNmZTkz|N2JlOTlhMDE0N2FhOWJjMDFjMzUzN2NmODMxHzAdBgNVBAoTFlBWRSBDbHVzdGVy|IE1hbmFnZXIgQ0EwHhcNMTIwOTA0MDY0NzM3WhcNMjIwOTAyMDY0NzM3WjByMSQw|IgYDVQQDExtQcm94bW94IFZpcnR1YWwgRW52aXJvbm1lbnQxKTAnBgNVBAsTIGQz|ZmU5MzdiZTk5YTAxNDdhYTliYzAxYzM1MzdjZjgzMR8wHQYDVQQKExZQVkUgQ2x1|c3RlciBNYW5hZ2VyIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA|wvhvSf0Jg9uyU3/yRj9PgiucMRtAc+v2oIsOC7p/WqgYJmzGHpcWf3HEdH0EfFHS|QoLlyF7YUuGpvPxChET9+lWRUXQoaNKvBZ3kTlLYXMWn77WAyflPC4SeYAGt6gqN|wM45slwrpVSNAFJQYXFTPVv/YktGXfwDOaxcBGff3KNUXEkYLZb69sC6oqe2Ycgl|0+uS1jmOJlDbfD8zfvJqAtUNRj4KlHhKaXeKhsYKZizpgZgxuaDtExL70rh14G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JeH0vnF9LZUp5vBgxhYcFab9K4Awt8tYF7mWJ4ZtgXFbvGOzTQoQBtYzQBXYFPjkb/PDbcjtLK8xHLglwSGc1fIQlFfG1SH4TCUbgREl+TNKm6hjMEh8vg==">
<PARAM NAME="id" VALUE="pveOpenVZConsole-1018-vncapp">
</APPLET>
Thank you very much for your help, thank you I will.
 
The problem was solved, I used the api for create connection vnc and I put the values into applet java.


Thanks so much.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!