Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305407 - Attempting to connect to hpyervisor via virt-manager, libvirt fails to access any hypervisor, (qemu, qemu-kvm, xen) with error, no hypervisor driver available; virt-manager-0.8.2 and libvirt-0.7.5
Summary: Attempting to connect to hpyervisor via virt-manager, libvirt fails to access...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 305401 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-16 16:05 UTC by Ian Delaney (RETIRED)
Modified: 2013-03-04 01:09 UTC (History)
1 user (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 Ian Delaney (RETIRED) gentoo-dev 2010-02-16 16:05:26 UTC
Freshly emerged instance of virt-manager and libvirt, the hypervisor cannot be connected.  Both these report error, no hypervisor driver available for qemu/qemu-kvm/xen.  The sub-program virsh presents with the same deficit.

idella@gentoo64 ~ $ sudo virsh
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # connect qemu:///
error: Failed to connect to the hypervisor
error: no hypervisor driver available for qemu:///

idella@gentoo64 ~ $ sudo virt-manager

yields the full message when attempting to connect via the listed localhost/qemu///

no hypervisor driver available for qemu:///system


gentoo64 idella # virt-manager

yields

Error starting Virtual Machine Manager: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)

Now, some helpful debugging.  To prove this is a flawed package, 
gentoo64 / # gdb --args libvirtd

warning: Can not parse XML syscalls information; XML support was disabled at compile time.                                                                        
GNU gdb (Gentoo 7.0.1 p1) 7.0.1                                                  
Copyright (C) 2009 Free Software Foundation, Inc.                                
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>    
This is free software: you are free to change and redistribute it.               
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"       
and "show warranty" for details.                                                 
This GDB was configured as "i686-pc-linux-gnu".                                  
For bug reporting instructions, please see:                                      
<http://bugs.gentoo.org/>...                                                     
Reading symbols from /usr/sbin/libvirtd...(no debugging symbols found)...done.    

Problem !.  Can't parse XML syscalls.  Package was compiled with all required USE flags plus xml.,also unmerged and re-emerged with -xml, same output.

and

(gdb) run                                                                        
Starting program: /usr/sbin/libvirtd
[Thread debugging using libthread_db enabled]
[New Thread 0xf79d0b70 (LWP 25817)]
[New Thread 0xf71cfb70 (LWP 25818)]
[New Thread 0xf69ceb70 (LWP 25819)]
[New Thread 0xf61cdb70 (LWP 25820)]
[New Thread 0xf59ccb70 (LWP 25821)]
[New Thread 0xf51cbb70 (LWP 25823)]
06:42:05.960: error : virRun:847 : internal error '/sbin/brctl stp virbr0 on' exited with non-zero status 1 and signal 0: set stp status failed: Operation not supported

06:42:05.990: error : udevSetupSystemDev:1409 : Failed to get udev device for syspath '/sys/devices/virtual/dmi/id'

06:42:05.990: error : virStateInitialize:890 : Initialization of (null) state driver failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf79d0b70 (LWP 25817)]
0x08090ff9 in ?? ()
(gdb) bt
#0  0x08090ff9 in ?? ()
#1  0x08056126 in ?? ()
#2  0x08057f39 in ?? ()
#3  0x08058213 in ?? ()
#4  0xf7b5d6c5 in start_thread () from /lib/libpthread.so.0
#5  0xf7adea0e in clone () from /lib/libc.so.6

I've got the same result on a gentoo 32 and this gentoo amd_64. 

gentoo64 / # gdb --args virsh -c qemu:///

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0.1 p1) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/virsh...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/virsh -c qemu:///
[Thread debugging using libthread_db enabled]
error: unable to connect to '/var/run/libvirt/libvirt-sock': Connection refused
error: failed to connect to the hypervisor

Program exited with code 01.




Reproducible: Always

Steps to Reproduce:
1.emerge virt-manager libvirt (all flags included)
2.Invoke virt-manager, invoke virsh, attempt to connect to a hypervisor.
sudo virt-manager,  or sudo virt-manager -c qemu:///
sudo virsh -c qemu:///   (without sudo, permission refused, which should also not happen since permission levels for use have been set.
3. No more.  deficit done

Actual Results:  
As previously stated, perhaps that goes here. Neither libvirt nor virt-manager can connect to the hypervisor (driver). Fails to connect.

Expected Results:  
To connect to hypervisor via virt-manager or via virsh.
e.g.  sudo virsh -c qemu:///system,
sudo virt-manager -c qemu:///

