[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] vhost-scsi and pscsi
From: |
Badari |
Subject: |
[Qemu-devel] vhost-scsi and pscsi |
Date: |
Thu, 06 Jun 2013 15:53:23 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] vhost-scsi and pscsi,
Badari <=