Charlie Drage

Setting up websockets for libvirt vnc connections

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