dave@oneinterface.net
2005-Nov-02 17:05 UTC
[Xen-users] Xen driver domain...character device?
Greetings, Does anyone know if it is possible to give a guest domain access to character device hardware such as a SCSI tape drive (/dev/st0 | /dev/nst0)? I have recompiled the guest xenU kernel with hardware access and declared the pci SCSI card in the config file directive as follows: pci = [ ''4,3,0'' ] The log file when started reports: [2005-11-01 17:24:57 xend] DEBUG (XendDomainInfo:1178) Creating pci device dom=7 bus=4 dev=3 func=0 _________ Sincerely, David Closson Network Engineer OneInterface.net Network Engineering, Inc. 575 Minnewawa Avenue, Suite 4, Clovis, CA 93612 Office: 559-322-5203 Fax: 559-322-5219 Cell: 559-283-2015 Email: dave@oneinterface.net GnuPG: http://www.oneinterface.net/crypt/dave.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ernst Bachmann
2005-Nov-03 11:05 UTC
Re: [Xen-users] Xen driver domain...character device?
On Wednesday 02 November 2005 18:05, dave@oneinterface.net wrote:> Greetings, > > Does anyone know if it is possible to give a guest domain access to > character device hardware such as a SCSI tape drive (/dev/st0 | /dev/nst0)? > I have recompiled the guest xenU kernel with hardware access and declared > the pci SCSI card in the config file directive as follows: > pci = [ ''4,3,0'' ] > > The log file when started reports: > [2005-11-01 17:24:57 xend] DEBUG (XendDomainInfo:1178) Creating pci device > dom=7 bus=4 dev=3 func=0You always give an entire PCI device to a domU, whatever device nodes the domU driver creates for it is completely beyond the control of xen. My quess would be you''re missing the SCSI adaptor driver in domU, or don''t have scsi-tape support in it if it isn''t working. just recheck your domU kernel config, activate what you need and recompile. if the tape device works as expected in dom0 (if you don''t hide the pci device from it), you might try using the dom0 kernel for your domU as well. (Don''t forget to install the right modules into the domU FS) /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2005-Nov-03 11:33 UTC
Re: [Xen-users] Xen driver domain...character device?
> Does anyone know if it is possible to give a guest domain access to > character device hardware such as a SCSI tape drive (/dev/st0 | /dev/nst0)? > I have recompiled the guest xenU kernel with hardware access and declared > the pci SCSI card in the config file directive as follows: > pci = [ ''4,3,0'' ]Did you also ignore the device in dom0 (e.g. by using "physdev_dom0_hide=" on the Xen command line or by not compiling the driver into dom0)? Don''t want the two domains to fight... Try running lspci in the guest and see what it does... Cheers, Mark> The log file when started reports: > [2005-11-01 17:24:57 xend] DEBUG (XendDomainInfo:1178) Creating pci device > dom=7 bus=4 dev=3 func=0 > > _________ > Sincerely, > > David Closson > Network Engineer > > OneInterface.net Network Engineering, Inc. > 575 Minnewawa Avenue, Suite 4, Clovis, CA 93612 > Office: 559-322-5203 Fax: 559-322-5219 Cell: 559-283-2015 > > Email: dave@oneinterface.net > GnuPG: http://www.oneinterface.net/crypt/dave.asc > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2005-Nov-03 11:37 UTC
Re: [Xen-users] Xen driver domain...character device?
Another point: it doesn''t matter what kind of device (character, block, etc) if you''re exporting at the PCI level. In contrast at the virtual device level there''s not a standard way of exporting a device, although I understand there are some standard means of exporting a tape backup device to the network. If it performs OK, you may find it simpler to do this rather than PCI device assignment. Cheers, Mark On Wednesday 02 November 2005 17:05, dave@oneinterface.net wrote:> Greetings, > > Does anyone know if it is possible to give a guest domain access to > character device hardware such as a SCSI tape drive (/dev/st0 | /dev/nst0)? > I have recompiled the guest xenU kernel with hardware access and declared > the pci SCSI card in the config file directive as follows: > pci = [ ''4,3,0'' ] > > The log file when started reports: > [2005-11-01 17:24:57 xend] DEBUG (XendDomainInfo:1178) Creating pci device > dom=7 bus=4 dev=3 func=0 > > _________ > Sincerely, > > David Closson > Network Engineer > > OneInterface.net Network Engineering, Inc. > 575 Minnewawa Avenue, Suite 4, Clovis, CA 93612 > Office: 559-322-5203 Fax: 559-322-5219 Cell: 559-283-2015 > > Email: dave@oneinterface.net > GnuPG: http://www.oneinterface.net/crypt/dave.asc > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users