Received: from eggs.gnu.org ([2001:4830:134:3::10]:48322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePET4-0001Mh-Vd for qemu-devel@nongnu.org; Wed, 13 Dec 2017 16:21:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePET4-00043K-05 for qemu-devel@nongnu.org; Wed, 13 Dec 2017 16:21:30 -0500 Sender: Paolo Bonzini References: <20171211114129.GC3350@lemon> From: Paolo Bonzini Message-ID: <7ee9e2f2-9690-9f6d-6952-d96953501c0f@redhat.com> Date: Wed, 13 Dec 2017 22:21:13 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU not honouring bootorder List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michal Privoznik , Fam Zheng Cc: QEMU Developers , qemu-block@nongnu.org On 11/12/2017 13:14, Michal Privoznik wrote: >>> qemu-system-x86_64 \ >>> -boot menu=on,strict=on \ >>> -device lsi,id=scsi0,bus=pci.0 \ >>> -drive file=/var/lib/libvirt/images/fedora.qcow2,format=qcow2,if=none,id=drive-scsi0 \ >>> -device scsi-hd,bus=scsi0.0,drive=drive-scsi0,bootindex=1 \ >>> -drive file=/dev/sde,format=raw,if=none,id=drive-scsi1 \ >>> -device scsi-block,bus=scsi0.0,drive=drive-scsi1,bootindex=2 >>> >>> It was found that if 'drive-scsi1' is scsi-hd instead of scsi-block >>> everything works as expected and I can boot my guest successfully. >> Does it help if you add SCSI level ordering with "lun={0,1},channel=0,scsi-id=0" >> for both devices? > Setting lun helps. On the other hand, I had to change from LSI > controller to virtio-scsi as LSI doesn't support more than 1 LUNs. Does it help to use virtio-scsi and keep the default assignment? Thanks, Paolo