This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-users] how to get a scsi tape device to work with xen 3.3.1

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] how to get a scsi tape device to work with xen 3.3.1
From: Sabuj Pattanayek <sabujp@xxxxxxxxx>
Date: Wed, 11 Feb 2009 12:18:28 -0600
Delivery-date: Wed, 11 Feb 2009 10:19:09 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=VPpk1UWGB4LbYJAjhZcSxgTIzkm6lf04aupxDZdd8EM=; b=A56AEfMtyUOKa005kWZqQPg/jEzQ7ypQUkKzUfoSxrQxKBRPvBY63DyHt6cB5dySel 4IRMi+h60/ZLiNJB2Vx7CnbENWsmvcXSO6KnhRhJO73mo8eHfcZqJTZSHEVCWtGsduCw 7uoNqsAGwsvo+DH0AeaOBc4ThC4rTAN96ayY0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=YGBHPYTC8fWFB4VciZknFXhYmit3imY2CK44XTy6223BB6Lca4Ptx/sgk2gnS23PN1 E0Ou2T7uS5y5cePsbttAW/rq/xon1T8XDT32lPIC6t0n4WRhL6y3a9kqBZpnVD9ZOLpZ Ngt/t56UMHYdCXEAukRQmKs2saRR6Yl3cx+Ug=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

I'm using Centos 5.2 i386 and have installed xen 3.3.1 from the
repository mentioned here:


I'm trying to get tape devices on the dom0 (virt4) to work on the domU


[root@virt4 ~]# rpm -qa | grep xen

[root@virt4 ~]# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1507     4     r-----    189.9
seabass                                      2   512     2     -b----     27.4

[root@virt4 ~]# lsscsi
[0:0:3:0]    tape    IBM      ULTRIUM-TD3      57F7  /dev/st0
[0:0:4:0]    tape    HP       C1537A           HP02  /dev/st1

[root@virt4 ~]# xm scsi-attach seabass 0:0:3:0 0:0:3:0
[root@virt4 ~]# xm scsi-list seabass
Idx BE  state  phy-hctl   phy   vir-hctl   devstate
0   0   1      0:0:3:0    st0   0:0:3:0    None

[root@seabass ~]# modprobe st


SCSI subsystem initialized
st: Version 20050830, fixed bufsize 32768, s/g segs 256

[root@seabass ~]# ls -l /dev/nst0
ls: /dev/nst0: No such file or directory
[root@seabass ~]# ls -l /dev/st0
ls: /dev/st0: No such file or directory
[root@seabass ~]# lsscsi
[root@seabass ~]# cat /proc/scsi/scsi

[root@virt4 ~]# xm scsi-detach seabass 0:0:3:0
Error: Driver status is not connected
Usage: xm scsi-detach <Domain> <VirtDevice>


Ok so maybe I need to try to get the PCI scsi card attached to the domU first?


[root@virt4 ~]# lspci | grep -i scsi
01:01.0 SCSI storage controller: Adaptec AIC-7892A U160/m (rev 02)

[root@virt4 ~]# xm pci-attach seabass 01:01.0
Error: Device 0 not connected
Usage: xm pci-attach <Domain> <domain:bus:slot.func> [virtual slot]

Insert a new pass-through pci device.

>From /var/log/xen/xend.log:

[2009-02-11 12:11:24 5643] DEBUG (XendDomainInfo:688)
XendDomainInfo.pci_device_configure: ['pci', ['dev', ['domain',
'0x0'], ['bus', '0x01'], ['slot', '0x01'], ['func', '0x0'], ['vslt',
'0x0']], ['state', 'Initialising']]

[root@virt4 ~]# xm pci-list seabass
VSlt domain   bus   slot   func
0x0    0x0  0x01   0x01    0x0

[root@seabass ~]# lspci

Any ideas on how to get this to work?

Sabuj Pattanayek

Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>