wiki-how.md
... ...
@@ -48,4 +48,44 @@ openssl x509 -in /tmp/tmp.ca.crt -text | grep Issuer
48 48
```
49 49
sudo cp /tmp/tmp.ca.crt /etc/pki/ca-trust/source/anchors/
50 50
sudo update-ca-trust
51
+```
52
+
53
+FreeBSD iocage
54
+--------------
55
+
56
+```
57
+iocage list
58
+iocage fetch
59
+iocage create -r LATEST -n [JAIL]
60
+```
61
+```
62
+cat /mnt/itwaswritten/iocage/jails/registry/config.json
63
+{
64
+ "allow_mount_devfs": 0,
65
+ "boot": 1,
66
+ "bpf": 1,
67
+ "cloned_release": "13.1-RELEASE",
68
+ "defaultrouter": "172.16.87.1",
69
+ "devfs_ruleset": "4",
70
+ "dhcp": 0,
71
+ "host_hostname": "registry",
72
+ "host_hostuuid": "registry",
73
+ "ip4_addr": "vnet0|172.16.87.9/24",
74
+ "ip6": "inherit",
75
+ "jail_zfs_dataset": "iocage/jails/registry/data",
76
+ "last_started": "2024-07-16 08:42:25",
77
+ "release": "13.1-RELEASE-p9",
78
+ "vnet": 1,
79
+ "vnet0_mac": "3eecef7c9da1 3eecef7c9da2",
80
+ "vnet_default_interface": "mlxen0"
81
+}
82
+```
83
+
84
+Force iocage to regenerate the MAC and HW address (e.g.: after cloning a jail). This will cause the MAC and HW addresses to be regenerated when the jail is next started.
85
+```
86
+iocage set vnet0_mac=none registry
87
+```
88
+
89
+```
90
+iocage start registry
51 91
```
... ...
\ No newline at end of file