<font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">i'm trying to configure a host SCSI
device (tape drive) so that it is available in a KVM guest VM, but am receiving
an error when attempting to attach the device.  My guest xml has the
following scsi controller defined:</font>
<br>
<br><font size=2 face="sans-serif"><controller type='scsi' index='0'
model='virtio-scsi'></font>
<br><font size=2 face="sans-serif">    <alias name='scsi0'/></font>
<br><font size=2 face="sans-serif">    <address type='pci'
domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></font>
<br><font size=2 face="sans-serif"></controller></font>
<br>
<br><font size=2 face="sans-serif">I created tapedrive.xml with following
contents:</font>
<br>
<br><font size=2 face="sans-serif"><disk type='block' device='lun' sgio='unfiltered'></font>
<br><font size=2 face="sans-serif">    <driver name='qemu'
type='raw' cache='none'/></font>
<br><font size=2 face="sans-serif">    <source dev='/dev/st0'/></font>
<br><font size=2 face="sans-serif">    <target dev='st0' bus='scsi'/></font>
<br><font size=2 face="sans-serif">    <address type='drive'
controller='0' bus='0' target='0' unit='0'/></font>
<br><font size=2 face="sans-serif"></disk></font>
<br>
<br><font size=2 face="sans-serif">I then attempt to attach using following
command, and receive this error:</font>
<br>
<br><font size=2 face="sans-serif"># virsh attach-device instance-0000002d
tapedrive.xml --config</font>
<br><font size=2 face="sans-serif">error: Failed to attach device from
tapedrive.xml</font>
<br><font size=2 face="sans-serif">error: internal error: Invalid harddisk
device name: st0</font>
<br>
<br><font size=2 face="sans-serif">Does anyone know cause of the error?
 In <address> section of tape drive definition I am using type='drive',
I tried type='tape' also but same error. is there a different property
value I should use here, or general advice for attaching tape drive to
KVM guest?  Thanks, Jake</font>
<br>