From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8gc5-0003Pw-6s for qemu-devel@nongnu.org; Mon, 03 Sep 2012 20:03:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8gc3-0007ys-U0 for qemu-devel@nongnu.org; Mon, 03 Sep 2012 20:03:29 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:43525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8gc3-0007yn-NO for qemu-devel@nongnu.org; Mon, 03 Sep 2012 20:03:27 -0400 Received: by dadn15 with SMTP id n15so3827267dad.4 for ; Mon, 03 Sep 2012 17:03:26 -0700 (PDT) Message-ID: <5045454B.1030405@gmail.com> Date: Tue, 04 Sep 2012 08:03:23 +0800 From: ching MIME-Version: 1.0 References: <503F4F2B.905@gmail.com> <5043DC79.8040408@gmail.com> <50446931.1000509@redhat.com> In-Reply-To: <50446931.1000509@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] boot device order has no effect for virtio-scsi devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org 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? >> >> >> hvm >> >> >> >> >> >> >> 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=3D'0', the scsi harddisk) >> >> is it a known problem? > Use the bootindex property of instead. > > Paolo > > i add boot order and the virtual machine still boot from hard disk instea= d of cd-rom =
=
here is the captured command line generated by libvirt (uuid and mac addr= ess are masked) /usr/bin/qemu-system-x86_64 -enable-kvm -name Linux -S -M pc-1.1 -cpu San= dyBridge,+osxsave,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes6= 4,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -enable-kvm -m 1024 -smp 2,sockets=3D2,= cores=3D1,threads=3D1 -uuid xxxx -no-user-config -nodefaults -chardev soc= ket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/Linux.monitor,server,no= wait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Du= tc -no-shutdown -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x= 2 -device virtio-serial-pci,id=3Dvirtio-serial0,bus=3Dpci.0,addr=3D0x4 -d= evice virtio-scsi-pci,id=3Dscsi0,bus=3Dpci.0,addr=3D0x5 -drive file=3D/Li= nux.raw_image,if=3Dnone,id=3Ddrive-scsi0-0-0-0,format=3Draw,cache=3Dunsaf= e,aio=3Dnative -device scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D= 0,drive=3Ddrive-scsi0-0-0-0,id=3Dscsi0-0-0-0,bootindex=3D2 -drive file=3D= /xubuntu-12.04-desktop-amd64.iso,if=3Dnone,id=3Ddrive-scsi0-0-0-1,readonl= y=3Don,format=3Draw,cache=3Dunsafe,aio=3Dnative -device scsi-cd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D1,drive=3Ddrive-scsi0= -0-0-1,id=3Dscsi0-0-0-1,bootindex=3D1 -netdev tap,fd=3D18,id=3Dhostnet0,v= host=3Don,vhostfd=3D19 -device virtio-net-pci,netdev=3Dhostnet0,id=3Dnet0= ,mac=3Dxx:xx:xx:xx:xx:xx,bus=3Dpci.0,addr=3D0x8 -chardev pty,id=3Dcharser= ial0 -device isa-serial,chardev=3Dcharserial0,id=3Dserial0 -chardev spice= vmc,id=3Dcharchannel0,name=3Dvdagent -device virtserialport,bus=3Dvirtio-= serial0.0,nr=3D1,chardev=3Dcharchannel0,id=3Dchannel0,name=3Dcom.redhat.s= pice.0 -spice port=3D5900,addr=3D127.0.0.1,disable-ticketing,image-compre= ssion=3Doff,jpeg-wan-compression=3Dnever,zlib-glz-wan-compression=3Dnever= ,playback-compression=3Doff,streaming-video=3Doff -vga qxl -global qxl-vg= a.vram_size=3D67108864 -device intel-hda,id=3Dsound0,bus=3Dpci.0,addr=3D0= x3 -device hda-micro,id=3Dsound0-codec0,bus=3Dsound0.0,cad=3D0 -chardev s= picevmc,id=3Dcharredir0,name=3Dusbredir -device usb-redir,chardev=3Dcharr= edir0,id=3Dredir0 -device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,ad= dr=3D0x6