vncdotool
vncdotool copied to clipboard
How to use with Proxmox
I'm using Proxmox 5.2-1 and want to login some VM's automatically over the UNIX socket. I can't get the authentication to work.
# vncdotool --version
vncdotool 0.12.1
# vncdotool -p password -v -s /var/run/qemu-server/123.vnc capture /tmp/test.png
INFO:root:connecting to /var/run/qemu-server/123.vnc:5900
INFO:twisted:Starting factory <vncdotool.command.VNCDoCLIFactory instance at 0x7f8cbd29c368>
INFO:twisted:Using protocol version 3.800
INFO:twisted:Cannot connect Authentication failed
CRITICAL:root:Connection to the other side was lost in a non-clean fashion.
INFO:twisted:Stopping factory <vncdotool.command.VNCDoCLIFactory instance at 0x7f8cbd29c368>
INFO:twisted:Main loop terminated.
I've tried with or without a password. I've set the password using the monitor "set_password vnc password"
Anyone know how to do it or how to diagnose the problem?
Various servers implement their own handshakes, I would guess Proxmox is doing something unexpected and you will need to debug the raw messages from handleInit() onward to discover what is being sent in the handshake and what the required responses are.
Version 0.12.1
is way to old and many things changed since than. Please give the current version from git branch main
a try:
pip install git+https://github.com/sibson/vncdotool.git@main
It will also print more debug information. Similar to #245 Proxmay will probably require newer AuthTypes
, which need to be implemented first.