jails 14.2 Classic Jail Fails to Start

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:
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;
   }
/etc/rc.conf, has the jail enable and the named jail:
Code:
#
# Jails
#
jail_enable="YES"
jail_list="mysql"
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:
Code:
/var/log/jail/mysql.log: jail: "mysql: exec /bin/sh: Exec format error"
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
 
I tried the same thing and it worked just fine. Make sure you downloaded base.txz for the *same* architecture as the host!
 
Make sure you downloaded base.txz for the *same* architecture as the host!
That's what I was thinking too. You may have downloaded arm64 instead of amd64 files? Mistake is easy to make because the architecture names are quite similar.
 
Back
Top