qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] ahci drive: how to make it non-bootable?


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] ahci drive: how to make it non-bootable?
Date: Tue, 08 May 2012 07:20:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120422 Thunderbird/10.0.4

On 05/07/12 20:48, Michael Tokarev wrote:
> 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?

bootindex=1 for virtio
bootindex=2 for ahci

ordering in the boot menu then should be virtio first, ahci second, then
everything else (cdrom, nic, ..).

cheers,
  Gerd

> 
> Thanks,
> 
> /mjt
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]