韩诚
2013-Jan-24 09:08 UTC
[libvirt-users] libvirt -- add virtio-scsi disk with scsi-generic
Hi, Paolo, All,
I read "virtio-scsi support proposal
v2"(http://permalink.gmane.org/gmane.comp.emulators.libvirt/50428).
Try to add a virtio-scsi with scsi-generic like this:
<hostdev type='scsi'>
<source>
<adapter name='scsi_host0'/>
<address type='scsi' bus='0' target='0'
unit='0'/>
</source>
<target>
<address type='scsi' controller='0' bus='0'
target='0' unit='2'/>
</target>
</hostdev>
But It turn out to be wrong, showing:
error: Failed to define domain from rhel63ga
error: XML error: unknown host device source address type 'scsi_host'
I'd like to know how shall to add a virtio-scsi disk with scsi-generic
option.
Thanks~
--
Best regards,
Cheng
韩诚
2013-Jan-24 09:09 UTC
[libvirt-users] libvirt -- add virtio-scsi disk with scsi-generic
2013/1/24 ?? <hc0606 at gmail.com>:> Hi, Paolo, All, > > I read "virtio-scsi support proposal > v2"(http://permalink.gmane.org/gmane.comp.emulators.libvirt/50428). > Try to add a virtio-scsi with scsi-generic like this: > > <hostdev type='scsi'> > <source> > <adapter name='scsi_host0'/> > <address type='scsi' bus='0' target='0' unit='0'/> > </source> > <target> > <address type='scsi' controller='0' bus='0' target='0' unit='2'/> > </target> > </hostdev> > > But It turn out to be wrong, showing: > > error: Failed to define domain from rhel63ga > error: XML error: unknown host device source address type 'scsi_host' >Sorry for mistake, "scsi_host" should be "scsi"> > I'd like to know how shall to add a virtio-scsi disk with scsi-generic option. > > Thanks~ > > -- > Best regards, > Cheng-- Best regards, Cheng
Paolo Bonzini
2013-Jan-24 09:17 UTC
[libvirt-users] libvirt -- add virtio-scsi disk with scsi-generic
Il 24/01/2013 10:08, ?? ha scritto:> Hi, Paolo, All, > > I read "virtio-scsi support proposal > v2"(http://permalink.gmane.org/gmane.comp.emulators.libvirt/50428). > Try to add a virtio-scsi with scsi-generic like this: > > <hostdev type='scsi'> > <source> > <adapter name='scsi_host0'/> > <address type='scsi' bus='0' target='0' unit='0'/> > </source> > <target> > <address type='scsi' controller='0' bus='0' target='0' unit='2'/> > </target> > </hostdev> > > But It turn out to be wrong, showing: > > error: Failed to define domain from rhel63ga > error: XML error: unknown host device source address type 'scsi_host' > > > I'd like to know how shall to add a virtio-scsi disk with scsi-generic option.It's not yet supported by libvirt. Paolo