qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: ching <lsching17@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] boot device order has no effect for virtio-scsi devices
Date: Tue, 04 Sep 2012 08:03:23 +0800	[thread overview]
Message-ID: <5045454B.1030405@gmail.com> (raw)
In-Reply-To: <50446931.1000509@redhat.com>

On 09/03/2012 04:24 PM, Paolo Bonzini wrote:
> Il 03/09/2012 00:23, ching ha scritto:
>> have anyone tested the boot order of virtio-scsi devices?
>>
>> <os>
>>     <type arch='x86_64' machine='pc-1.1'>hvm</type>
>>     <boot dev='cdrom'/>
>>     <boot dev='hd'/>
>>     <bootmenu enable='no'/>
>>   </os>
>>
>>
>> i try to set the boot order with scsi cd-rom first, then scsi harddisk
>>
>> but the virtual machine will always boot with first scsi device only (unit='0', the scsi harddisk)
>>
>> is it a known problem?
> Use the bootindex property of <disk> instead.
>
> Paolo
>
>

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)

/usr/bin/qemu-system-x86_64 -enable-kvm -name Linux -S -M pc-1.1 -cpu SandyBridge,+osxsave,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -enable-kvm -m 1024 -smp 2,sockets=2,cores=1,threads=1 -uuid xxxx -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Linux.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x5 -drive file=/Linux.raw_image,if=none,id=drive-scsi0-0-0-0,format=raw,cache=unsafe,aio=native -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 -netdev tap,fd=18,id=hostnet0,vhost=on,vhostfd=19 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=xx:xx:xx:xx:xx:xx,bus=pci.0,addr=0x8 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -spice port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,jpeg-wan-compression=never,zlib-glz-wan-compression=never,playback-compression=off,streaming-video=off -vga qxl -global qxl-vga.vram_size=67108864 -device intel-hda,id=sound0,bus=pci.0,addr=0x3 -device hda-micro,id=sound0-codec0,bus=sound0.0,cad=0 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6

  reply	other threads:[~2012-09-04  0:03 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 [this message]
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
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=5045454B.1030405@gmail.com \
    --to=lsching17@gmail.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).