From: Gleb Natapov <gleb@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Gerd Hoffmann <kraxel@redhat.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] ahci drive: how to make it non-bootable?
Date: Wed, 9 May 2012 11:02:42 +0300 [thread overview]
Message-ID: <20120509080242.GN15960@redhat.com> (raw)
In-Reply-To: <4FA95E3A.9080603@msgid.tls.msk.ru>
On Tue, May 08, 2012 at 09:56:10PM +0400, Michael Tokarev wrote:
> On 08.05.2012 10:43, Gerd Hoffmann wrote:
> > Hi,
> >
> >>> bootindex=1 for virtio
> >>
> >> -drive file=winguest.raw,if=virtio,bootindex=1 --
> >>
> >> this does not work:
> >
> > Oops. I through it does, but seems this is only the case for the old &
> > deprecated boot=on (and maybe even that only in qemu-kvm).
>
> boot=on has been removed in qemu-kvm too. I had to resurrect it for
> Debian, so in debian it is supported still. And _that_ actually works,
> so I actually saved myself by providing the dropped feature. I can
> do the obvious (adding boot=on to the virtio drive) and it boots from
> it, despite the presence of ahci. Yay, thank you Gerd! :)
>
> >> qemu: -drive file=winguest.raw,if=virtio,bootindex=1: Invalid parameter 'bootindex'
> >>
> >> I understand that I probably can replace this single
> >> -drive with 3 parameters -- -device virtio-blk-pci,
> >> -drive if=none, and -device ide-drive.
> >
> > It's two only:
> > -drive if=none,id=<name>,...
> > -device virtio-blk-pci,drive=<name>
>
> Ok, at least it is not entirely insane :)
That's the way you suppose to do that. Does it work if you specify
bootindex for virtio this way? If it does then use it. Restoring
deprecated hacks is not the way to deal with it. If it does not, then
it is a bug that should be fixed.
>
> >> Also, still, the question in the $subj: how to make the ahci
> >> drive non-bootable?
> >
> > I think you can't.
> >
> > seabios uses a few numbers just above 100 for the internal default
> > ordering (hd first, then cdrom, then nic, then others) in case no
> > bootindex is specified. So you can try bootindex=200, that should get
> > ahci to the bottom of the boot menu, maybe that is good enougth.
>
> I tried 1000 - it still places ahci before virtio. Unless I use
> boot=on for virtio case.
>
> I guess I'll remove the deprecation warning for Debian too, since
> this boot=on thing is the only sane way to specify boot drive... :(
>
> Thank you!
>
> /mjt
--
Gleb.
next prev parent reply other threads:[~2012-05-09 8:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 18:48 [Qemu-devel] ahci drive: how to make it non-bootable? Michael Tokarev
2012-05-08 5:20 ` Gerd Hoffmann
2012-05-08 5:45 ` Michael Tokarev
2012-05-08 6:43 ` Gerd Hoffmann
2012-05-08 17:56 ` Michael Tokarev
2012-05-09 8:02 ` Gleb Natapov [this message]
2012-05-09 16:10 ` Michael Tokarev
2012-05-10 7:33 ` Paolo Bonzini
2012-05-10 12:27 ` Gleb Natapov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120509080242.GN15960@redhat.com \
--to=gleb@redhat.com \
--cc=kraxel@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.