Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315903 - app-emulation/virtinst-0.500.1 can't carry out a paravirt network install in xen
Summary: app-emulation/virtinst-0.500.1 can't carry out a paravirt network install in xen
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-18 04:55 UTC by Ian Delaney (RETIRED)
Modified: 2010-05-01 07:50 UTC (History)
1 user (show)

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


Attachments
the install log from virt-manager (virt-manager.log,6.63 KB, text/plain)
2010-04-20 00:36 UTC, Ian Delaney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2010-04-18 04:55:10 UTC
The bug occurs utilising virt-manager to create a new vm.  The installation software can;t get through to complete an install of a selection of paravirt in xen, using the website repositories.



Reproducible: Always

Steps to Reproduce:
1.Boot into xen environment, invoke virt-manager, 
2.select new to install a new vm, enter the required info, e.g. fedora12, click finish,
3.install process progresses through a few steps effectively

Actual Results:  
it contacts the fedora site, downloads a kernel and image data, then reports creating the image file, the falters with

Unable to complete install: 'POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (38, 'Function not implemented')")'
Details:
Unable to complete install '<class 'libvirt.libvirtError'> POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (38, 'Function not implemented')")
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1435, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 660, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 758, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.6/site-packages/libvirt.py", line 1097, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (38, 'Function not implemented')")
'

Function not implemented is not very descriptive



Expected Results:  
The install should complete and create a new vm in xen and reboot on demand via virt-manager, not fall into error.

I shall select major as a category.  I have filed a separate bug report for virtinst, along similar lines to this one, but clearly distinct.
Between the two, virt-manager and virtinst are rendered extremely incapable,
but specifically to the xen environment.
qemu and kvm fair much better in conjunction with virt-manager.

Please bring gentoo up to fully capable.  Suse has nailed it with much the same software.

idella@genny ~ $ sudo emerge --info             
Password:                                       
--- 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.31-xen-r10 i686)                                                                        
=================================================================                   
System uname: Linux-2.6.31-xen-r10-i686-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-r4, 1.9.6-r3, 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 -ggdb" 
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 -ggdb"                                                                                   
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 nvidia vesa v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2010-04-19 23:17:29 UTC
Which version of virtinst?
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2010-04-19 23:30:48 UTC
(In reply to comment #1)
> Which version of virtinst?
> 

oops, I should have included that. 0.500.1
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2010-04-20 00:36:13 UTC
Created attachment 228463 [details]
the install log from virt-manager
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2010-04-20 00:40:05 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Which version of virtinst?
> > 
and also should have included, the install log, see attachment.
Also, libvirt is 0.7.5, which is valid because it's probably the source.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2010-04-28 21:34:58 UTC
please test with virtinst-0.500.3
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2010-04-29 14:29:04 UTC
(In reply to comment #5)
> please test with virtinst-0.500.3
> 

Well, that was also futile.  Exactly the same error. Nochange.


from virt-manager, after fetching the kernel and initrd;

Unable to complete install '<class 'libvirt.libvirtError'> POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (38, 'Function not implemented')")
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1435, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 972, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1037, in _do_install
    "install")
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1008, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib/python2.6/site-packages/libvirt.py", line 1097, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (38, 'Function not implemented')")
'

re logs, none created in virt-inatall or virt-manager.
xend-debug-log yields:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvDomainDir.py", line 77, in op_create
    dominfo = self.xd.domain_create(config)
  File "/usr/lib/python2.6/site-packages/xen/xend/XendDomain.py", line 972, in domain_create
    dominfo = XendDomainInfo.create(config)
  File "/usr/lib/python2.6/site-packages/xen/xend/XendDomainInfo.py", line 95, in create
    vm.start()
  File "/usr/lib/python2.6/site-packages/xen/xend/XendDomainInfo.py", line 456, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "/usr/lib/python2.6/site-packages/xen/xend/XendTask.py", line 209, in log_progress
    retval = func(*args, **kwds)
  File "/usr/lib/python2.6/site-packages/xen/xend/XendDomainInfo.py", line 2590, in _initDomain
    raise VmError(str(exn))
VmError: (38, 'Function not implemented')

Shall re-open it, cnhange it back if you will, but it looks still broken from here.

Between the two, virt-manager and virtinst are crippled.  Can't yet install via these standard means.
Shall try a few nore approaches.  

pxe is one. I can't tell from here which package it is, yet

Hope for feedback.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2010-04-30 17:05:50 UTC
(In reply to comment #6)

> 

Well, there is a change.  Not a helpful one, just a change.

I acquired the most recent versions of virtinst and virt-manager.  I re-installed them using

USE="xen qemu kvm" emerge virtinst and virt-manager.  It re-arranged the deckchairs.  We've gone from function not implemented to 

"
Unable to complete install '<class 'libvirt.libvirtError'> Domain not found: xenUnifiedDomainLookupByName
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1553, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib64/python2.6/site-packages/virtinst/Guest.py", line 972, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib64/python2.6/site-packages/virtinst/Guest.py", line 1037, in _do_install
    "install")
  File "/usr/lib64/python2.6/site-packages/virtinst/Guest.py", line 1008, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1098, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: Domain not found: xenUnifiedDomainLookupByName
'
"


Which "really" helps.  Just to verify, I tried qemu with the same install version it it jumped straight in. It's the very last step before establishing the domain and passing it onto a vnc console in virt-manager, so it's faultering at the last step.

These new versions certainly aren't rectifying faults, just seem to create new ones.  The packages in lenny work quite well, not these new ones.

In time I'm going to attrempt to run this through a python debugger, after I figure out how to use it. 
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2010-05-01 07:50:20 UTC
Oh my, This is unexpected.  See https://bugs.gentoo.org/show_bug.cgi?id=317975.

Explains all.I'm now running xen 3.4.3-rc6-pre, and it works.

This happily closes this unnecessary effort.