On 08/30/2012 07:31 PM, ching wrote: > My host is Gentoo x64, kernel 3.5.2, qemu-kvm 1.1.1-r1, libvirt 0.9.13, > seabios 1.7.0 > > 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? > > my libvirt config: > > <domain type='kvm'> > <name>Linux</name> > <uuid>xxx</uuid> > <memory unit='KiB'>1048576</memory> > <currentMemory unit='KiB'>1048576</currentMemory> > <vcpu placement='static'>2</vcpu> > <os> > <type arch='x86_64' machine='pc-1.1'>hvm</type> > <boot dev='cdrom'/> > <boot dev='hd'/> > <bootmenu enable='no'/> > </os> > <features> > <acpi/> > <apic/> > <hap/> > </features> > <cpu mode='host-model'> > <model fallback='allow'/> > </cpu> > <clock offset='utc'/> > <on_poweroff>destroy</on_poweroff> > <on_reboot>restart</on_reboot> > <on_crash>restart</on_crash> > <devices> > <emulator>/usr/bin/qemu-kvm</emulator> > <disk type='file' device='disk'> > <driver name='qemu' type='raw' cache='unsafe' io='native'/> > <source file='/Linux.raw_image'/> > <target dev='sda' bus='scsi'/> > <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/> > <address type='drive' controller='0' bus='0' target='0' unit='1'/> > </disk> > <controller type='usb' index='0'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x01' > function='0x2'/> > </controller> > <controller type='virtio-serial' index='0'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x04' > function='0x0'/> > </controller> > <controller type='scsi' index='0' model='virtio-scsi'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x05' > function='0x0'/> > </controller> > <interface type='direct'> > <mac address='xx'/> > <source dev='eth0' mode='bridge'/> > <model type='virtio'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x08' > function='0x0'/> > </interface> > <serial type='pty'> > <target port='0'/> > </serial> > <console type='pty'> > <target type='serial' port='0'/> > </console> > <channel type='spicevmc'> > <target type='virtio' name='com.redhat.spice.0'/> > <address type='virtio-serial' controller='0' bus='0' port='1'/> > </channel> > <input type='mouse' bus='ps2'/> > <graphics type='spice' autoport='yes'> > <image compression='off'/> > <jpeg compression='never'/> > <zlib compression='never'/> > <playback compression='off'/> > <streaming mode='off'/> > </graphics> > <sound model='ich6'> > <codec type='micro'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x03' > function='0x0'/> > </sound> > <video> > <model type='qxl' vram='65536' heads='1'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x02' > function='0x0'/> > </video> > <redirdev bus='usb' type='spicevmc'> > </redirdev> > <memballoon model='virtio'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x06' > function='0x0'/> > </memballoon> > </devices> > </domain> > 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?