I got a Debian (Devuan) Linux jail up and running on Freenas by following these instructions: https://forums.freebsd.org/threads/setting-up-a-debian-linux-jail-on-freebsd.68434/ (I had to make a few changes in order to make it work on FreeNAS).
So far it seems to work well EXCEPT for one issue: Network access. This issue is not specific to FreeNAS, I get the same problem on a pure FreeBSD-install as well. Other users have reported the same problem, but to my knowledge there hasn't been any solution to this yet. It seems to be an ifconfig / inet / route issue, but everything I've tried have failed.
I'm hoping someone might have some ideas or be able to point me in the right direction on how to configure ifconfig / inet routing.
Trying ifconfig eth0 inet 192.168.1.113 netmask 255.255.255.0 gives the following error:
Added the following to /etc/network/interfaces without any success
Iocage config.json for 'debjail':
And yes, I know Linux can easily run in a Bhyve VM.
So far it seems to work well EXCEPT for one issue: Network access. This issue is not specific to FreeNAS, I get the same problem on a pure FreeBSD-install as well. Other users have reported the same problem, but to my knowledge there hasn't been any solution to this yet. It seems to be an ifconfig / inet / route issue, but everything I've tried have failed.
I'm hoping someone might have some ideas or be able to point me in the right direction on how to configure ifconfig / inet routing.
Trying ifconfig eth0 inet 192.168.1.113 netmask 255.255.255.0 gives the following error:
Added the following to /etc/network/interfaces without any success
Code:
iface eth0 inet static address 192.168.1.113/24 gateway 192.168.1.1
Iocage config.json for 'debjail':
Code:
{ "CONFIG_VERSION": "14.1", "allow_chflags": "0", "allow_mlock": "0", "allow_mount": "1", "allow_mount_devfs": "1", "allow_mount_nullfs": "0", "allow_mount_procfs": "1", "allow_mount_tmpfs": "1", "allow_mount_zfs": "0", "allow_quotas": "0", "allow_raw_sockets": "1", "allow_set_hostname": "1", "allow_socket_af": "0", "allow_sysvipc": "0", "allow_tun": "0", "available": "readonly", "basejail": "no", "boot": "off", "bpf": "no", "children_max": "0", "cloned_release": "EMPTY", "comment": "none", "compression": "lz4", "compressratio": "readonly", "coredumpsize": "off", "count": "1", "cpuset": "off", "cputime": "off", "datasize": "off", "dedup": "off", "defaultrouter": "none", "defaultrouter6": "none", "depends": "none", "devfs_ruleset": "4", "dhcp": "off", "enforce_statfs": "2", "exec_clean": "1", "exec_fib": "0", "exec_jail_user": "root", "exec_poststart": "/usr/bin/true", "exec_poststop": "/usr/bin/true", "exec_prestart": "/usr/bin/true", "exec_prestop": "/usr/bin/true", "exec_start": "/etc/init.d/rc 3", "exec_stop": "/etc/init.d/rc 0", "exec_system_jail_user": "0", "exec_system_user": "root", "exec_timeout": "60", "host_domainname": "none", "host_hostname": "debjail", "host_hostuuid": "debjail", "host_time": "yes", "hostid": "744f9272-1cb5-11e8-919c-6c0b84084db5", "hostid_strict_check": "off", "interfaces": "vnet0:bridge0", "ip4": "new", "ip4_addr": "em0|192.168.1.113/24", "ip4_saddrsel": "1", "ip6": "new", "ip6_addr": "none", "ip6_saddrsel": "1", "jail_zfs": "off", "jail_zfs_dataset": "iocage/jails/debjail/data", "jail_zfs_mountpoint": "none", "last_started": "2019-12-17 06:27:44", "login_flags": "-f root", "mac_prefix": "02ff60", "maxproc": "off", "memorylocked": "off", "memoryuse": "off", "mount_devfs": "1", "mount_fdescfs": "0", "mount_linprocfs": "1", "mount_procfs": "1", "mountpoint": "readonly", "msgqqueued": "off", "msgqsize": "off", "nmsgq": "off", "notes": "none", "nsemop": "off", "nshm": "off", "nthr": "off", "openfiles": "off", "origin": "readonly", "owner": "root", "pcpu": "off", "priority": "99", "pseudoterminals": "off", "quota": "none", "release": "EMPTY", "reservation": "none", "resolver": "/etc/resolv.conf", "rlimits": "off", "securelevel": "2", "shmsize": "off", "stacksize": "off", "stop_timeout": "30", "swapuse": "off", "sync_state": "none", "sync_target": "none", "sync_tgt_zpool": "none", "sysvmsg": "new", "sysvsem": "new", "sysvshm": "new", "template": "no", "type": "jail", "used": "readonly", "vmemoryuse": "off", "vnet": "off", "vnet0_mac": "none", "vnet1_mac": "none", "vnet2_mac": "none", "vnet3_mac": "none", "vnet_default_interface": "auto", "vnet_interfaces": "none", "wallclock": "off" }
And yes, I know Linux can easily run in a Bhyve VM.
Last edited: