External VNC viewer?

in such a case connect via ssh to the Proxmox VE and then:

Code:
vzctl enter VMID
the host can access all containers without the need of a running network.

Thank you, thank you, thank you!!!

I have been looking for the OpenVZ equivalent of xm vm_name console
I was beginning to think it was not possible.
 
Try to debug with telnet:

# telnet IPADDRESS 5900

to see if the vnc server is answering. Or try to use another port.

- Dietmar
 
Try to debug with telnet:

# telnet IPADDRESS 5900

to see if the vnc server is answering. Or try to use another port.

- Dietmar


Cool thanks. I get

Code:
root@devel:~# telnet 10.33.33.131 5900
Trying 10.33.33.131...
Connected to 10.33.33.131.
Escape character is '^]'.
RFB 003.008

And hangs there, waiting for some stream.

Now to search this string...
http://www.google.com.au/search?q=RFB+003.008
 
I tried and tried and tried yesterday and suddenly it started working. Bugger me if I know why it wasn't, I didn't change anything in the process.

Thanks guys!!

PS I would recommend a tick box option in the web GUI to allow external VNC viewing to a VM in Proxmox. That would be the icing on the cake with this beautiful server software! :D
PSS Hmmm maybe I can look at implementing this myself
 
I added this to my /etc/inetd.conf so that I can always connect to my VMs with an external viewer:
9001 stream tcp nowait root /usr/sbin/qm qm vncproxy 101 SecretPassword
9002 stream tcp nowait root /usr/sbin/qm qm vncproxy 102 SecretPassword
9003 stream tcp nowait root /usr/sbin/qm qm vncproxy 103 SecretPassword
9004 stream tcp nowait root /usr/sbin/qm qm vncproxy 104 SecretPassword
9005 stream tcp nowait root /usr/sbin/qm qm vncproxy 105 SecretPassword
9006 stream tcp nowait root /usr/sbin/qm qm vncproxy 106 SecretPassword
9007 stream tcp nowait root /usr/sbin/qm qm vncproxy 107 SecretPassword
9008 stream tcp nowait root /usr/sbin/qm qm vncproxy 108 SecretPassword

Nice work clipcarl!!! :cool:
 
I added this to my /etc/inetd.conf so that I can always connect to my VMs with an external viewer:
9001 stream tcp nowait root /usr/sbin/qm qm vncproxy 101 SecretPassword
9002 stream tcp nowait root /usr/sbin/qm qm vncproxy 102 SecretPassword
9003 stream tcp nowait root /usr/sbin/qm qm vncproxy 103 SecretPassword
9004 stream tcp nowait root /usr/sbin/qm qm vncproxy 104 SecretPassword
9005 stream tcp nowait root /usr/sbin/qm qm vncproxy 105 SecretPassword
9006 stream tcp nowait root /usr/sbin/qm qm vncproxy 106 SecretPassword
9007 stream tcp nowait root /usr/sbin/qm qm vncproxy 107 SecretPassword
9008 stream tcp nowait root /usr/sbin/qm qm vncproxy 108 SecretPassword



Is it right that this only works for KVM and not OpenVZ VM's?

I have OpenVZ VM's on 5901 and 5902 and KVM VM's on 5903 and 5904.

Code:
david@david ~ $
telnet 10.33.33.131 5901
Trying 10.33.33.131...
Connected to 10.33.33.131.
Escape character is '^]'.
unable to find configuration file for VM 101 - no such machine
Connection closed by foreign host.
david@david ~ $
telnet 10.33.33.131 5902
Trying 10.33.33.131...
Connected to 10.33.33.131.
Escape character is '^]'.
unable to find configuration file for VM 102 - no such machine
Connection closed by foreign host.
david@david ~ $
telnet 10.33.33.131 5903
Trying 10.33.33.131...
Connected to 10.33.33.131.
Escape character is '^]'.
RFB 003.008
Connection closed by foreign host.
david@david ~ $
telnet 10.33.33.131 5904
Trying 10.33.33.131...
Connected to 10.33.33.131.
Escape character is '^]'.
RFB 003.008
Connection closed by foreign host.
 
Then.. with
/usr/sbin/qm qm vncproxy 101 SecretPassword
Is it possible to transfer file directly to/from Guest VM 101 with VNC client ( like UltraVNC ) if I disable temporanealy VM 101 Network?
 
Then.. with
/usr/sbin/qm qm vncproxy 101 SecretPassword
Is it possible to transfer file directly to/from Guest VM 101 with VNC client ( like UltraVNC ) if I disable temporanealy VM 101 Network?

I don´t think that this is possible here but never tried.
 
This works great for KVM guests, but I have not been able to figure out a command line to have vncterm started from inetd. I always get a "connection refused" error. I looked through the x11vnc man page, but from what I can see, vncterm does not support most of the x11vnc options.

