Hi,
Just installed 14.2 on a spare i3 machine, to test classic jail setup. Have run mysql server in a jail under 12.4, with no real issues, but this won't
start. The earlier setup was via the more lightweight bsdinstall process.
A minimalist setup as per Handbook 17.4.1, with the jail.conf file on the main host at /etc/jail.conf:
/etc/rc.conf, has the jail enable and the named jail:
Downloaded the 14.2-RELEASE-base.txz, and unpacked into /jail/mysql, Not sure
if the hostname, interface and ip address need to be defined there as well,
but did that anyway.
service jail start mysql, fails with the following:
I must be missing something here, perhaps need to run bsdinstall in the
jail directory ?, but info not clear on that.
Any ideas / pointers appreciated.
Thanks, Chris
Just installed 14.2 on a spare i3 machine, to test classic jail setup. Have run mysql server in a jail under 12.4, with no real issues, but this won't
start. The earlier setup was via the more lightweight bsdinstall process.
A minimalist setup as per Handbook 17.4.1, with the jail.conf file on the main host at /etc/jail.conf:
Code:
mysql {
path = "/jail/mysql";
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail/mysql.log";
allow.raw_sockets;
exec.clean;
mount.devfs;
host.hostname = "mysql";
interface = "igb1";
ip4.addr = 192.9.200.32;
}
Code:
#
# Jails
#
jail_enable="YES"
jail_list="mysql"
if the hostname, interface and ip address need to be defined there as well,
but did that anyway.
service jail start mysql, fails with the following:
Code:
/var/log/jail/mysql.log: jail: "mysql: exec /bin/sh: Exec format error"
jail directory ?, but info not clear on that.
Any ideas / pointers appreciated.
Thanks, Chris