tprelog
Patron
- Joined
- Mar 2, 2016
- Messages
- 241
Update: This has now been solved by a quick fix in post #2 and a slightly more advanced (probably better) approach in post #10
Post #2 suggests setting devfs_ruleset=3 which exposes most of the host /dev tree to the jail. This works but more of /dev is exposed than needed.
Post #10 seems to be a better approach by exposing only the cua* devices (how zwave and zigbee USB shows up). This can accomplished with a custom ruleset. Additionally this requires a FreeNAS start-up script to recreate the ruleset each time FreeNAS is (re)booted
Now back to the originally scheduled post:
More problems with iocage after FreeNAS 11.2-BETA3 and my Google-foo continues to fail me.
I've been using an Aeotec Z-Wave USB controller with Home Assistant running in iocage since FreeNAS 11.1. This was still working perfectly in FreeNAS 11.2-BETA3. For as long as I have been using this device it has shown up both on FreeNAS and inside my jail as
I have checked the version of iocage in both 11.2-BETA3 and 11.2-RC2 and it appears to have remained the same so I'm assuming this was a change (or bug) made by FreeNAS
Here is a list of devices that appear from my jail console in FreeNAS 11.2-BETA3
Now after updating to FreeNAS 11.2-RC2 my jail console no longer shows the USB device (among a huge list of other things)
Any direction, links or even the proper search terms for Google to information on how to re-enable my USB device inside the jail would be greatly appreciated.
Post #2 suggests setting devfs_ruleset=3 which exposes most of the host /dev tree to the jail. This works but more of /dev is exposed than needed.
Post #10 seems to be a better approach by exposing only the cua* devices (how zwave and zigbee USB shows up). This can accomplished with a custom ruleset. Additionally this requires a FreeNAS start-up script to recreate the ruleset each time FreeNAS is (re)booted
Now back to the originally scheduled post:
More problems with iocage after FreeNAS 11.2-BETA3 and my Google-foo continues to fail me.
I've been using an Aeotec Z-Wave USB controller with Home Assistant running in iocage since FreeNAS 11.1. This was still working perfectly in FreeNAS 11.2-BETA3. For as long as I have been using this device it has shown up both on FreeNAS and inside my jail as
/dev/cuaU0
I have checked the version of iocage in both 11.2-BETA3 and 11.2-RC2 and it appears to have remained the same so I'm assuming this was a change (or bug) made by FreeNAS
Code:
[troy@vNasB3 ~]$ iocage --version Version 1.0 ALPHA 1
Here is a list of devices that appear from my jail console in FreeNAS 11.2-BETA3
sudo iocage console hass-dev
Code:
root@hass-dev:~ # ls -l /dev total 4 crw-r--r-- 1 root wheel 0x2a Sep 29 12:19 acpi crw-r----- 1 root operator 0x58 Sep 29 12:19 ada0 crw-r----- 1 root operator 0x5a Sep 29 12:19 ada0p1 crw-r----- 1 root operator 0x5b Sep 29 12:19 ada0p2 crw-r----- 1 root operator 0x59 Sep 29 12:22 ada1 crw-r----- 1 root operator 0x64 Sep 29 12:22 ada1p1 crw-r----- 1 root operator 0x69 Sep 29 12:22 ada1p1.eli crw-r----- 1 root operator 0x66 Sep 29 12:22 ada1p2 crw-rw-r-- 1 root operator 0x2c Sep 29 12:19 apm crw-rw---- 1 root operator 0x2b Sep 29 12:19 apmctl crw------- 1 root wheel 0x32 Sep 29 12:19 atkbd0 crw------- 1 root kmem 0xc Sep 29 12:19 audit crw------- 1 root wheel 0xb Sep 29 12:19 auditpipe crw------- 1 root wheel 0x13 Sep 29 12:48 bpf lrwxr-xr-x 1 root wheel 3 Sep 29 12:45 bpf0 -> bpf crw-rw-rw- 1 root wheel 0x35 Sep 29 12:19 bpsm0 dr-xr-xr-x 2 root wheel 512 Sep 29 12:45 cam crw-r----- 1 root operator 0x43 Sep 29 12:19 cd0 crw------- 1 root wheel 0x7 Sep 29 12:45 console crw------- 1 root wheel 0x1f Sep 29 12:19 consolectl crw-r----- 1 root kmem 0x1c Sep 29 12:19 cpuctl0 crw-r----- 1 root kmem 0x1d Sep 29 12:19 cpuctl1 crw-rw-rw- 1 root wheel 0x3a Sep 29 12:19 crypto crw-rw-rw- 1 root wheel 0xd Sep 29 12:19 ctty crw-rw---- 1 uucp dialer 0x7c Sep 29 12:51 cuaU0 crw-rw---- 1 uucp dialer 0x7d Sep 29 12:51 cuaU0.init crw-rw---- 1 uucp dialer 0x7e Sep 29 12:51 cuaU0.lock crw------- 1 root wheel 0x8 Sep 29 12:19 devctl crw------- 1 root wheel 0x9 Sep 29 12:19 devctl2 cr--r--r-- 1 root wheel 0x3f Sep 29 12:19 devstat dr-xr-xr-x 2 root wheel 512 Sep 29 12:45 dtrace dr-xr-xr-x 2 root wheel 512 Sep 29 12:19 fd crw------- 1 root wheel 0x21 Sep 29 12:19 fido crw-rw-rw- 1 root wheel 0xe Sep 29 12:19 full crw-r----- 1 root operator 0x4 Sep 29 12:19 geom.ctl dr-xr-xr-x 2 root wheel 512 Sep 29 12:45 gptid crw------- 1 root wheel 0x1e Sep 29 12:19 io crw------- 1 root wheel 0x22 Sep 29 12:19 iscsi lrwxr-xr-x 1 root wheel 6 Sep 29 12:45 kbd0 -> atkbd0 lrwxr-xr-x 1 root wheel 7 Sep 29 12:45 kbd1 -> kbdmux0 crw------- 1 root wheel 0x24 Sep 29 12:19 kbdmux0 crw------- 1 root wheel 0x28 Sep 29 12:19 klog crw-r----- 1 root kmem 0x27 Sep 29 12:19 kmem dr-xr-xr-x 2 root wheel 512 Sep 29 12:45 led lrwxr-xr-x 1 root wheel 14 Sep 29 12:45 log -> ../var/run/log crw------- 1 root wheel 0xa Sep 29 12:19 mdctl crw-r----- 1 root kmem 0x26 Sep 29 12:19 mem crw-r----- 1 root operator 0x51 Sep 29 12:19 mlx5ctl crw------- 1 root kmem 0x23 Sep 29 12:19 nfslock crw-rw-rw- 1 root wheel 0xf Sep 29 13:00 null crw------- 1 root operator 0x40 Sep 29 12:19 pass0 crw------- 1 root operator 0x41 Sep 29 12:19 pass1 crw------- 1 root operator 0x42 Sep 29 12:19 pass2 crw-r--r-- 1 root wheel 0x11 Sep 29 12:19 pci crw-rw-rw- 1 root wheel 0x34 Sep 29 12:19 psm0 crw-rw-rw- 1 root wheel 0x12 Sep 29 12:19 ptmx dr-xr-xr-x 2 root wheel 512 Sep 29 13:04 pts crw-r--r-- 1 root wheel 0x5 Sep 29 12:19 random crwx------ 1 root wheel 0x50 Sep 29 12:19 rdma_cm dr-xr-xr-x 2 root wheel 512 Sep 29 12:45 reroot crw------- 1 root wheel 0x1b Sep 29 12:19 snp lrwxr-xr-x 1 root wheel 4 Sep 29 12:45 stderr -> fd/2 lrwxr-xr-x 1 root wheel 4 Sep 29 12:45 stdin -> fd/0 lrwxr-xr-x 1 root wheel 4 Sep 29 12:45 stdout -> fd/1 crw------- 1 root wheel 0x20 Sep 29 12:19 sysmouse crw------- 1 root wheel 0x79 Sep 29 12:51 ttyU0 crw------- 1 root wheel 0x7a Sep 29 12:51 ttyU0.init crw------- 1 root wheel 0x7b Sep 29 12:51 ttyU0.lock crw------- 1 root wheel 0x44 Sep 29 12:20 ttyv0 crw------- 1 root wheel 0x45 Sep 29 12:20 ttyv1 crw------- 1 root wheel 0x46 Sep 29 12:20 ttyv2 crw------- 1 root wheel 0x47 Sep 29 12:20 ttyv3 crw------- 1 root wheel 0x48 Sep 29 12:20 ttyv4 crw------- 1 root wheel 0x49 Sep 29 12:20 ttyv5 crw------- 1 root wheel 0x4a Sep 29 12:20 ttyv6 crw------- 1 root wheel 0x4b Sep 29 12:20 ttyv7 crw------- 1 root wheel 0x4c Sep 29 12:19 ttyv8 crw------- 1 root wheel 0x4d Sep 29 12:19 ttyv9 crw------- 1 root wheel 0x4e Sep 29 12:19 ttyva crw------- 1 root wheel 0x4f Sep 29 12:19 ttyvb crw------- 1 root wheel 0x36 Sep 29 12:19 ufssuspend lrwxr-xr-x 1 root wheel 9 Sep 29 12:45 ugen0.1 -> usb/0.1.0 lrwxr-xr-x 1 root wheel 9 Sep 29 12:51 ugen0.2 -> usb/0.2.0 lrwxr-xr-x 1 root wheel 9 Sep 29 12:45 ugen1.1 -> usb/1.1.0 lrwxr-xr-x 1 root wheel 6 Sep 29 12:45 urandom -> random dr-xr-xr-x 2 root wheel 512 Sep 29 12:45 usb crw-r--r-- 1 root operator 0x3b Sep 29 12:19 usbctl crw------- 1 root operator 0x3c Sep 29 12:19 xpt0 crw-rw-rw- 1 root wheel 0x10 Sep 29 12:19 zero crw-rw-rw- 1 root operator 0x37 Sep 29 12:19 zfs
Now after updating to FreeNAS 11.2-RC2 my jail console no longer shows the USB device (among a huge list of other things)
sudo iocage console hass-dev
Code:
root@hass-dev:~ # ls -l /dev total 1 crw------- 1 root wheel 0x13 Nov 16 17:21 bpf lrwxr-xr-x 1 root wheel 3 Sep 29 13:22 bpf0 -> bpf crw-rw-rw- 1 root wheel 0x3a Nov 16 17:20 crypto dr-xr-xr-x 2 root wheel 512 Nov 16 17:20 fd crw-rw-rw- 1 root wheel 0xf Nov 16 17:21 null crw-rw-rw- 1 root wheel 0x12 Nov 16 17:20 ptmx dr-xr-xr-x 2 root wheel 512 Nov 16 17:21 pts crw-r--r-- 1 root wheel 0x8 Sep 29 13:22 random lrwxr-xr-x 1 root wheel 4 Sep 29 13:22 stderr -> fd/2 lrwxr-xr-x 1 root wheel 4 Sep 29 13:22 stdin -> fd/0 lrwxr-xr-x 1 root wheel 4 Sep 29 13:22 stdout -> fd/1 lrwxr-xr-x 1 root wheel 6 Sep 29 13:22 urandom -> random crw-rw-rw- 1 root wheel 0x10 Sep 29 13:22 zero crw-rw-rw- 1 root operator 0x37 Nov 16 17:20 zfs
Any direction, links or even the proper search terms for Google to information on how to re-enable my USB device inside the jail would be greatly appreciated.
Last edited: