Setting up websockets for libvirt vnc connections
April 16, 2016
Spend hours trying to figure this out, but if you want to setup websockets (aka connecting to a libvirt/qemu based kvm vm via vnc / novnc web client), the port must be 5700 + VNC display port.
As per this commit
Thus if you do:
virsh qemu-monitor-command --hmp mydomain change vnc :1, websocket
You would connect at port 5701