Hi Michael! Thanks for your quick answer!
On Tue, Jun 10, 2014 at 09:59:43AM +0400, Michael Tokarev wrote: > 10.06.2014 09:16, Thomas wrote: > > I want to use the Q35 qemu platform for my virtual machines. > > > > I start qemu with the following command line: > > vimaowner@osprey:~$ qemu-system-x86_64 -enable-kvm -machine type=q35 \ > > -cpu kvm32 -m 512 -balloon none -hda virtuals/fai/fai_root.img -cdrom \ > > cdroms/grml96-full_2014.03.iso -boot order=d -name fai -vga qxl -spice \ > > port=5900,addr=localhost,disable-ticketing -monitor stdio > > With q35 machine type you have to use the "real" syntax. The above > -cdrom and -hda becomes: > > -drive file=virtuals/fai/fai_root.img,id=d0,if=none > -device ide-drive,drive=d0 > > -drive file=cdroms/grml96-full_2014.03.iso,id=c0,media=cdrom,if=none > -device ide-cd,drive=c0 This does unfortunatelly not work: vimaowner@osprey:~$ qemu-system-x86_64 -enable-kvm -machine type=q35 \ -cpu kvm32 -m 512 -balloon none \ -drive file=virtuals/fai/fai_root.img,id=d0,if=none \ -device ide-drive,drive=d0 \ -drive file=cdroms/grml96-full_2014.03.iso,id=c0,media=cdrom,if=none \ -device ide-cd,drive=c0 -boot order=d -name fai -vga qxl \ -spice port=5900,addr=localhost,disable-ticketing -monitor stdio QEMU 2.0.0 monitor - type 'help' for more information (qemu) qemu-system-x86_64: -device ide-cd,drive=c0: Can't create IDE unit 1, bus supports only 1 units qemu-system-x86_64: -device ide-cd,drive=c0: Device initialization failed. qemu-system-x86_64: -device ide-cd,drive=c0: Device 'ide-cd' could not be initialized So I switched to SCSI drives instead and used the -drive syntax (skipped the -device part) and it works! This is my working command line: vimaowner@osprey:~$ qemu-system-x86_64 -enable-kvm -machine type=q35 \ -cpu kvm32 -m 512 -balloon none \ -drive file=virtuals/fai/fai_root.img,if=scsi,media=disk \ -drive file=cdroms/grml96-full_2014.03.iso,if=scsi,media=cdrom,readonly \ -boot order=d -name fai -vga qxl \ -spice port=5900,addr=localhost,disable-ticketing -monitor stdio Thanks a lot for showing the right path! > It is just the legacy shortcuts -hda and -cdrom doesn't work. Just like > the expansion of these options (as documented in the manpage). > > This is an upstream issue. And I'm not sure upstream is very interested > in fixing it. I think we shouldn't call it a bug and it isn't a problem if upstream is not fixing it. But we can say it's a documentation miss. I checked the manpage qemu-system-x86_64 twice and can not find a hint which says one has to use the -drive syntax with the q35 machine model. > Retitling and lowering severity accordingly. I should say we can close this bug. Thomas -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

