Created attachment 368250 [details] Log of libguestfs build+test run [CC'd to rwmjones for reclassification if filed against the wrong component] Description of problem: The libguestfs virtual appliance is unable to find its attached hard drive when booting, and thus fails selftest badly. Rebuilding to use virtio works around this. Version-Release number of selected component (if applicable): qemu-kvm-0.10.91-0.5.rc1.fc12 libguestfs-1.0.75-1.fc12 CD install media RHEL6.0-20091020.1 How reproducible: 100% Steps to Reproduce: 1. Pull the libguest srpm from Fedora 12 2. Ensure that packages needed for guest can be found under /var/cache/yum 3. Attempt to build with rpmbuild -ba libguestfs.spec Actual results: Package fails to build in selftest -- guest is unable to detect IDE devices. Expected results: Package should build as it does on Fedora 12. Additional info: Log of unsuccessful build and test run attached.
Assigning to me to have a look at this.
On further investigation, this looks to me like an issue in libguestfs, particularly with the appliance build; no modules matching /lib/modules/*/kernel/drivers/ata/*.ko exist within the generated appliance. Adding ata_piix.ko to the libguestfs module whitelist makes things better.
Yes, I reproduced this problem. I compiled from git using the following commands: ./autogen.sh \ --enable-gcc-warnings \ --enable-debug-command \ --enable-supermin \ --with-drive-if=ide \ --with-repo=rhel-6 \ --with-mirror=/path/to/RHEL6.0-20091021.0/6/i386/os make and then I tested it using guestfish: export LIBGUESTFS_DEBUG=1 ./fish/guestfish ><fs> alloc /tmp/test.img 10M ><fs> run ><fs> list-devices [no devices are listed] I'm going to try adding ata_piix.ko to kmod.whitelist.in and see if that makes any difference.
Confirmed: fixed by adding ata_piix.ko. I've pushed a patch upstream for this: https://www.redhat.com/archives/libguestfs/2009-November/msg00086.html
No point having this bug private, so moved to Virtualization Tools / libguestfs.