[Top][All Lists]

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

Re: [Qemu-block] [Qemu-devel] QEMU not honouring bootorder

From: Fam Zheng
Subject: Re: [Qemu-block] [Qemu-devel] QEMU not honouring bootorder
Date: Mon, 11 Dec 2017 19:41:29 +0800
User-agent: Mutt/1.9.1 (2017-09-22)

On Thu, 12/07 13:10, Michal Privoznik wrote:
> Dear list,
> I've encountered the following problem. I have two disks:
>   /var/lib/libvirt/images/fedora.qcow2  (which contains OS)
>   /dev/sde (iSCSI dummy disk just for testing)
> Now, when I configure QEMU to start with both of them, QEMU/Seabios
> tries to boot from /dev/sde which fails obviously. Even setting
> bootorder does not help. Here's my command line:
>   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?


reply via email to

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