Bug: SCSI/VirtIO: VM unable to reboot from non-IDE controller
Hi All !
Most Linux VMs (Ubuntu and Red Hat-based systems -- RHEL, Fedora) have failed during automated tests
on SCSI and VirtIO disks on Qemu/KVM.
It turned out to be a problem of Qemu/KVM, where after a software reboot (i.e. initiated by guest OS), the system is unable to boot from SCSI controller.
To reboot successfully you need either soft reboot+IDE or Hard reboot (Qemu cold boot)+SCSI.
The Command sent to Qemu/KVM:/usr/local/bin/qemu-system-x86_64 -m 512 -monitor tcp:localhost:4602,server,nowait -cdrom /isos/linux/Fedora-8-i386-DVD.iso -drive file=/vm/fedora8-32.qcow2,if=scsi,boot=on -name fedora8-32
Host: RHEL 5/x64, KVM-85rc6. (tried both Intel and AMD)
Guests: Ubuntu-8.10, RHEL 5, Fedora 8, Fedora 9 (tried both 32 and 64-bit).
Due to lack of Qemu bugzilla -- bugs were opened on Ubuntu Launchpad and KVM bugzilla.
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/363743
https://sourceforge.net/tracker/?func=detail&aid=2768533&group_id=180599&atid=893831
Signature · 1 line
-Alexey Eromenko "Technologov", 20.4.2009.
Quoted 9 lines · Alexey Eremenko
Hi All !
Most Linux VMs (Ubuntu and Red Hat-based systems -- RHEL, Fedora) have failed during automated tests
on SCSI and VirtIO disks on Qemu/KVM.
It turned out to be a problem of Qemu/KVM, where after a software reboot (i.e. initiated by guest OS), the system is unable to boot from SCSI controller.
Quoted 7 lines
To reboot successfully you need either soft reboot+IDE or Hard reboot (Qemu cold boot)+SCSI.
The Command sent to Qemu/KVM:
/usr/local/bin/qemu-system-x86_64-m 512 -monitor tcp:localhost:4602,server,nowait -cdrom /isos/linux/Fedora-8-i386-DVD.iso -drive file=/vm/fedora8-32.qcow2,if=scsi,boot=on -name fedora8-32
You're using extboot (boot=on) which is part of kvm. I sent a patch[1] to since the upstream kvm-userspace bits had the wrong option rom reset address. This should be fixed in upstream kvm-userspace.git[2].
1. http://kerneltrap.org/mailarchive/linux-kvm/2009/4/6/5418914
2. http://git.kernel.org/?p=linux/kernel/git/avi/kvm-userspace.git;a=commit;h=a1075de527f309850df278484f2ef4127827c6f4
Signature · 4 lines
Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx [email protected]