Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304039 - app-emulation/libvirt-0.7.5: unable to open tty /dev/pts/0 : No such file or directory
Summary: app-emulation/libvirt-0.7.5: unable to open tty /dev/pts/0 : No such file or ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-08 18:08 UTC by Gary Richards
Modified: 2010-02-09 09:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Richards 2010-02-08 18:08:19 UTC
After an upgrade to libvirt-0.7.5, if I try to open a kvm based virtual machine console with virsh I see this:
# virsh console myvm
Connected to domain myvm
Escape character is ^]

error : vshRunConsole:77 : unable to open tty /dev/pts/0 : No such file or directory


This appears to have been fixed by upstream in this commit:
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=c0a9b6a5338e54b64a4a28415ffbdb6bcc2b38c5;hp=aee70b7482b4eb7c69f5cacfeb364000294300aa#patch1

I modded the ebuild locally and apply that diff as a patch, remerged libvirt and I can now access my virtual machine consoles again

Reproducible: Always

Steps to Reproduce:
1. Install/Configure libvirt and qemu-kvm
2. Create/Start a KVM based virtual machine that has a serial console configured
3. Try to access the virtual machine serial console with virsh console vmname

Actual Results:  
Trying to open a virtual machine serial console returns the following error:

# virsh console myvm
Connected to domain myvm
Escape character is ^]

error : vshRunConsole:77 : unable to open tty /dev/pts/0 : No such file or directory


Expected Results:  
Connection to the virtual machines serial console. For example:

# virsh console myvm
Connected to domain myvm       
Escape character is ^]        

 * Setting hostname to mx1 ...                                            [ ok ]
 * Loading key mappings ...                                               [ ok ]
 * Setting terminal encoding to UTF-8 ...                                 [ ok ]
 * Setting user font ...                                                  [ ok ]
etc...

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================                               
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 26 Jan 2010 14:15:01 +0000                                                  
ccache version 2.4 [enabled]                                                                        
app-shells/bash:     4.0_p37                                                                        
dev-java/java-config: 2.1.9-r2                                                                      
dev-lang/python:     2.5.4-r2, 2.6.4                                                                
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm hal iconv ipv6 kvm lvm mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre pcro perl pppd python readline reflection session sockets spl sse sse2 ssl sysfs tcpd unicode vhosts xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_digest authz_host dir mime rewrite" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-02-09 09:36:01 UTC
And app-emulation/libvirt-0.7.6 with this fix was already added to the tree.