Red Hat Bugzilla – Bug 1017419
if virt-install fails fetching initrd, fails with "NoneType object is not iterable"
Last modified: 2013-11-16 02:14:41 EST
Description of problem:
Following test day instructions: https://fedoraproject.org/wiki/QA:Testcase_Virtualization_URL_Guest_Install, virt-install part
% sudo virt-install --name test-day-vm --ram 2048 \
--disk path=/var/lib/libvirt/images/test-day-vm.img,size=10 \
Retrieving file .treeinfo... | 2.2 kB 00:00:00 !!!
Retrieving file vmlinuz... | 9.8 MB 00:00:06 !!!
ERROR 'NoneType' object is not iterable
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start test-day-vm
otherwise, please restart your installation.
Version-Release number of selected component (if applicable):
Not very. I think it must have been some temporary network error which derailed the installation. Worked on the second try.
Yeah a bunch of the f20 mirrors are incomplete, so when you use download.fedoraproject.org it will bounce you around to a whole bunch of different mirrors. If one is busted it can mess up the install.
Can you look in ~/.cache/virt-manager/virt-install.log, search for that error message and paste the full traceback here?
[Wed, 09 Oct 2013 16:04:27 virt-install 23245] DEBUG (urlfetcher:92) Fetching URI: http://download.fedoraproject.org/pub/fedora/linux/development/20/x86_64/os/images/pxeboot/initrd.img
[Wed, 09 Oct 2013 16:04:28 virt-install 23245] ERROR (cli:264) 'NoneType' object is not iterable
[Wed, 09 Oct 2013 16:04:28 virt-install 23245] DEBUG (cli:266)
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-install", line 716, in start_install
dom = guest.start_install(meter=meter, noboot=options.noreboot)
File "/usr/share/virt-manager/virtinst/guest.py", line 369, in start_install
File "/usr/share/virt-manager/virtinst/guest.py", line 262, in _prepare_install
File "/usr/share/virt-manager/virtinst/installer.py", line 212, in prepare
self._prepare(guest, meter, scratchdir)
File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 422, in _prepare
File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 327, in _prepare_kernel_url
kernel, initrd, args = store.acquireKernel(guest)
TypeError: 'NoneType' object is not iterable
[Wed, 09 Oct 2013 16:04:28 virt-install 23245] DEBUG (cli:277) Domain installation does not appear to have been successful.
Fixed upstream now
virt-manager-0.10.0-5.git1ffcc0cc.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-manager-0.10.0-5.git1ffcc0cc.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
virt-manager-0.10.0-5.git1ffcc0cc.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.