jails mpsutils in a jail

Hello everyone,
some one know if is possible using mpsutils in a jail?

if i try in a jail with release13.2:
Code:
root@services:~ # mpsutil show all
Adapter:
mpsutil: mps_open: No such file or directory
Devices:
mpsutil: mps_open: No such file or directory
Enclosures:
mpsutil: mps_open: No such file or directory
Expanders:
mpsutil: mps_open: No such file or directory

I have to pass some special options to the jail?

Thanks for any help, link or doc.
 
You probably have to allow the jail access to the devices. Jails typically run with a very limited scope (see devfs.rules(5))
thanks for the tips.



for who maybe need this too:
(in the example the jail name is services)

stop your jail
iocage stop services

check your jail devfs_ruleset
iocage get devfs_ruleset services

edit the
vi /conf/base/etc/devfs.rules

add
[devfsrules_jail=0]
add path 'mps*' unhide


on your target jail

iocage set allow_mount=1 services
iocage set allow_mount_devfs=1 services
iocage set allow_mount_procfs=1 services
iocage set devfs_ruleset=0 services
iocage set mount_devfs=1 services
iocage set mount_fdescfs=1 services
iocage set securelevel=0 services


restart your jail and enter the console
iocage start services
iocage console services


ls /dev/mps*

mpsutils show adapter
 
Back
Top