[Pkg-libvirt-maintainers] Bug#592858: virt-manager: vnc display doesn't work with zsh

Tollef Fog Heen tfheen at debian.org
Fri Aug 13 13:21:46 UTC 2010


Package: virt-manager
Version: 0.8.4-7
Severity: normal

To set up a tunnel and access remote VNC displays, virt-manager does a:

ssh -l $USERNAME $HOST 'nc -q 2>&1 | grep -q "requires an argument";if [
$? -eq 0 ] ; then   CMD="nc -q 0 127.0.0.1 5902";else   CMD="nc
127.0.0.1 5902";fi;$CMD;'

however, this doesn't work if your shell on the remote host is zsh, as
zsh doesn't expand $CMD.  Using «eval $CMD» works, or you can do sh -c
"$CMD", but just plain $CMD doesn't work.

Steps to reproduce should be trivial, but for completeness:

on a remote host with libvirt running and an existing VM, change the
shell of the user you are logging in with to zsh.  Try to connect using
virt-manager.  Observe that you get the error message:

zsh:1: command not found: nc -q 0 127.0.0.1 5902

(the port number might be different, of course)

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages virt-manager depends on:
ii  gconf2                        2.28.1-3   GNOME configuration database syste
ii  librsvg2-common               2.26.3-1   SAX-based renderer library for SVG
ii  python                        2.6.5-11   interactive high-level object-orie
ii  python-dbus                   0.83.1-1   simple interprocess messaging syst
ii  python-glade2                 2.17.0-3   GTK+ bindings: Glade support
ii  python-gnome2                 2.28.1-1   Python bindings for the GNOME desk
ii  python-gtk-vnc                0.4.1-2    A VNC viewer widget for GTK+ (Pyth
ii  python-gtk2                   2.17.0-3   Python bindings for the GTK+ widge
ii  python-libvirt                0.8.2-1    libvirt Python bindings
ii  python-support                1.0.9      automated rebuilding support for P
ii  python-urlgrabber             3.9.1-4    A high-level cross-protocol url-gr
ii  python-vte                    1:0.24.3-1 Python bindings for the VTE widget
ii  virtinst                      0.500.3-2  Programs to create and clone virtu

Versions of packages virt-manager recommends:
ii  gnome-icon-theme              2.30.3-1   GNOME Desktop icon theme
ii  libvirt-bin                   0.8.2-1    the programs for the libvirt libra

Versions of packages virt-manager suggests:
pn  ssh-askpass                   <none>     (no description available)
ii  virt-viewer                   0.2.1-1    Displaying the graphical console o

-- no debconf information

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are





More information about the Pkg-libvirt-maintainers mailing list