Bug 1038965 - RFE: Support listening on multiple addresses for VNC server with QEMU >= 2.10.0
Summary: RFE: Support listening on multiple addresses for VNC server with QEMU >= 2.10.0
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: yafu
URL:
Whiteboard:
: 895582 (view as bug list)
Depends On: 1038963
Blocks: 1288337
TreeView+ depends on / blocked
 
Reported: 2013-12-06 09:12 UTC by Ján Tomko
Modified: 2021-02-22 12:56 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1038963
Environment:
Last Closed: 2020-11-06 12:36:20 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ján Tomko 2013-12-06 09:12:30 UTC
+++ This bug was initially created as a clone of Bug #1038963 +++

+++ This bug was initially created as a clone of Bug #1014422 +++

Description of problem:

qemu doesn't listen on IPv6 socket for IPv4 and IPv6 VNC connections.

Version-Release number of selected component (if applicable):
qemu-1.4.2-10.fc19.x86_64

How reproducible:
always

Steps to Reproduce:
1. Use virt-manager to create and start a guest with VNC display
2. Check the listening VNC socket: sudo netstat -nlp | grep :59

Actual results:

>sudo netstat -nlp | grep :59
tcp        0      0 127.0.0.1:5900          0.0.0.0:*               LISTEN      3233/qemu-system-x8 

Expected results:

qemu should listen on an IPv6 socket configured to accept both IPv4 and IPv6 connections.

>sudo netstat -nlp | grep :59
tcp6        0      0 ::1:5900          :::*               LISTEN      3233/qemu-system-x8 

Additional info:

--- Additional comment from Cole Robinson on 2013-10-31 22:06:30 CET ---

Dan, thoughts on if this is intentional or a defect, and if so is it qemu or libvirt?

--- Additional comment from Daniel Berrange on 2013-11-01 09:56:23 CET ---

It is a bug - we should listen on ::1 by default, with v6-only=0 so that it also covers 127.0.0.1. At minimum it is a libvirt bug.

--- Additional comment from Jan Tomko on 2013-11-01 17:21:42 CET ---

::1 with IPV6_V6ONLY=0 does not cover 127.0.0.1, that only works for ::

Since QEMU only supports one listen address, we can't tell it to listen on both.

Even if we specify a hostname ('localhost') QEMU will only listen on the first address that works (usually ::1 on dual-stack systems) instead of listening on all of them.

Comment 2 Ján Tomko 2014-04-15 08:54:26 UTC
*** Bug 895582 has been marked as a duplicate of this bug. ***

Comment 8 Daniel Berrangé 2017-03-14 10:55:30 UTC
FYI, QEMU 2.9 will have ability to listen on multiple addresses. Libvirt XML has ability to specify multiple addresses already, so we should just need to wire up the QEMU command line generator to handle it. The syntax is described in


https://lists.gnu.org/archive/html/qemu-devel/2017-01/msg00590.html

Comment 12 Jaroslav Suchanek 2020-11-06 12:36:20 UTC
This bug was closed deferred as a result of bug triage.

Please reopen if you disagree and provide justification why this bug should
get enough priority. Most important would be information about impact on
customer or layered product. Please indicate requested target release.


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