External VNC Client

Discussion in 'Proxmox VE: Installation and configuration' started by SergeantFTC, Oct 2, 2011.

  1. SergeantFTC

    SergeantFTC New Member

    Joined:
    Jul 5, 2011
    Messages:
    23
    Likes Received:
    0
    I believe that the roadmap says that we are supposed to be able to use an external VNC client now. How do I do this?
     
  2. qk4l

    qk4l New Member

    Joined:
    Oct 24, 2010
    Messages:
    15
    Likes Received:
    0
    I think it feature under develop.

    Now, for external VNC you can try use "nc" and "qm vncproxy".
     
  3. coffe

    coffe Member

    Joined:
    Apr 16, 2009
    Messages:
    153
    Likes Received:
    0
    nc -l -p 5901 -c "qm vncproxy MachineID PASSWORD" dont know is that is working in 2.0. but that is what i use in 1.9
     
  4. vadq

    vadq New Member

    Joined:
    Oct 25, 2011
    Messages:
    3
    Likes Received:
    0
    not working, the qm vncproxy in 2.0 is "qm vncproxy MachineID" but not "qm vncproxy MachineID PASSWORD".

    When i tried

    nc -l -p 5901 -c "qm vncproxy MachineID"

    error from vnc client

    "No matching security types"

    ;-(
     
  5. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,547
    Likes Received:
    405
    your VNC client supports SSL?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    You need a client which support TLS vencrypt plain auth.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. bread-baker

    bread-baker Member

    Joined:
    Mar 6, 2010
    Messages:
    432
    Likes Received:
    0
    Does anyone have a suggestion for a Debian Squeeze client which supports 'client which support TLS vencrypt plain auth' ?


    I have been testing remmina and so far have not got it working yet. googled and it seems to support tls..
     
  8. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    What exactly does not work? Please use 'root@pam' as username (you need to append the real name).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. vadq

    vadq New Member

    Joined:
    Oct 25, 2011
    Messages:
    3
    Likes Received:
    0
    at last i found it, you can use for win or linux

    tigervnc from sourceforge

    username must be "root@pam"
     
  10. bread-baker

    bread-baker Member

    Joined:
    Mar 6, 2010
    Messages:
    432
    Likes Received:
    0
    this is in inetd.conf:
    Code:
    29006 stream tcp nowait root /usr/sbin/qm qm vncproxy 100 secretpw
    
    the qm is running :
    Code:
    root      708707       1  3 Oct25 ?        00:35:12 /usr/bin/kvm -id 100 -chardev socket,id=monitor,path=/var/run/qemu-server/100.mon,server,nowait -mon chardev=monitor,mode=readline -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -readconfig /usr/share/qemu-server/pve-usb.cfg -device usb-tablet,bus=ehci.0,port=6 -name pro4-kvm -smp sockets=2,cores=2 -nodefaults -boot menu=on,order=c -vga cirrus -tdf -k en-us -drive if=none,id=drive-ide2,media=cdrom,aio=native -device ide-drive,bus=ide.1,unit=0,drive=drive-ide2,id=device-ide2 -device lsi,id=scsi0,bus=pci.0,addr=0x5 -drive file=/dev/drbdvg/vm-100-disk-1,if=none,id=drive-scsi0,aio=native,boot=on -device scsi-disk,bus=scsi0.0,scsi-id=0,drive=drive-scsi0,id=device-scsi0 -m 1024 -netdev type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge -device rtl8139,romfile=,mac=1A:91:42:AD:73:29,netdev=net0,bus=pci.0,addr=0x12 -cpuunits 1000
    
    for user name, I tried root@pam, root, and the normal empty. attached is a pic of the error message from a failled attempt to connect, and the configuration :
    vnc-1.png vnc-2.png


    on this system, I had to install openbsd-inetd , maybe there is another package needed?

    I do have vnc connections working with our proxmox 1.9 system.

    when I get more time to work on this, I'll google that error msg.
     
    #10 bread-baker, Oct 26, 2011
    Last edited: Oct 26, 2011
  11. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    Please read the manual page 'man qm' - there is no need to specify a password there - remove that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. bread-baker

    bread-baker Member

    Joined:
    Mar 6, 2010
    Messages:
    432
    Likes Received:
    0
    could you give an example of what to put in the server line of 'vncviewer'

    for instance for root@pam , how do I put with:
    10.100.100.158:29006
    edit:

    ok I figured it out, I had this in inetd.conf on prox host:

    29006 stream tcp nowait root /usr/sbin/qm qm vncproxy 3001 # password


    removed the comment so to have:
    29006 stream tcp nowait root /usr/sbin/qm qm vncproxy 3001

    then vncviewer worked.

    testing the connection using telnet with ' telnet fbc158 29006 ' made testing the connection easy.
     
    #12 bread-baker, Nov 30, 2011
    Last edited: Nov 30, 2011
  13. udo

    udo Well-Known Member
    Proxmox Subscriber

    Joined:
    Apr 22, 2009
    Messages:
    5,835
    Likes Received:
    159
    Hi,
    tigervnc work well (short test),
    but know anyone how to add an machine to another user than root?
    The "dirty" way in pve1.x to use an second user with uid 0 don't work:
    Code:
    Dec  7 11:09:43 proxmox3 pvedaemon[100870]: authentication failure; rhost= user=spell@pam msg=no permission (/vms/310, VM.Console)
    
    Udo
     
  14. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    User management is not finished - I will document that later.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice