Trying to connect to QEMU 4.1.0 with VNC server enabled by
$ doas vncviewer -rawlocal 127.0.0.1:0

All the time receive 'Error: Can't open display' by vncviewer
(ssvnc-viewer package installed on OpenBSD 6.6) when connect to QEMU
machine which run on the same localhost and QEMU VNC server listens on

$ doas netstat -an | grep 5900
tcp     0       0       127.0.0.1.5900  *.*     LISTEN

$ doas qemu-system-x86_64 -vnc 127.0.0.1:0 -k en-us -monitor pty \
-m 2048 -object memory-backend-file,id=mem,size=2048M,\
mem-path=/tmp/qemu-mem,share=on \
-numa node,memdev=mem -cdrom linux.iso \
-boot -d -name linux linux.qcow2

But I can connect by telnet localhost 5900 successfully.
Anyway there is no any TCP connection to 127.0.0.1:5900 from vncviewer
unfortunately.

Reply via email to