jails How to write devfs_ruleset so PCI devices are visible in a jail?

How can I configure PCI to be available in jails?

If I try to execute this inside the jail:
pciconf -lv
then I get this error:
pciconf: /dev/pci: No such file or directory

The default devfs_ruleset for jails is "4" This ruleset hides everything to the jail. (I think this is the reason.)

So, how can I write a devfs_ruleset to unhide PCI devices for the jail? I tried to search for documentation but couldn't find any. Could someone please give me some help?
 
See /etc/defaults/devfs.rules for examples.
If you want to set devfsrules_jail=4 + /dev/pci unhided, put the following to /etc/devfs.rules and use the rule No.10.
Code:
[devfsrules_jailpci=10]
add include $devfsrules_jail
add path 'pci' unhide
 
Back
Top