Junicast
Patron
- Joined
- Mar 6, 2015
- Messages
- 206
Hi,
since I love jails and already love the new iocage I just wanted to share some hints since the UI doesn't really help me.
I expect a new jail to be there with a name and a release set, nothing else.
set jail hostname
enable DHCP
attach console
update jail to latest patch
This is one of THE major improvements since I've been dragging warden jails since FreeNAS 9 or something.
stop jail
start jail
mount zfs volume
Example
list zfs mounts
unmount zfs volume
instead of giving the full fstab path you can also use the index given when using the fstab -l command.
set IPv4 manually
set IPv6 manually (not working)
To me it looks like IPv6 doesn't work at all, even if I assign a static IPv6 address manually within the jail with
I cannot even ping another host in my LAN.
IPv6 autoconf also not working: https://redmine.ixsystems.com/issues/24607
That's it for now. If people like it I will extend this little howto :)[/CMD]
Edit:
After struggling quite some time with IPv6 and 11.2U6 I found out that:
1. IPv6 autoconfig does not work at all
2. IPv6 DHCPv6 does not work at all
3. IPv6 static configuration works but only if you configure IPv4 statically, too
Hopefully 11.3 will deliver some new options when it comes to networking.
since I love jails and already love the new iocage I just wanted to share some hints since the UI doesn't really help me.
I expect a new jail to be there with a name and a release set, nothing else.
set jail hostname
iocage set host_hostname="yourhostname" <<jailname>>
enable DHCP
iocage set vnet=on bpf=yes dhcp=on <<jailname>>
attach console
iocage console <<jailname>>
update jail to latest patch
iocage update <<jailname>>
This is one of THE major improvements since I've been dragging warden jails since FreeNAS 9 or something.
stop jail
iocage stop <<jailname>>
start jail
iocage start <<jailname>>
mount zfs volume
iocage fstab -a <<jailname>> <<path>>
Example
iocage fstab -a myjail "/tank/myfs /mnt/myfs nullfs rw 0 0"
list zfs mounts
iocage fstab -l <<jailname>>
unmount zfs volume
iocage fstab -r <<jailname>> <<path>>
instead of giving the full fstab path you can also use the index given when using the fstab -l command.
set IPv4 manually
iocage set ip4_addr="vnet0|192.168.0.10/24" <<jailname>>
set IPv6 manually (not working)
iocage set ip6_addr="vtnet0|2001:123:456:242::5/64" <<jailname>>
iocage set defaultrouter6="2001:123:456:242::1" <<jailname>>
To me it looks like IPv6 doesn't work at all, even if I assign a static IPv6 address manually within the jail with
ifconfig vnet0 inet6 2001:123:456::1 prefixlen 64
I cannot even ping another host in my LAN.
IPv6 autoconf also not working: https://redmine.ixsystems.com/issues/24607
That's it for now. If people like it I will extend this little howto :)[/CMD]
Edit:
After struggling quite some time with IPv6 and 11.2U6 I found out that:
1. IPv6 autoconfig does not work at all
2. IPv6 DHCPv6 does not work at all
3. IPv6 static configuration works but only if you configure IPv4 statically, too
Hopefully 11.3 will deliver some new options when it comes to networking.
Last edited: