Bug 712819 - vncserver overriding qemu-kvm configuration
Summary: vncserver overriding qemu-kvm configuration
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-13 09:39 UTC by Jean-Pierre Pitout
Modified: 2013-01-09 23:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-20 07:10:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jean-Pierre Pitout 2011-06-13 09:39:12 UTC
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.

Comment 2 Gerd Hoffmann 2011-06-15 14:09:17 UTC
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" ?

Comment 3 Jean-Pierre Pitout 2011-06-18 08:42:08 UTC
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

Comment 4 Gerd Hoffmann 2011-06-20 07:10:16 UTC
/me suggests "virsh edit vm-server" ;)


Note You need to log in before you can comment on or make changes to this bug.