qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] boot device order has no effect for virtio-scsi devices


From: ching
Subject: Re: [Qemu-devel] boot device order has no effect for virtio-scsi devices
Date: Tue, 04 Sep 2012 08:03:23 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120729 Thunderbird/10.0.6

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 via email to

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