[et-mgmt-tools] list index out of range when running virt-install

Nerijus Baliunas nerijus at users.sourceforge.net
Wed Jan 7 20:49:59 UTC 2009


I have Fedora 10, and running
virt-install -n skaita -r 64 --disk path=/var/lib/libvirt/images/skaita.img,size=2 --cdrom /a/freedos/fdbasecd.iso -w bridge:br0 --vnc --accelerate --os-type=other --os-variant=msdos
ERROR    list index out of range
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 692, in <module>
  File "/usr/sbin/virt-install", line 577, in main
    options.sdl, options.keymap, guest)
  File "/usr/lib/python2.5/site-packages/virtinst/cli.py", line 339, in get_graphics
    guest.graphics_dev = VirtualGraphics(type=VirtualGraphics.TYPE_VNC)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 207, in __init__
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 219, in set_keymap
    val = util.default_keymap()
  File "/usr/lib/python2.5/site-packages/virtinst/util.py", line 296, in default_keymap
    kt = s.split('"')[1]
IndexError: list index out of range

Assuming it's something with my locale, I tried to set LANG=en_US LC_ALL=en_US LC_CTYPE=en_US
but it didn't help. I changed line 296 from kt = s.split('"')[1] to kt = s.split('"')[0] and
I was able to start install.


More information about the et-mgmt-tools mailing list