Hi,
I probably need help with explaining how QEMU treats the VNC through unix
socket.
I am dealing with the issue where QEMU deletes opened unix socket file
after closing the connection. I would like to understand how it should
behave so I can diagnose where exactly the issue is in my system.
I am solving the issue where VNC connection disappears randomly. I have
pinpoint that the cause is disappearing VNC socket file.
The opened socket is in directory:
/var/run/kubevirt-private/09c05242-5559-11e9-95f4-525500d15501/virt-vnc
When I read from the socket using socat redirecting to stdout and close
with ctrl+c the file virt-vnc goes away. Should the file stay there opened
or should it be deleted?
If the deletion is ok, why it is being deleted?
I am using qemu-kvm v 3.1.0.
Also the websocket is still registered on the system:
[root@vmi-fedora 09c05242-5559-11e9-95f4-525500d15501]# ss -l
NetidState Recv-Q
Send-Q
Local Address:Port Peer Address:Port
u_strLISTEN 0 1
/var/run/kubevirt-private/09c05242-5559-11e9-95f4-525500d15501/virt-vnc
2861579 * 0
And qemu monitor still sees the socket connection
[root@vmi-fedora 09c05242-5559-11e9-95f4-525500d15501]# virsh
qemu-monitor-command --hmp default_vmi-fedora 'info vnc'
default:
Server:
:/var/run/kubevirt-private/09c05242-5559-11e9-95f4-525500d15501/virt-vnc
(unix)
Auth: none (Sub: none)
Thank you for clarification and help.
Petr