Hide Forgot
Description of problem: Version-Release number of selected component (if applicable): When you configure a VNC server in /etc/sysconfig/vncservers and specify the "-nolisten tcp" as an argument for vncserver it will cause qemu-kvm to ignore the <graphics type='vnc' port='1' autoport='no' listen='0.0.0.0'> in /etc/libvirt/qemu/vm-server.xml How reproducible: Always. Steps to Reproduce: 1. Configure a vnc connection with "-nolisten tcp" in /etc/sysconfig/vncservers 2. Configure /etc/libvirt/qemu/<your-vm>.xml with <graphics type='vnc' port='5901' autoport='no' listen='0.0.0.0'> 3. Restart VM. 4. netstat -ntlp | grep qemu-kvm Actual results: qemu-kvm ignores <graphics type='vnc' port='5901' autoport='no' listen='0.0.0.0'> Expected results: qemu-kvm adheres to <graphics type='vnc' port='5901' autoport='no' listen='0.0.0.0'> Additional info: Let me start by saying I am aware that the default/correct way of connecting to a VNC server. Which would be via a ssh tunnel to localhost. (ie vncviewer -via root@blah localhost:1). I speculate that this bug may be by design, but I have 2 issues with this: 1. I haven't been able to find any documentation about this behavior, which causes a lot of time to be wasted doing troubleshooting. 2. You cannot get granular with the configuration. Say you want to allow X connections to qemu-kvm, but not to vncserver, you cannot. You are forced into a one-size-fits-all scenario.
Please attach a copy of /etc/sysconfig/vncservers What is the output of the netstat command in step (4)? What is the output you expect to see? What is the output of "netstat -ntlp | grep 590" ?
I do apologize, I must have been mistaken as I cannot replicate this anymore. I suspect I was editig /var/run/libvirt/qemu/vm-server.xml instead of /etc/libvirt/qemu/vm-server.xml, probably a lack of coffee. Please ignore this bug until further notice. Kind regards and apologies, Jean-Pierre Pitout
/me suggests "virsh edit vm-server" ;)