Received: from eggs.gnu.org ([208.118.235.92]:46867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRoe3-0007oy-GV for qemu-devel@nongnu.org; Tue, 08 May 2012 13:56:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRody-0005GV-NJ for qemu-devel@nongnu.org; Tue, 08 May 2012 13:56:19 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:48620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRody-0005GJ-FY for qemu-devel@nongnu.org; Tue, 08 May 2012 13:56:14 -0400 Message-ID: <4FA95E3A.9080603@msgid.tls.msk.ru> Date: Tue, 08 May 2012 21:56:10 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <4FA818F9.90104@msgid.tls.msk.ru> <4FA8AD11.6060905@redhat.com> <4FA8B2FE.60303@msgid.tls.msk.ru> <4FA8C07A.4090505@redhat.com> In-Reply-To: <4FA8C07A.4090505@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] ahci drive: how to make it non-bootable? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel 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=,... > -device virtio-blk-pci,drive= Ok, at least it is not entirely insane :) >> 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