Im trying to learn jails atmand came across behaviour i dont know how to fix:
im running a standart freebsd 13.3 install and am trying to bootstrap pkg on a test-jail.
however whenever i run
that the address resolution failed.
i then tried pinging a few sites from within the jail wich failed.
i do have the /etc/resolv.conf file.
ive looked at bsdconfig trying to configure the network in the jail but dhcp wont allow being enabled (it does however recognize the ethernet controller).
lastly. the host needed a kernel module for the network controller as it is too new to be in the main freebsd kernel
here is the configuration of my jail:
im running a standart freebsd 13.3 install and am trying to bootstrap pkg on a test-jail.
however whenever i run
doas jexec -l testjail pkg
and confirm it too bootstrap it only answers,that the address resolution failed.
i then tried pinging a few sites from within the jail wich failed.
i do have the /etc/resolv.conf file.
ive looked at bsdconfig trying to configure the network in the jail but dhcp wont allow being enabled (it does however recognize the ethernet controller).
lastly. the host needed a kernel module for the network controller as it is too new to be in the main freebsd kernel
here is the configuration of my jail:
Code:
testjail {
#boot
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_console_${name}.log";
#permissions
exec.clean;
mount.devfs;
allow.raw_sockets;
#paths
host.hostname = "${name}";
path = "/jails/containers/${name}";
#network
interface = re0;
ip4.addr = 172.16.4.2;
}