[libvirt-users] Oracle RAC in libvirt+KVM environment

Paolo Bonzini pbonzini at redhat.com
Tue Aug 20 10:16:10 UTC 2013


Il 20/08/2013 11:59, Timon Wang ha scritto:
> On Tue, Aug 20, 2013 at 4:33 PM, Paolo Bonzini <pbonzini at redhat.com> wrote:
>> Il 20/08/2013 08:00, Timon Wang ha scritto:
>>>     <disk type='file' device='disk'>
>>>       <driver name='qemu' type='raw' cache='none'/>
>>>       <source file='/home/images/win2008_2_sys'/>
>>>       <target dev='hda' bus='ide'/>
>>>       <boot order='3'/>
>>>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>>>     </disk>
>>>     <disk type='file' device='cdrom'>
>>>       <driver name='qemu' type='raw'/>
>>>       <source file='/home/isos/windows2008_64r2.iso'/>
>>>       <target dev='sdc' bus='ide'/>
>>>       <readonly/>
>>>       <boot order='1'/>
>>>       <address type='drive' controller='0' bus='1' target='0' unit='0'/>
>>>     </disk>
>>>     <disk type='block' device='disk'>
>>
>> I'm not sure this will be enough, but if you want passthrough to the
>> host device you should use device='lun' here.  However, you still would
>> not be able to issue SCSI reservations unless you run QEMU with the
>> CAP_SYS_RAWIO capability (using "<disk ... rawio='yes'>").
>>
> 
> After change the libvirt xml like this:
> <disk type='block' device='lun' rawio='yes'>
>       <driver name='qemu' type='raw' cache='none'/>
>       <source dev='/dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk'/>
>       <target dev='sda' bus='scsi'/>
>       <shareable/>
>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>     </disk>
> I got these errors:
> char device redirected to /dev/pts/1 (label charserial0)
> qemu-system-x86_64: -device
> scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0:
> scsi-block: INQUIRY failed
> qemu-system-x86_64: -device
> scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0:
> Device 'scsi-block' could not be initialized

Can you do

# ls -l /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk
# sg_inq /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk

?

Paolo




More information about the libvirt-users mailing list