Embed noVNC and Xterm in web app

Nov 30, 2020
31
5
28
45
Hi there !
I made a webapp that manage my proxmox cluster. I embed the noVNC console and it works great. But now, i wanted to add Xterm, i thought that would be easy, but i was wrong.
After requesting a term ticket, i'm using the same websocket server ( wss://<pve-server>:8006/api2/json/nodes/<node>/qemu/<vm-id>/vncwebsocket?port=5900&vncticket=<ticket>) that noVNC and i can get that stuff working
Xterm console works well in Proxmox UI, the culprit aren't the VMs . The websocket server connects to proxmox and after about 5s the task says :
Code:
client connection: [::1]:48224
failed reading ticket: timed out
TASK ERROR: command '/usr/bin/termproxy 5900 --path /vms/1160 --perm VM.Console -- /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=<node-name>' -o 'UserKnownHostsFile=/etc/pve/nodes/<node-name>/ssh_known_hosts' -o 'GlobalKnownHostsFile=none' -t root@192.168.0.7 -- /usr/sbin/qm terminal 1160 -escape 0 -iface serial0' failed: exit code 1

Any ideas ?
 
Last edited: