Installing within a xen environment, virtinst can't get it right at readimg or verifying the input data to execute a paravirt network install. This is closely related to the other bug submitted, number 315903. In attempting to repeat the selected vm to install on the command line, this similar but distinct fault occurred. Data entered : sudo virt-install -c xen -n fedora11 os-type=linux --os-variant=fedora11 -r 256 arch=i386 --vcpus=2 -p --disk path=/var/lib/xen/images/fedora11.img -- location=http://download.fedoraproject.org/pub/fedora/linux/releases/11/Fedora/i386/os/ -w bridge=virbr0 --vnc -d -k local o the location input is a standard fedora web site to execute a paravirt install. This is significant in that attempts via both virt-manager and virtinst directly fail to achieve any form of paravirt install via a net install. Just can't install a vm in xen. Reproducible: Always Steps to Reproduce: 1.Use a console to execute an install within xen at the command line. 2. Enter data, e.g. as above 3. Observe the fault described Actual Results: The data in .virtinst.virt-install.log from the console, simply idella@genny ~ $ sudo virt-install -c xen -n fedora11 os-type=linux --os-variant=fedora11 -r 256 arch=i386 --vcpus=2 -p --disk path=/var/lib/xen/images/fedora11.img -- location=http://download.fedoraproject.org/pub/fedora/linux/releases/11/Fedora/i386/os/ -w bridge=virbr0 --vnc -d -k local Password: ERROR Paravirtualized guests cannot install off cdrom media. and idella@genny ~ $ cat .virtinst/virt-install.log /usr/bin/virt-install -c xen -n fedora11 os-type=linux --os-variant=fedora11 -r 256 arch=i386 --vcpus=2 -p --disk path=/var/lib/xen/images/fedora11.img -- location=http://download.fedoraproject.org/pub/fedora/linux/releases/11/Fedora/i386/os/ -w bridge=virbr0 --vnc -d -k local [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (cli:161) Requesting libvirt URI default [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (cli:163) Received libvirt URI xen:/// [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (virt-install:418) Requesting virt method 'xen', hv type 'default'. [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (virt-install:721) Received virt method 'xen' [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (virt-install:722) Hypervisor name is 'xen' [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (virt-install:267) parse_disk: returning {'format': None, 'bus': None, 'readOnly': False, 'volInstall': None, 'path': '/var/lib/xen/images/fedora11.img', 'device': 'disk', 'volName': None, 'conn': <libvirt.virConnect instance at 0x8a213cc>, 'size': None, 'driverCache': None, 'shareable': False, 'sparse': True} [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (cli:685) DISPLAY is set: graphics defaulting to VNC. [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (util:358) Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard' [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (util:321) Didn't find keymap in '/etc/X11/xorg.conf'! [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (util:333) Could not open "/etc/default/console-setup": [Errno 2] No such file or directory: '/etc/default/console-setup' [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (util:380) Did not parse any usable keymapping. [Tue, 20 Apr 2010 18:03:57 virt-install 27100] DEBUG (Guest:288) Setting os type to 'linux' for variant 'fedora11' [Tue, 20 Apr 2010 18:03:57 virt-install 27100] ERROR (cli:141) Paravirtualized guests cannot install off cdrom media. The input data cites the web site, cdrom is NOT mentioned. It misreads the input data attempting to verify it. It just gets it wrong. Expected Results: A sensible install according to the data input data, a net install that access the web site, etc.... app-emulation/libvirt-0.7.5. I chose major as explained above, remebering this is explicit to xen, generally kvm and qemu fair much better. idella@genny ~ $ sudo 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.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
*** Bug 316271 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > *** Bug 316271 has been marked as a duplicate of this bug. *** > I think that occurred because of the way bugzilla managed the attached files. Here is a second separate example idella@genny ~ $ sudo virt-install -c xen -n SimplyMepis os-type= linux --os-variant=generic26 -r 256 arch=i386 --vcpus=2 -v --disk path=/var/lib/xen/images/SimplyMepis.img,sparse=true -l /dev/sr1 -w bridge=virbr0 --vnc -d Tue, 20 Apr 2010 19:11:37 DEBUG Launched with command line: /usr/bin/virt-install -c xen -n SimplyMepis os-type=linux --os-variant=generic26 -r 256 arch=i386 --vcpus=2 -v --disk path=/var/lib/xen/images/SimplyMepis.img,sparse=true -l /dev/sr1 -w bridge=virbr0 --vnc -d Tue, 20 Apr 2010 19:11:38 DEBUG Requesting libvirt URI default Tue, 20 Apr 2010 19:11:38 DEBUG Received libvirt URI xen:/// Tue, 20 Apr 2010 19:11:38 DEBUG Requesting virt method 'hvm', hv type 'default'. Tue, 20 Apr 2010 19:11:38 DEBUG Received virt method 'hvm' Tue, 20 Apr 2010 19:11:38 DEBUG Hypervisor name is 'xen' Tue, 20 Apr 2010 19:11:38 DEBUG parse_disk: returning {'format': None, 'bus': None, 'readOnly': False, 'volInstall': None, 'path': '/var/lib/xen/images/SimplyMepis.img', 'device': 'disk', 'volName': None, 'conn': <libvirt.virConnect instance at 0x93b138c>, 'size': None, 'driverCache': None, 'shareable': False, 'sparse': True} Tue, 20 Apr 2010 19:11:38 DEBUG Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard' Tue, 20 Apr 2010 19:11:38 DEBUG Didn't find keymap in '/etc/X11/xorg.conf'! Tue, 20 Apr 2010 19:11:38 DEBUG Could not open "/etc/default/console-setup": [Errno 2] No such file or directory: '/etc/default/console-setup' Tue, 20 Apr 2010 19:11:38 DEBUG Did not parse any usable keymapping. Tue, 20 Apr 2010 19:11:38 DEBUG Setting os type to 'linux' for variant 'generic26' Tue, 20 Apr 2010 19:11:38 ERROR Only one install method (--pxe, --location, --cdrom, --import) can be used Once again, my input data clearly stipulates the cdrom at /dev/sr1. I'm not able to find a second install method stipulated in the string data. There is only the cdrom device. What can you do when you supply exactly what is requested??? I tried a few variationsm and also with qemu, and got the same result, so it's not xen or qemu getting muddled, it's virtinst.
*** Bug 316275 has been marked as a duplicate of this bug. ***
please test with virtinst-0.500.3
Created attachment 229683 [details] install log for virt-install on the cited command line entry
Created attachment 229685 [details] an strace log re the entry Just looking briefly, it implicates libvirt in ('virDomainCrea" very near the end. You'll find more than me.
(In reply to comment #4) > please test with virtinst-0.500.3 > ok, each attachment makes a single submission. Right, this didn't take long to challenge the resolved status. It's not there. We have genny ~ # virt-install -c xen -n fedora11 os-type=linux --os-variant=fedora11 -r 256 arch=i386 --vcpus=2 -p --disk path=/var/lib/xen/images/fedora11.img --location=http://download.fedoraproject.org/pub/fedora/linux/releases/11/Fedora/i386/os/ -w bridge=virbr0 --vnc -d -k local Fri, 30 Apr 2010 04:47:02 DEBUG Launched with command line: /usr/bin/virt-install-2.6 -c xen -n fedora11 os-type=linux --os-variant=fedora11 -r 256 arch=i386 --vcpus=2 -p --disk path=/var/lib/xen/images/fedora11.img --location=http://download.fedoraproject.org/pub/fedora/linux/releases/11/Fedora/i386/os/ -w bridge=virbr0 --vnc -d -k local Fri, 30 Apr 2010 04:47:02 DEBUG Requesting libvirt URI default Fri, 30 Apr 2010 04:47:02 DEBUG Received libvirt URI xen:/// Fri, 30 Apr 2010 04:47:02 DEBUG Requesting virt method 'xen', hv type 'default'. Fri, 30 Apr 2010 04:47:02 DEBUG Received virt method 'xen' Fri, 30 Apr 2010 04:47:02 DEBUG Hypervisor name is 'xen' Fri, 30 Apr 2010 04:47:02 DEBUG parse_disk: returning {'format': None, 'bus': None, 'readOnly': False, 'volInstall': None, 'path': '/var/lib/xen/images/fedora11.img', 'device': 'disk', 'volName': None, 'conn': <libvirt.virConnect instance at 0x8819f4c>, 'size': None, 'driverCache': None, 'shareable': False, 'sparse': True} Fri, 30 Apr 2010 04:47:02 DEBUG Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard' Fri, 30 Apr 2010 04:47:02 DEBUG Didn't find keymap in '/etc/X11/xorg.conf'! Fri, 30 Apr 2010 04:47:02 DEBUG Could not open "/etc/default/console-setup": [Errno 2] No such file or directory: '/etc/default/console-setup' Fri, 30 Apr 2010 04:47:02 DEBUG Did not parse any usable keymapping. Fri, 30 Apr 2010 04:47:02 DEBUG Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard' Fri, 30 Apr 2010 04:47:02 DEBUG Didn't find keymap in '/etc/X11/xorg.conf'! Fri, 30 Apr 2010 04:47:02 DEBUG Could not open "/etc/default/console-setup": [Errno 2] No such file or directory: '/etc/default/console-setup' Fri, 30 Apr 2010 04:47:02 DEBUG Did not parse any usable keymapping. Fri, 30 Apr 2010 04:47:02 DEBUG Setting os type to 'linux' for variant 'fedora11' Fri, 30 Apr 2010 04:47:02 ERROR Only one install method (--pxe, --location, --cdrom, --import) can be used and genny ~ #virt-install -c xen -n SimplyMepis os-type=linux --os-variant=generic26 -r 256 arch=i386 --vcpus=2 -v --disk path=/var/lib/xen/images/SimplyMepis.img,sparse=true --cdrom=/dev/sr1 -w bridge=virbr0 --vnc -d Fri, 30 Apr 2010 05:21:25 DEBUG Launched with command line: /usr/bin/virt-install-2.6 -c xen -n SimplyMepis os-type=linux --os-variant=generic26 -r 256 arch=i386 --vcpus=2 -v --disk path=/var/lib/xen/images/SimplyMepis.img,sparse=true --cdrom=/dev/sr1 -w bridge=virbr0 --vnc -d Fri, 30 Apr 2010 05:21:25 DEBUG Requesting libvirt URI default Fri, 30 Apr 2010 05:21:25 DEBUG Received libvirt URI xen:/// Fri, 30 Apr 2010 05:21:25 DEBUG Requesting virt method 'hvm', hv type 'default'. Fri, 30 Apr 2010 05:21:25 DEBUG Received virt method 'hvm' Fri, 30 Apr 2010 05:21:25 DEBUG Hypervisor name is 'xen' Fri, 30 Apr 2010 05:21:25 DEBUG parse_disk: returning {'format': None, 'bus': None, 'readOnly': False, 'volInstall': None, 'path': '/var/lib/xen/images/SimplyMepis.img', 'device': 'disk', 'volName': None, 'conn': <libvirt.virConnect instance at 0x88c0eec>, 'size': None, 'driverCache': None, 'shareable': False, 'sparse': True} Fri, 30 Apr 2010 05:21:25 DEBUG Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard' Fri, 30 Apr 2010 05:21:25 DEBUG Didn't find keymap in '/etc/X11/xorg.conf'! Fri, 30 Apr 2010 05:21:25 DEBUG Could not open "/etc/default/console-setup": [Errno 2] No such file or directory: '/etc/default/console-setup' Fri, 30 Apr 2010 05:21:25 DEBUG Did not parse any usable keymapping. Fri, 30 Apr 2010 05:21:25 DEBUG Setting os type to 'linux' for variant 'generic26' Fri, 30 Apr 2010 05:21:25 DEBUG DistroInstaller location is a local file/path: /dev/sr1 Starting install... Fri, 30 Apr 2010 05:21:25 DEBUG Generated install XML: <domain type='xen'> <name>SimplyMepis</name> <currentMemory>262144</currentMemory> <memory>262144</memory> <uuid>f6e62a3d-6a04-802b-1062-481a5a6fbedb</uuid> <os> <type arch='i686'>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader> <boot dev='cdrom'/> </os> <features> <acpi/><apic/><pae/> </features> <clock offset="utc"/> <on_poweroff>destroy</on_poweroff> <on_reboot>destroy</on_reboot> <on_crash>destroy</on_crash> <vcpu>2</vcpu> <devices> <emulator>/usr/lib/xen/bin/qemu-dm</emulator> <disk type='file' device='disk'> <source file='/var/lib/xen/images/SimplyMepis.img'/> <target dev='hda' bus='ide'/> </disk> <disk type='block' device='cdrom'> <source dev='/dev/sr1'/> <target dev='hdc' bus='ide'/> <readonly/> </disk> <interface type='bridge'> <source bridge='virbr0'/> <mac address='00:16:36:83:e3:6a'/> </interface> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' keymap='en-us'/> <console type='pty'/> <video> <model type='cirrus'/> </video> </devices> </domain> Fri, 30 Apr 2010 05:21:25 ERROR POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (22, 'Invalid argument')") Domain installation does not appear to have been successful. If it was, you can restart your domain by running 'virsh start SimplyMepis'; otherwise, please restart your installation. Fri, 30 Apr 2010 05:21:25 ERROR POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (22, 'Invalid argument')") Traceback (most recent call last): File "/usr/bin/virt-install-2.6", line 1033, in <module> main() File "/usr/bin/virt-install-2.6", line 915, in main start_time, guest.start_install) File "/usr/bin/virt-install-2.6", line 957, in do_install dom = install_func(conscb, progresscb, wait=(not wait)) 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: (22, 'Invalid argument')") So we have virtinst failing with libvirt AND xend errors/ so genny ~ # strace -otracelog-cdrom.log virt-install -c xen -n SimplyMepis os-type=linux --os-variant=generic26 -r 256 arch=i386 --vcpus=2 -v --disk path=/var/lib/xen/images/SimplyMepis.img,sparse=true --cdrom=/dev/sr1 -w bridge=virbr0 --vnc -d See the strace log. It should lead you to it. Still broken.
Finally. can install vms in gentoo. Hooray. See https://bugs.gentoo.org/show_bug.cgi?id=317975. This bug is still valid in a minor way. sudo virt-install -c xen -n SimplyMepis os-type= linux --os-variant=generic26 -r 256 arch=i386 --vcpus=2 -v --disk path=/var/lib/xen/images/SimplyMepis.img,sparse=true -l /dev/sr1 -w bridge=virbr0 --vnc -d still produces Tue, 20 Apr 2010 19:11:38 ERROR Only one install method (--pxe, --location, --cdrom, --import) can be used Technically, it should be rectified. Firstly, my xen was invalid, as the link explains. Secondly, the bug is virtinst being somewhat inflexaible to erroneous in vaildating the input. After replacing my xen, the examples worked except the above worked. re the bug, it's fairly simple to do a workaround. I persistently thought it was more reliable to anter a set of options on the command line as shown. I didn't think of it till today. All you need do is enter sudo virt-install --prompt, and it's scripts take you through the input data. While you still have to get it right, it avoids the type of error I cited. Once it takes the selections, its validating proves correct,, and proceeds to install. It pops into the vnc window and registers in virt-manager all correctly. So ait's avisable to choose this method to ensure an effective outcome. There are some thingd that need tweaking. The error stating paravirt installs can't be done from the cdrom is wrong. They can, and virtinst can do it. Just entring the input data in a certain choice of iput can trigger it to error. Tou can change the staus. I'm not staified with resolved, but it goes from a package breaker (within xen) to a minor inconvenience. So gentoo can worf xen, partially.
According to Cole, he worked with you and fixed these issues in 0.500.4 and gave them some polish for the 0.500.5 release which I just added to the tree. Closing this issue out.