Note: I have both updates-testing and the rawvirt (http://jforbes.fedorapeople.org/virt-preview/f13/$basearch/) repos enabled. Fully up-to-date as of 30/08/2010 Attempting to install CentOS 5.5 via kickstart in a KVM virtual machine: NAME=VM_01; virt-install --connect qemu:///system \ --wait 10 \ --os-variant=rhel5.4 \ --os-type=linux \ --name $NAME \ --ram 256 \ --vcpus=1 \ --disk path=/dev/KVM_Volume/$NAME,bus=virtio \ --network bridge=br0 \ --noautoconsole \ --location http://192.168.1.251/centos/5.5/os/x86_64/ \ -x "ks=http://192.168.1.251/centos/kickstart/centos-base.ks" Starting install... Retrieving file .treeinfo... | 834 B 00:00 ... Retrieving file vmlinuz... | 3.7 MB 00:00 ... Retrieving file initrd.img... | 15 MB 00:00 ... Creating domain... | 0 B 00:00 Domain installation still in progress. Waiting 10 minutes for installation to complete. Domain has shutdown. Continuing. ERROR 'VirtualDisk' object has no attribute 'DRIVER_TYPE_AIO' Domain installation does not appear to have been successful. If it was, you can restart your domain by running 'virsh start VM_01'; otherwise, please restart your installation. Manually starting the VM works as expected. # rpm -qa | grep virt libvirt-python-0.8.2-3.fc13.x86_64 virt-viewer-0.2.1-1.fc13.x86_64 libvirt-client-0.8.2-3.fc13.x86_64 virt-manager-0.8.4-3.fc13.noarch python-virtkey-0.50-6.fc12.x86_64 python-virtinst-0.500.4-1.fc13.noarch libvirt-0.8.2-3.fc13.x86_6 # uname -a Linux athlon.linux-corner.info 2.6.33.8-149.fc13.x86_64 #1 SMP Tue Aug 17 22:53:15 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
Thanks for the report, fixed upstream: http://hg.fedorahosted.org/hg/python-virtinst/rev/8c9af019b3ec
*** Bug 636999 has been marked as a duplicate of this bug. ***
if the upstream fix is this one 1.1 --- a/virtinst/Installer.py Mon Aug 30 17:01:46 2010 -0400 1.2 +++ b/virtinst/Installer.py Mon Aug 30 18:01:15 2010 -0400 1.3 @@ -342,7 +342,7 @@ 1.4 return True 1.5 1.6 if (disk.driver_type and 1.7 - disk.driver_type not in [disk.DRIVER_TYPE_AIO, 1.8 + disk.driver_type not in [disk.DRIVER_TYPE_RAW, 1.9 disk.DRIVER_TYPE_QEMU]): 1.10 # Might be a non-raw format 1.11 return True Then it just changes the error to: ERROR 'VirtualDisk' object has no attribute 'DRIVER_TYPE_RAW' when installing XP from .iso to a .img target
Yeah, an additional fix and unit test was committed later: http://hg.fedorahosted.org/hg/python-virtinst/rev/71cf9a1113c8
Just checked the FC14 Release code and this update is not in I have tried the change as above and it certainly work for an XP install either from virt-install or console. its marked as post so fingers crossed
I've also run into this problem on F14. How exactly do I get this update? Do I need to enable the "updates-testing" repo?
Sorry, I should have "just done it" - then I would have seen that there is no update. Is the correct approach to just manually replace the single "Installer.py" file mentioned in Comment 4?
Created attachment 467837 [details] Patch for F14 code There isn't an update yet. An interim fix is to download the attachment, then as root run patch -p2 -d /usr/lib/python2.7/site-packages/virtinst < /path/to/the/downloaded/file.patch If for some reason that makes thing worse, you can recover with yum install yum-utils yumdownloader python-virtinst rpm -Uvh --force python-virtinst*.rpm An update is coming soon-ish, I'm just trying to get some work done before I push an upstream release.
Thanks! I applied the F14 patch (in comment #8) and all is well :-)
python-virtinst-0.500.6-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/python-virtinst-0.500.6-1.fc14
python-virtinst-0.500.4-2.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/python-virtinst-0.500.4-2.fc13
Package python-virtinst-0.500.4-2.fc13: * should fix your issue, * was pushed to the Fedora 13 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-virtinst-0.500.4-2.fc13' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/python-virtinst-0.500.4-2.fc13 then log in and leave karma (feedback).
python-virtinst-0.500.4-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
python-virtinst-0.500.6-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.