It can connect to an added driver, test:///default.
Once connected, virt-manager's installer also fails a second test.
One selecting CDrom install, it can't proceed past that wizzard window.
Once selecting a .iso image, it then begins an install, but as it does in debian distros, fails to connect to the virt-manager vnc console, error Console not active for guest.  All in all, completely unusable.
gentoo64 / # emerge --info
--- Invalid atom in /etc/portage/package.unmask: media-gfx/iscan x86
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.30-gentoo-r8AMD64 x86_64)                                                         
=================================================================                
System uname: Linux-2.6.30-gentoo-r8AMD64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1                                                     
Timestamp of tree: Wed, 20 Jan 2010 00:15:02 +0000                               
app-shells/bash:     4.0_p35                                                     
dev-java/java-config: 2.1.10                                                     
dev-lang/python:     2.6.4, 3.1.1-r1                                             
dev-util/cmake:      2.8.0                                                       
sys-apps/baselayout: 2.0.1                                                       
sys-apps/openrc:     0.6.0                                                       
sys-apps/sandbox:    2.2                                                         
sys-devel/autoconf:  2.13, 2.65                                                  
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                          
sys-devel/binutils:  2.20                                                        
sys-devel/gcc-config: 1.4.1                                                      
sys-devel/libtool:   2.2.6b                                                      
virtual/os-headers:  2.6.30-r1                                                   
ACCEPT_KEYWORDS="x86 ~x86"                                                       
ACCEPT_LICENSE="* -@EULA dlj-1.1"                                                
CBUILD="i686-pc-linux-gnu"                                                       
CFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"    
CHOST="i686-pc-linux-gnu"                                                        
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/splash /etc/terminfo"                                                                          
CXXFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"  
DISTDIR="/mnt/images/genny/distfiles"                                            
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"          
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo ftp://mirror.isp.net.au/pub/gentoo/  http://mirror.isp.net.au/pub/gentoo/ http://mirror.averse.net/pub/gentoo/"                                             
LDFLAGS="-Wl,-O1"                                                                
MAKEOPTS="-j2"                                                                   
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"                                                           
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"                                
USE="(-altivec) (-aqua) (-fixed-point) (-gallium) (-hardened) (-kdeprefix) (-libffi) (-multilib) (-n32) (-n64) (-ps3) (-selinux) (wide-unicode) X a52 aac acl acpi aio alsa apm armeb arts audiofile avi bash-completion berkdb bluetooth bmp bzip2 cairo cdparanoia cdr cli client%* consolekit corefonts cracklib cris crypt ctype cups cxx dba dbmaker dbus dga dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal evo extras fam fbcon ffmpeg fftw fftw* firefox flac fortran ftp gdbm gif gnome gnutls gphoto gpm gstreamer gtk gtk%* gtk2 hal handbook i386 iconv imagemagick inifile java jpeg kde ladcca ldap libg++ libvirtd lm_sensors lxc mad mbox microblaze mikmod mime mips64 mips64el mipsel mmap mng modules mono mozilla mp3 mp4 mpeg msn mudflap mysql ncurses netapi network nls nptl nptlonly ogg openal opengl openmp oss pam pcre pdf perl png png%* pnp posix ppc64abi32 ppcemb ppds pppd python qdbm qt qt3support qt4 quicktime readline reflection ruby samba scanner sdl semantic-desktop server%* session sh4 sh4eb shared slp smbclient sndfile sockets source sparc32plus sparc64 spell spl sse sse2 ssl startup-notification svg svga sysfs tcpd theora threads thunar tiff truetype udev udev%* urandom usb v4l videos vorbis websockets wifi win32codecs x264 x86 x86_64 xcb* xine xinerama xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="snd_hda_intel" 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_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev i810 nv nvidia tdfx trident vesa vga"
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2010-02-16 16:07:46 UTC
gentoo64 / # emerge --info
--- Invalid atom in /etc/portage/package.unmask: media-gfx/iscan x86
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.30-gentoo-r8AMD64 x86_64)                                                         
=================================================================                
System uname: Linux-2.6.30-gentoo-r8AMD64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1                                                     
Timestamp of tree: Wed, 20 Jan 2010 00:15:02 +0000                               
app-shells/bash:     4.0_p35                                                     
dev-java/java-config: 2.1.10                                                     
dev-lang/python:     2.6.4, 3.1.1-r1                                             
dev-util/cmake:      2.8.0                                                       
sys-apps/baselayout: 2.0.1                                                       
sys-apps/openrc:     0.6.0                                                       
sys-apps/sandbox:    2.2                                                         
sys-devel/autoconf:  2.13, 2.65                                                  
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                          
sys-devel/binutils:  2.20                                                        
sys-devel/gcc-config: 1.4.1                                                      
sys-devel/libtool:   2.2.6b                                                      
virtual/os-headers:  2.6.30-r1                                                   
ACCEPT_KEYWORDS="x86 ~x86"                                                       
ACCEPT_LICENSE="* -@EULA dlj-1.1"                                                
CBUILD="i686-pc-linux-gnu"                                                       
CFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"    
CHOST="i686-pc-linux-gnu"                                                        
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/splash /etc/terminfo"                                                                          
CXXFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"  
DISTDIR="/mnt/images/genny/distfiles"                                            
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"          
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo ftp://mirror.isp.net.au/pub/gentoo/  http://mirror.isp.net.au/pub/gentoo/ http://mirror.averse.net/pub/gentoo/"                                             
LDFLAGS="-Wl,-O1"                                                                
MAKEOPTS="-j2"                                                                   
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"                                                           
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"                                
USE="(-altivec) (-aqua) (-fixed-point) (-gallium) (-hardened) (-kdeprefix) (-libffi) (-multilib) (-n32) (-n64) (-ps3) (-selinux) (wide-unicode) X a52 aac acl acpi aio alsa apm armeb arts audiofile avi bash-completion berkdb bluetooth bmp bzip2 cairo cdparanoia cdr cli client%* consolekit corefonts cracklib cris crypt ctype cups cxx dba dbmaker dbus dga dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal evo extras fam fbcon ffmpeg fftw fftw* firefox flac fortran ftp gdbm gif gnome gnutls gphoto gpm gstreamer gtk gtk%* gtk2 hal handbook i386 iconv imagemagick inifile java jpeg kde ladcca ldap libg++ libvirtd lm_sensors lxc mad mbox microblaze mikmod mime mips64 mips64el mipsel mmap mng modules mono mozilla mp3 mp4 mpeg msn mudflap mysql ncurses netapi network nls nptl nptlonly ogg openal opengl openmp oss pam pcre pdf perl png png%* pnp posix ppc64abi32 ppcemb ppds pppd python qdbm qt qt3support qt4 quicktime readline reflection ruby samba scanner sdl semantic-desktop server%* session sh4 sh4eb shared slp smbclient sndfile sockets source sparc32plus sparc64 spell spl sse sse2 ssl startup-notification svg svga sysfs tcpd theora threads thunar tiff truetype udev udev%* urandom usb v4l videos vorbis websockets wifi win32codecs x264 x86 x86_64 xcb* xine xinerama xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="snd_hda_intel" 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_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev i810 nv nvidia tdfx trident vesa vga"
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2010-02-20 03:02:38 UTC
*** Bug 305401 has been marked as a duplicate of this bug. ***
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-02-20 07:43:02 UTC
Paste the output of: emerge -pv libvirt virt-manager
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2010-02-21 11:23:31 UTC
(In reply to comment #3)
> Paste the output of: emerge -pv libvirt virt-manager
> 

idella@gentoo64 ~ $ sudo emerge -pv libvirt virt-manager
Password:

These are the packages that would be merged, in order:

                        ... done!
[ebuild   R   ] app-emulation/libvirt-0.7.5  USE="libvirtd lxc network nls python udev -avahi -caps -iscsi -lvm -nfs -numa -one -openvz -parted -phyp -policykit -qemu* -sasl (-selinux) -uml -virtualbox -xen*" 0 kB
[ebuild   R   ] app-emulation/virt-manager-0.8.2  USE="-gnome-keyring" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB

Now to note, on emerging these initially in the newest 64 version, I found this list of required use flags and pasted ensured I pasted them into make.conf.  You can observe anyway, the above entry now includes -qemu* and -xen*; new, I last installed them with the above,

USE="qemu kvm xen" emerge libvirt,   only libvirt.  The kvm seems to have made no such impact.  virt-manager can connect ok now, virtinst is troubled.
Comment 5 Kayvan Sylvan 2010-05-20 02:08:01 UTC
I am getting this bug too, with the latest KVM and libvirt on amd64.
Comment 6 Anton 2013-03-04 01:09:53 UTC
Following looks related to that:
  https://bugs.gentoo.org/show_bug.cgi?id=460198