qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ahci drive: how to make it non-bootable?
@ 2012-05-07 18:48 Michael Tokarev
  2012-05-08  5:20 ` Gerd Hoffmann
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Tokarev @ 2012-05-07 18:48 UTC (permalink / raw)
  To: qemu-devel

I'm trying to experiment with ahci, but can't
even get my win guest to install drivers for
it.  My usualy procedure is, for an existing
guest, to add a dummy drive of required type,
boot the guest, let it to recognize the new
device and to install drivers needed for it,
shut it down and change boot drive to the one
of required type.  This worked fine so far,
eg, for virtio or scsi.

But now I can't use the same technique for ahci.

 qemu .. -drive file=winguest.raw,if=virtio \
  -device ahci,id=a \
  -drive file=dummy.raw,id=d,if=none \
  -device ide-disk,bus=a.0,drive=d,bootindex=X

Now, no matter what I use for the bootindex
parameter, the guest _always_ boots off a dummy
ahci drive.  Even using bootindex=-1 or some huge
value, the guest still boots from ahci.

The only workaround I found so far is to boot
using -boot menu=on, and manually choose the
second entry (which is the virtio image), but
obviously this is not good at all.

How to let the guest to boot from the virtio
drive?

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-05-10 12:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-05-09 16:10           ` Michael Tokarev
2012-05-10  7:33             ` Paolo Bonzini
2012-05-10 12:27             ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).