vncterm does work from the command line (for a single session).

The simplest thing I tried was:
Code:
5902 stream tcp nowait root /usr/bin/vncterm -inetd -c vzctl enter 102
 
I added this to my /etc/inetd.conf so that I can always connect to my VMs with an external viewer:
9001 stream tcp nowait root /usr/sbin/qm qm vncproxy 101 SecretPassword
9002 stream tcp nowait root /usr/sbin/qm qm vncproxy 102 SecretPassword
9003 stream tcp nowait root /usr/sbin/qm qm vncproxy 103 SecretPassword
9004 stream tcp nowait root /usr/sbin/qm qm vncproxy 104 SecretPassword
9005 stream tcp nowait root /usr/sbin/qm qm vncproxy 105 SecretPassword
9006 stream tcp nowait root /usr/sbin/qm qm vncproxy 106 SecretPassword
9007 stream tcp nowait root /usr/sbin/qm qm vncproxy 107 SecretPassword
9008 stream tcp nowait root /usr/sbin/qm qm vncproxy 108 SecretPassword

This works awesome!!! Of course I changed SecretPassword to something else :)
 
having issues getting this to work for 1.4 and a kvm instance.

In short - I setup a kvm - but cannot attach via external vnc
what is the easiest how-to for us to follow here -

server id is 101

Strange - seems I can do this on the 1.3 and earlier - but 1.4 just cannot get it to work (go figure)
 
having issues getting this to work for 1.4 and a kvm instance.

In short - I setup a kvm - but cannot attach via external vnc
what is the easiest how-to for us to follow here -

server id is 101

Strange - seems I can do this on the 1.3 and earlier - but 1.4 just cannot get it to work (go figure)

Hi typo3usa,

I tried it today and it worked very well. I did what clipcarl recommended.
I use UltraVNC as a client to connect to all my KVM instances. Are you sure you opend the ports on the router (if you are behind one)? And forward them to the pve ip - not to the kvm internal nic?

kind regards
BitRausch
 
I added this to my /etc/inetd.conf so that I can always connect to my VMs with an external viewer:
9001 stream tcp nowait root /usr/sbin/qm qm vncproxy 101 SecretPassword
9002 stream tcp nowait root /usr/sbin/qm qm vncproxy 102 SecretPassword
9003 stream tcp nowait root /usr/sbin/qm qm vncproxy 103 SecretPassword
9004 stream tcp nowait root /usr/sbin/qm qm vncproxy 104 SecretPassword
9005 stream tcp nowait root /usr/sbin/qm qm vncproxy 105 SecretPassword
9006 stream tcp nowait root /usr/sbin/qm qm vncproxy 106 SecretPassword
9007 stream tcp nowait root /usr/sbin/qm qm vncproxy 107 SecretPassword
9008 stream tcp nowait root /usr/sbin/qm qm vncproxy 108 SecretPassword

It goes on 1.4 version...
and you remember to made: sh openbsd-inetd restart

Bye
 
I've come up with the attached script to spawn (and respawn) VNC listeners for OpenVZ containers. The script assumes each one listens on 59XX (for 100-199 of course). Usage notes are included at the top of the script.

Usage:
Start with: nohup vz_vnclisten <VMID> &
Stop with: kill `cat /var/run/vz_vnclisten_<VMID>` (may take a while to stop)
Start on boot by adding to /etc/rc.local:
/usr/local/sbin/vz_vnclisten <VMID> &
 

Attachments

  • vz_vnclisten.txt
    1.2 KB · Views: 82
Hi there,

I read this thread on and on to connect my external vnc to the proxmox kvm sessions with "chicken vnc" on Mac. It didn't go well since now and i tought i share my solution with you guys, who has MacOSX 10.6.2.

On my Site this steps works:

1. Download wine from the internet and install it -> http://winebottler.kronenberg.org/
2. Download also Thight VNC only the excecutable Edition -> http://www.tightvnc.com/download/1.3.10/tightvnc-1.3.10_x86_viewer.zip
3. Start on your Proxmox VNC Server via SSH following command: nc -l -p 5900 -c "qm vncproxy VMID PASSWORD" -> exp.: nc -l -p 5900 -c "qm vncproxy 101 mypassword"
-> tnx for this solution @dietmar
4. Just execute the vncviewer from your Mac -> type in the box your IP ADRESS:pORT -> exp: 192.168.1.1:5900
5. Enter your password

-> Now id should work on your Mac to ;-)

Just to explain why i used TightVnc with Wine?

- I wasn't able to connect over firefox to the openvnc session -> it always gave me a blank page
- I tryed safari too, it works for the moment but it didn't fit the screen size so its not really nice to work with it
- So if i tested the firefox and Internetexplorer from my Bootcamp Partition Windows 7 it always worked perfectly, also tightVnc worked without any problem
 

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!