From: ching <lsching17@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Eric Blake <eblake@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] boot device order has no effect for virtio-scsi devices
Date: Wed, 05 Sep 2012 06:13:22 +0800 [thread overview]
Message-ID: <50467D02.9040200@gmail.com> (raw)
In-Reply-To: <5045EC38.5070306@redhat.com>
On 09/04/2012 07:55 PM, Eric Blake wrote:
> On 09/04/2012 04:53 AM, ching wrote:
>> On 09/04/2012 02:23 PM, Paolo Bonzini wrote:
>>> Il 04/09/2012 02:03, ching ha scritto:
>>>> i add boot order and the virtual machine still boot from hard disk instead of cd-rom
>>>>
>>>> <disk type='file' device='disk'>
>>>> <driver name='qemu' type='raw' cache='unsafe' io='native'/>
>>>> <source file='/Linux.raw_image'/>
>>>> <target dev='sda' bus='scsi'/>
>>>> <boot order='2'/>
>>>> <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>>>> </disk>
>>>> <disk type='file' device='cdrom'>
>>>> <driver name='qemu' type='raw' cache='unsafe' io='native'/>
>>>> <source file='/xubuntu-12.04-desktop-amd64.iso'/>
>>>> <target dev='sdb' bus='scsi'/>
>>>> <readonly/>
>>>> <boot order='1'/>
>>>> <address type='drive' controller='0' bus='0' target='0' unit='1'/>
>>>> </disk>
>>>>
>>>> here is the captured command line generated by libvirt (uuid and mac address are masked)
>>> Ah, ok. libvirt for now supports only booting from LUN 0. You can use
>>> multiple targets instead of multiple units.
>>>
>>> Paolo
>>>
>> it works. thanks a lot.
>> hope that libvirt will document it somewhere
> Please raise this issue on the libvirt lists, then.
>
actually, why is the problem related to libvirt, not qemu, nor seabios?
libvirt has generated the qemu command line with "bootindex" already.
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=2 -drive file=/xubuntu-12.04-desktop-amd64.iso,if=none,id=drive-scsi0-0-0-1,readonly=on,format=raw,cache=unsafe,aio=native -device
scsi-cd,bus=scsi0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi0-0-0-1,id=scsi0-0-0-1,bootindex=1
next prev parent reply other threads:[~2012-09-04 22:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-30 11:31 [Qemu-devel] boot device order has no effect for virtio-scsi devices ching
2012-09-02 22:23 ` ching
2012-09-03 8:24 ` Paolo Bonzini
2012-09-04 0:03 ` ching
2012-09-04 6:23 ` Paolo Bonzini
2012-09-04 10:53 ` ching
2012-09-04 11:55 ` Eric Blake
2012-09-04 22:13 ` ching [this message]
2012-09-05 6:55 ` Paolo Bonzini
2012-09-05 11:34 ` ching
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50467D02.9040200@gmail.com \
--to=lsching17@gmail.com \
--cc=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).