On Thu, Mar 26, 2009 at 08:59:55AM -0000, Thierry Carrez wrote:
> I can confirm that behavior, though I'm using virt-manager.
> 
> I create a new virtual machine with "install from CD" option, it will boot 
> with
> kvm -hda hda.img -cdrom jaunty-desktop-i386.iso -m 512
> for a one-time CD boot and then it will default to -boot c on subsequent 
> reboots, somehow hiding the issue.

This is unrelated.  The boot order puts the hard disk ahead of the CD-ROM,
but since the hard disk has no MBR, it falls back to the CD-ROM.  Once the
system is installed, it boots from the hard disk as expected.

> Reusing that created VM for more ISO testing by selecting "CDROM" in boot 
> options will make it boot with
> kvm -hda hda.img -cdrom jaunty-desktop-i386.iso -m 512 -boot d
> and then at the end of the install after rebooting I get the "No bootable 
> device" error, I need to switch back Boot options to "Hard disk" to boot from 
> the hard drive, or stop/restart the VM to boot from the CD again.

This confirms what I see.

> My guess is that KVM obeys the ejection of the CD by marking the drive
> as open. Rebooting it doesn't virtually close the drive, and I suspect
> failure code 0003 to translate to "CD tray open". Restarting kvm
> completely clears the CD tray status and then it obeys whatever is in
> "-boot".


I agree, this is likely the problem.  I think it would be fine if kvm
emulated the type of CD-ROM which re-inserts the disc automatically in this
case.

-- 
 - mdz

-- 
Fails to boot from CD after reboot: CDROM boot failure code: 0003
https://bugs.launchpad.net/bugs/348633
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to