Red Hat Bugzilla – Bug 628721
'VirtualDisk' object has no attribute 'DRIVER_TYPE_AIO'
Last modified: 2011-04-16 16:58:42 EDT
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 \
--name $NAME \
--ram 256 \
--disk path=/dev/KVM_Volume/$NAME,bus=virtio \
--network bridge=br0 \
--location http://192.168.1.251/centos/5.5/os/x86_64/ \
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
# uname -a
Linux athlon.linux-corner.info 188.8.131.52-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:
*** 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.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.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:
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
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.
python-virtinst-0.500.4-2.fc13 has been submitted as an update for Fedora 13.
* 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:
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.