[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-11-11 Thread Dustin Kirkland
** Changed in: qemu-kvm (Ubuntu)
   Status: New => Invalid

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-11-11 Thread Dustin Kirkland
I'll convert it into a Question, since this stems from a
misunderstanding of the behavior of qemu and its -boot option, now
explained clearly by Anthony.

** Changed in: qemu-kvm (Ubuntu)
   Status: Incomplete => New

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-11-11 Thread Matt Zimmerman
On Wed, Nov 11, 2009 at 09:43:20AM -, Soren Hansen wrote:
> On Wed, Nov 11, 2009 at 05:58:38AM -, Matt Zimmerman wrote:
> > I don't understand why this option should be necessary.  Following the
> > steps in my original report, I would expect one of two things to
> > happen:
> > 
> >  * The CD-ROM boot fails (because the disc is "ejected") and it falls back
> >to booting from the hard disc
> 
> You've explicitly told kvm to only boot from CD ("-boot d"). If you want
> it to boot from CD, if available, and fall back to booting from the hard
> drive, you should put "-boot dc".

Thanks, I understand now.  This bug report can be closed.

-- 
 - 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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-11-11 Thread Anthony Liguori
1. kvm-img create hda.img 4G
2. kvm -hda hda.img -cdrom jaunty-desktop-i386.iso -m 512
3. Install Ubuntu onto hda
4. Reboot, following the prompts (press enter to "eject" the CD)
5. System boots into installed OS.

It's the use of '-boot d' that is creating problems for you.  By
default, the order= parameter of boot is set to 'cad' which means that
it will first boot from the first hard disk, then boot from floppy, then
boot from CD-ROM.  This seems to be the behavior you're asking for.

Additionally, you mentioned a user choosing a different device from the
menu.  That is possible by adding '-boot menu=on'.  This will cause a
prompt to the user to hit F12 to change the default boot order.  We set
'menu=off' by default because it introduces a small delay during boot up
which is considered undesirable by many users.

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-11-11 Thread Soren Hansen
On Wed, Nov 11, 2009 at 05:58:38AM -, Matt Zimmerman wrote:
> I don't understand why this option should be necessary.  Following the
> steps in my original report, I would expect one of two things to
> happen:
> 
>  * The CD-ROM boot fails (because the disc is "ejected") and it falls back
>to booting from the hard disc

You've explicitly told kvm to only boot from CD ("-boot d"). If you want
it to boot from CD, if available, and fall back to booting from the hard
drive, you should put "-boot dc".

> The workaroud you've suggested would largely satisfy my needs for
> Ubuntu testing, but I don't understand why it shouldn't just work
> intuitively as described above.

It's just like setting your BIOS up to only try to boot from CD, and
never from your hard drive.

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-11-10 Thread Matt Zimmerman
On Wed, Nov 11, 2009 at 01:46:49AM -, Dustin Kirkland wrote:
> Matt, Evan-
> 
> >From the kvm(1) manpage, I think the option you want is:
>   # boot from CD-ROM first, switch back to default order after reboot
>   -boot once=d
> 
> Can you give that a try and see if that gives you the behavior you
> expect?
> 
> I tested here with a real, working disk image, and a live ISO.
> 
> Using:
>  * /usr/bin/kvm -m 512 -cdrom ../iso/karmic-desktop-amd64.iso -hda 
> karmic-server.img -boot once=d
> 
> I booted to the LiveCD desktop first, then used the graphical Restart
> option, and rebooted directly to my server.img disk.

I don't understand why this option should be necessary.  Following the
steps in my original report, I would expect one of two things to happen:

 * The CD-ROM boot fails (because the disc is "ejected") and it falls back
   to booting from the hard disc

 * The CD-ROM boot succeeds (because the "tray closes") and I can boot from
   the hard disc by selecting the appropriate option from the menu

Scott's comment #12 explains the difference pretty clearly.  I should be
able to repeat this process as many times as I like without restarting KVM.

Instead, I get:

 * System fails to boot from the CD, and so halts and needs to be restarted
   with different command-line options

The workaroud you've suggested would largely satisfy my needs for Ubuntu
testing, but I don't understand why it shouldn't just work intuitively as
described above.

-- 
 - 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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-11-10 Thread Dustin Kirkland
Matt, Evan-

>From the kvm(1) manpage, I think the option you want is:
  # boot from CD-ROM first, switch back to default order after reboot
  -boot once=d

Can you give that a try and see if that gives you the behavior you
expect?

I tested here with a real, working disk image, and a live ISO.

Using:
 * /usr/bin/kvm -m 512 -cdrom ../iso/karmic-desktop-amd64.iso -hda 
karmic-server.img -boot once=d

I booted to the LiveCD desktop first, then used the graphical Restart
option, and rebooted directly to my server.img disk.

** Changed in: qemu-kvm (Ubuntu)
   Status: Triaged => Incomplete

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-10-22 Thread Scott Moser
I think this is really a simple matter of which type of cdrom is being emulated 
by kvm.  In my experience, there are at least two behaviors of CDroms that have 
their tray ejected on boot.
a.) pull in the tray (eject -t) which would have a cd in it, and then would be 
available for the bios boot selector.  This is typical behavior of desktop 
machines.
b.) do not pull in the tray , leave out, and thus theres no CD available to 
boot. My thinkpad has this type of CD, the cdrom is not capable of "eject -t".  
Ie:
 | $ eject -t /dev/cdrom
 | eject: CD-ROM tray close command failed: Input/output error

KVM implements 'b'. It appears that the bug opener expects 'a'.

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-10-22 Thread Dustin Kirkland
Evan-

Can you try adding -boot dc to your kvm command line?

This would tell qemu to try boot from the cdrom first, then from the
hard drive.

:-Dustin

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-10-22 Thread Anthony Liguori
This is expected behavior.

You probably should be using -boot dc.  This will cause the VM to boot
into the install OS after installation.  This is precisely why
distributions eject the CD after installation (to prevent booting into
the installer again).


** Changed in: qemu
   Status: New => Invalid

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-10-22 Thread Dustin Kirkland
Evan-

What's your kvm command line?

:-Dustin

** Changed in: kvm (Ubuntu)
   Importance: Wishlist => Low

** Package changed: kvm (Ubuntu) => qemu-kvm (Ubuntu)

** Also affects: qemu
   Importance: Undecided
   Status: New

-- 
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
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 348633] Re: Fails to boot from CD after reboot: CDROM boot failure code: 0003

2009-10-22 Thread Evan Dandrea
I think this deserves a higher priority than wishlist.

This bit me hard over the past two days in testing Wubi.  wubildr
(grub2) would hang on reading from the CDROM on first boot, since it had
been ejected and left in that state.

-- 
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
Server Team, which is subscribed to kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs