hi all.. Its been a LONG time since I‘ve used FreeBSD — probably 10+ years I’d guess.. Anyway, I’m back and playing with jails .. when I follow the thick jail example in the FreeBSD docs, and try to start it I get the following :
I'm sure it's something I'm doing -- something probably rather obvious...
Here is my /etc/jail.conf.d/mysql file :
My /etc/jail.conf is empty
my /etc/rc.conf contains :
my /usr/local/jails/containers/mysql looks like :
Code:
root@homelab:/etc/jail.conf.d # service jail start mysql
Starting jails: cannot start jail "mysql":
jail: "mysql" not found
I'm sure it's something I'm doing -- something probably rather obvious...
Here is my /etc/jail.conf.d/mysql file :
Code:
mysql {
# STARTUP/LOGGING
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_console_${name}.log";
# PERMISSIONS
allow.raw_sockets;
exec.clean;
mount.devfs;
# HOSTNAME/PATH
host.hostname = "${name}";
path = "/usr/local/jails/containers/mysql";
# NETWORK
ip4.addr = 192.168.1.252;
interface = igb0;
}
My /etc/jail.conf is empty
my /etc/rc.conf contains :
Code:
clear_tmp_enable="YES"
hostname="homelab"
# set a fixed IP..
#ifconfig_igb0="DHCP"
ifconfig_igb0="inet 192.168.1.210 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
sshd_enable="YES"
ntpd_enable="YES"
ntp_sync_on_start="YES"
ntpdate_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
jail_enable="YES"
jail_parallel_start="YES"
jail_list="mysql"
my /usr/local/jails/containers/mysql looks like :
Code:
root@homelab:/etc/jail.conf.d # ls -la /usr/local/jails/containers/mysql/
total 95
drwxr-xr-x 18 root wheel 22 Oct 23 18:31 .
drwxr-xr-x 4 root wheel 4 Oct 23 18:31 ..
-rw-r--r-- 2 root wheel 1023 Apr 6 2023 .cshrc
-rw-r--r-- 2 root wheel 507 Apr 6 2023 .profile
-r--r--r-- 1 root wheel 6109 Apr 6 2023 COPYRIGHT
drwxr-xr-x 2 root wheel 48 Oct 23 18:34 bin
drwxr-xr-x 15 root wheel 69 Oct 23 18:34 boot
dr-xr-xr-x 2 root wheel 2 Apr 6 2023 dev
drwxr-xr-x 29 root wheel 107 Oct 23 18:34 etc
drwxr-xr-x 5 root wheel 68 Apr 6 2023 lib
drwxr-xr-x 3 root wheel 5 Apr 6 2023 libexec
drwxr-xr-x 2 root wheel 2 Apr 6 2023 media
drwxr-xr-x 2 root wheel 2 Apr 6 2023 mnt
drwxr-xr-x 2 root wheel 2 Apr 6 2023 net
dr-xr-xr-x 2 root wheel 2 Apr 6 2023 proc
drwxr-xr-x 2 root wheel 150 Apr 6 2023 rescue
drwxr-x--- 2 root wheel 7 Apr 6 2023 root
drwxr-xr-x 2 root wheel 151 Apr 6 2023 sbin
lrwxr-xr-x 1 root wheel 11 Apr 6 2023 sys -> usr/src/sys
drwxrwxrwt 2 root wheel 2 Apr 6 2023 tmp
drwxr-xr-x 14 root wheel 14 Apr 6 2023 usr
drwxr-xr-x 24 root wheel 24 Apr 6 2023 var