Qemu-KVM with 3x IDE HDD + CDROM not working
Hi Qemu/KVM Devel Team,
if I create a VM with more than 2 harddisks and a CDROM Image and want to boot from CDROM this is not working. From my understanding at least 3 IDE Drives + 1 IDE CDROM should work.
cmdline:/usr/bin/qemu-kvm-0.12.4 -net none -drive file=/dev/sdb,if=ide,boot=on,cache=none,aio=native -drive file=/dev/sdc,if=ide,boot=off,cache=none,aio=native -drive file=/dev/sdd,if=ide,boot=off,cache=none,aio=native -m 256 -cpu qemu64,model_id='Intel(R) Xeon(R) CPU E5430 @ 2.66GHz' -monitor tcp:0:4001,server,nowait -vnc :1 -name 'ide-test' -boot order=dc,menu=on -cdrom /home/kvm/cdrom/root/KNOPPIX_V6.2.1CD-2010-01-31-DE.iso -k de -pidfile /var/run/qemu/vm-153.pid -mem-path /hugepages -mem-prealloc -rtc base=utc,clock=vm -no-kvm-irqchip -usb -usbdevice tablet
SEABIOS shows error: Could not read from CDROM (code 0001)
Thanks,
Peter
Quoted 19 lines · Peter Lieven
Hi Qemu/KVM Devel Team,
if I create a VM with more than 2 harddisks and a CDROM Image and want to boot from CDROM this is not working.
From my understanding at least 3 IDE Drives + 1 IDE CDROM should work.cmdline:
/usr/bin/qemu-kvm-0.12.4-net none -drive file=/dev/sdb,if=ide,boot=on,cache=none,aio=native -drive file=/dev/sdc,if=ide,boot=off,cache=none,aio=native -drive file=/dev/sdd,if=ide,boot=off,cache=none,aio=native -m 256 -cpu
qemu64,model_id='Intel(R) Xeon(R) CPU E5430 @ 2.66GHz'
-monitor tcp:0:4001,server,nowait -vnc :1 -name 'ide-test' -boot order=dc,menu=on -cdrom/home/kvm/cdrom/root/KNOPPIX_V6.2.1CD-2010-01-31-DE.iso-k de(quoted diff) +0
-3-pidfile /var/run/qemu/vm-153.pid -mem-path /hugepages -mem-prealloc -rtc base=utc,clock=vm -no-kvm-irqchip -usb -usbdevice tablet
Quoted 1 line
SEABIOS shows error: Could not read from CDROM (code 0001)
Your third drive conflicts with the cdrom. Try adding ",index=3" to the definition of sdd.
Qemu should probably handle this better, but the above works for me.
-Kevin