[Pkg-libvirt-maintainers] Bug#521089: virtinst: virt-install fails - Values instance has no attribute 'os_variant'
Andreas Unterkircher
unki at netshadow.at
Tue Mar 24 19:51:23 UTC 2009
Package: virtinst
Version: 0.400.3-1
Severity: normal
When I try to create a new guest with virt-install and the following options:
sudo virt-install -n pbuild-vie-lenny -r 512 --arch=i686 --os-variant='debianlenny' -v --pxe -f /srv/guests/pbuild-vie-lenny_hda.img -b br0 --vnc
I get back a python error message:
ERROR Values instance has no attribute 'os_variant'
Traceback (most recent call last):
File "/usr/bin/virt-install", line 780, in <module>
main()
File "/usr/bin/virt-install", line 592, in main
cli.get_memory(options.memory, guest, options.os_variant)
AttributeError: Values instance has no attribute 'os_variant'
By replacing options.os_variant with options.distro_variant - I
do not see where options.os_variant would ever get set - it works.
Or maybe it would have to be guest.os_variant, which works too.
Cheers,
Andreas
--- /usr/bin/virt-install.orig 2009-03-24 18:59:11.000000000 +0100
+++ /usr/bin/virt-install 2009-03-24 20:48:34.797349047 +0100
@@ -589,7 +589,7 @@
ishvm = False
cli.get_name(options.name, guest)
- cli.get_memory(options.memory, guest, options.os_variant)
+ cli.get_memory(options.memory, guest, options.distro_variant)
cli.get_uuid(options.uuid, guest)
cli.get_vcpus(options.vcpus, options.check_cpu, guest, conn)
cli.get_cpuset(options.cpuset, guest.memory, guest, conn)
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (990, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages virtinst depends on:
ii python 2.5.2-3 An interactive high-level object-o
ii python-libvirt 0.6.1-2~mm.1 libvirt Python bindings
ii python-libxml2 2.6.32.dfsg-5 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:
ii qemu 0.9.1-10 fast processor emulator
ii virt-viewer 0.0.3-2 Displaying the graphical console o
virtinst suggests no packages.
-- no debconf information
More information about the Pkg-libvirt-maintainers
mailing list