TrueNAS Core 12.0-U2 jail devfs_ruleset 1000

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
Hi All,

In the GUI and from the command line I am trying to get Zoneminder to use devfs_ruleset 4 and it keeps defaulting to 1000.

Is there a way to fix this?

Thanks,
Joe


Code:
root@freenas[~]# iocage list
+------+-----------------+-------+--------------+------------+
| JID  |      NAME       | STATE |   RELEASE    |    IP4     |
+======+=================+=======+==============+============+
| None | bacula-server   | down  | 11.2-RELEASE | DHCP       |
+------+-----------------+-------+--------------+------------+
| None | speedtestserver | down  | 11.3-RELEASE | 172.16.0.2 |
+------+-----------------+-------+--------------+------------+
| 4    | zm              | up    | 12.1-RELEASE | DHCP       |
+------+-----------------+-------+--------------+------------+
root@freenas[~]# iocage stop zm
* Stopping zm
  + Executing prestop OK
  + Stopping services OK
  + Tearing down VNET OK
  + Removing devfs_ruleset: 1000 OK
  + Removing jail process OK
  + Executing poststop OK
root@freenas[~]# iocage set devfs_ruleset=4 zm
devfs_ruleset: 4 -> 4
root@freenas[~]# iocage start zm
No default gateway found for ipv6.
* Starting zm
  + Started OK
  + Using devfs_ruleset: 1000 (iocage generated default)
  + Configuring VNET OK
  + Using IP options: vnet
  + Starting services OK
  + Executing poststart OK
  + DHCP Address: 10.1.1.209/24
root@freenas[~]#
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
This is a dynamically created ruleset that should be identical with the one with number 4, IIRC. If you want to define your own, don't modify ruleset 4 but define completely new one.
 

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
Hi Patrick,

Aafter I define a new one in /etc/devfs.rules do I have a service I need to restart before starting up my jail?

service devfs restart

even when I change the ruleset to 5 with the jail stopped and double check the GIU to see the devrules is not 5 it sitll loads 1000, not sure I can define a 1000 rule and have it do what I want.

Thanks,
Joe
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No, you don't. You have to restart your jail, of course.
 

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
when I try to use devfs_ruleset 5 there is something wrong where the jail does not get a dhcp, so I went back to ruleset 4 and now it starts. It seems that there are now bugs in the devfs_ruleset code for iocage jails. FWIW this was a fresh install of 12.0-U2 and a fresh plugin for Zoneminder.

root@freenas[/etc]# iocage start zm
No default gateway found for ipv6.
* Starting zm
+ Started OK
+ Using devfs_ruleset: 1000 (cloned from devfs_ruleset 5)
+ Configuring VNET OK
+ Using IP options: vnet
+ Starting services OK
+ Executing poststart OK
+ Acquiring DHCP address: FAILED, address received: 0.0.0.0/8

Stopped zm due to DHCP failure
root@freenas[/etc]#
 
Top