Hi Nicholas,

I am trying to test vhost-scsi with pscsi lio. I am able to create a target and
pass it to QEMU. I don't see any error from tcm_vhost or qemu. But the guest
VM doesn't see any SCSI device.

What am I missing ? Here is how I am using pscsi target.


wwpn="naa.6001405bd4e8476e"
tpgt=/sys/kernel/config/target/vhost/$wwpn/tpgt_0
nexus=$tpgt/nexus
mkdir -p $tpgt
echo -n $wwpn > $nexus

n=0
lun=$tpgt/lun/lun_${n}
data=/sys/kernel/config/target/core/pscsi_0/data_${n}
dsk=/dev/sdf
mkdir -p $lun
mkdir -p $data
echo -n ${dsk} > $data/udev_path
echo "scsi_host_id=1,scsi_channel_id=0,scsi_target_id=2,scsi_lun_id=0" > $data/control
echo -n 1 > $data/enable
ln -s $data $lun

Thanks,
Badari



Reply via email to