[Pkg-libvirt-maintainers] Bug#544103: virtinst: fails to network install x86 guest on amd64 host

Filip Van Raemdonck mechanix at debian.org
Fri Aug 28 20:22:22 UTC 2009


Package: virtinst
Version: 0.400.0-7
Severity: normal

Trying to install an i386 Lenny guest on a 64-bit (i.e., amd64) Lenny KVM host,
virt-install looks for the kernel to download in a x86_64 folder.
Failure output below.

I tried adding --arch i386 but then it would complain that hvm was not
supported for that architecture.
I temporarily edited /usr/share/python-support/virtinst/virtinst/OSDistro.py
around line 538 to set arch to i386 right before filling in kernelpath and
initrdpath variables and resetting to x86_64 right afterwards, which made the
installation take off just fine.

This should probably be implemented by looking for these files in a i386
subdirectory instead of x86_64, or at least falling back when there's already
an i386 string somewhere in the location string.
And/or maybe add a subarch or bitness level somewhere on the DebianDistro
which is used in the format string on the lines above. And which can ideally
be set to a specific value through a command-line option.

Kind regards,

Filip


mechanix at jotunn:~$ virt-install --vnc -v -r 512 -n lenny_x86 -f /srv/virtual/kvm/disks/lenny_x86.img -d --accelerate --connect=qemu:///system -s 2 --os-type=linux --os-variant=debianLenny --location=http://mirrors.uwa.edu.au/debian/dists/lenny/main/installer-i386 --prompt
vr, 28 aug 2009 21:34:31 DEBUG    Using libvirt URI connect 'qemu:///system'
vr, 28 aug 2009 21:34:31 DEBUG    Requesting virt method 'hvm'
vr, 28 aug 2009 21:34:31 DEBUG    Received virt method 'hvm'
vr, 28 aug 2009 21:34:31 DEBUG    Hypervisor type is 'kvm'
vr, 28 aug 2009 21:34:31 DEBUG    Didn't find path '/srv/virtual/kvm/disks/lenny_x86.img' managed on connection: no storage vol with matching path
vr, 28 aug 2009 21:34:31 DEBUG    Using self.path for VirtualDisk.
vr, 28 aug 2009 21:34:31 DEBUG    VirtualDisk storage does not exist.
vr, 28 aug 2009 21:34:31 WARNING  The filesystem will not have enough free space to fully allocate the sparse file when the guest is running. 2048 M requested > 922 M available
The filesystem will not have enough free space to fully allocate the sparse file when the guest is running. 2048 M requested > 922 M available Do you really want to use the disk (yes or no)? yes
vr, 28 aug 2009 21:34:41 DEBUG    Could not open "/etc/sysconfig/keyboard": [Errno 2] Bestand of map bestaat niet: '/etc/sysconfig/keyboard'
vr, 28 aug 2009 21:34:41 DEBUG    Didn't find keymap 'be' in keytable!
vr, 28 aug 2009 21:34:41 DEBUG    DistroInstaller location is a network source.
 

Starting install...
vr, 28 aug 2009 21:34:41 DEBUG    Didn't find path '/srv/virtual/kvm/disks/lenny_x86.img' managed on connection: no storage vol with matching path
vr, 28 aug 2009 21:34:41 DEBUG    Using self.path for VirtualDisk.
vr, 28 aug 2009 21:34:41 DEBUG    VirtualDisk storage does not exist.
vr, 28 aug 2009 21:34:41 WARNING  The filesystem will not have enough free space to fully allocate the sparse file when the guest is running. 2048 M requested > 922 M available
vr, 28 aug 2009 21:34:42 DEBUG    Attempting to detect distro:
vr, 28 aug 2009 21:34:43 DEBUG    Fetching URI http://mirrors.uwa.edu.au/debian/dists/lenny/main/installer-i386/current/images/MANIFEST
vr, 28 aug 2009 21:34:43 DEBUG    Saved file to /home/mechanix/.libvirt/boot/virtinst-MANIFEST.QcAJto
Retrieving file MANIFEST. 100% |=========================| 1.5 kB    00:00     
vr, 28 aug 2009 21:34:43 DEBUG    Detected a Debian distro
vr, 28 aug 2009 21:34:43 DEBUG    Fetching URI http://mirrors.uwa.edu.au/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/x86_64/linux
Couldn't acquire file http://mirrors.uwa.edu.au/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/x86_64/linux: [Errno 14] HTTP Error 404: Not Found
Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start lenny_x86'; otherwise, please
 restart your installation.
vr, 28 aug 2009 21:34:44 ERROR    Couldn't acquire file http://mirrors.uwa.edu.au/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/x86_64/linux: [Errno 14] HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 693, in <module>
    main()
  File "/usr/bin/virt-install", line 633, in main
    dom = guest.start_install(conscb, progresscb, wait=(not wait))
  File "/var/lib/python-support/python2.5/virtinst/Guest.py", line 733, in start_install
    self._prepare_install(meter)
  File "/var/lib/python-support/python2.5/virtinst/FullVirtGuest.py", line 314, in _prepare_install
    distro = self.os_distro)
  File "/var/lib/python-support/python2.5/virtinst/DistroManager.py", line 269, in prepare
    self._prepare_kernel_and_initrd(guest, distro, meter)
  File "/var/lib/python-support/python2.5/virtinst/DistroManager.py", line 235, in _prepare_kernel_and_initrd
    arch=arch)
  File "/var/lib/python-support/python2.5/virtinst/DistroManager.py", line 110, in acquireKernel
    return store.acquireKernel(fetcher, progresscb)
  File "/var/lib/python-support/python2.5/virtinst/OSDistro.py", line 544, in acquireKernel
    kernel = fetcher.acquireFile(kernelpath, progresscb)
  File "/var/lib/python-support/python2.5/virtinst/ImageFetcher.py", line 99, in acquireFile
    (path, str(e))
ValueError: Couldn't acquire file http://mirrors.uwa.edu.au/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/x86_64/linux: [Errno 14] HTTP Error 404: Not Found



-- System Information:
Debian Release: 5.0.2
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages virtinst depends on:
ii  python                     2.5.2-2       An interactive high-level object-o
ii  python-libvirt             0.4.6-10      libvirt Python bindings
ii  python-libxml2             2.6.32.dfsg-2 Python bindings for the GNOME XML 
ii  python-support             0.8.4         automated rebuilding support for P
ii  python-urlgrabber          3.1.0-4       A high-level cross-protocol url-gr

Versions of packages virtinst recommends:
pn  qemu                          <none>     (no description available)
ii  virt-viewer                   0.0.3-2    Displaying the graphical console o

-- no debconf information

-- 
My weblog: http://blog.sysfs.net/





More information about the Pkg-libvirt-maintainers mailing list