Public bug reported:

If the display on the libvirt server is an IPv6 address (::1) instead of
an IPv4 address (127.0.0.1), the client cannot connect when socat is
installed on the libvirt server.

>From the client:
--
kjotte@daedalus:~$ virt-viewer -v -c qemu+ssh://agamemnon.home.nivex.net/system 
heracles
Opening connection to libvirt with URI 
qemu+ssh://agamemnon.home.nivex.net/system
Guest heracles is running, determining display
Guest heracles has a spice display
Opening indirect TCP connection to display at ::1:5901
Setting up SSH tunnel via agamemnon.home.nivex.net
2020/04/11 17:44:33 socat[15869] E TCP: wrong number of parameters (4 instead 
of 2)

(virt-viewer:31071): GSpice-WARNING **: 17:44:33.916: incomplete link header 
(0/16)
2020/04/11 17:44:33 socat[15872] E TCP: wrong number of parameters (4 instead 
of 2)

(virt-viewer:31071): GSpice-WARNING **: 17:44:33.931: incomplete link header 
(0/16)
--

If socat is not installed on the libvirt server, it falls back gracefully to nc.
socat needs an IPv6 address to be wrapped in square brackets, eg: [::1]
nc does not encounter a problem because the host and port are separate 
parameters.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: virt-viewer 6.0-2
ProcVersionSignature: Ubuntu 5.3.0-46.38~18.04.1-generic 5.3.18
Uname: Linux 5.3.0-46-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Apr 11 17:44:56 2020
InstallationDate: Installed on 2011-12-09 (3046 days ago)
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: virt-viewer
UpgradeStatus: Upgraded to bionic on 2018-08-11 (609 days ago)

** Affects: virt-viewer (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic third-party-packages

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1872251

Title:
  virt-viewer cannot connect to IPv6 display when socat installed on
  server

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virt-viewer/+bug/1872251/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to