rc.conf jails not working in 10.0
Fbsd8
fbsd8 at a1poweruser.com
Sun May 4 00:35:45 UTC 2014
Fbsd8 wrote:
> My 9.2 rc.conf has a single jail defined.
> Copied those jail statements over to 10.0 rc.conf.
> The "service jail start jailname" commands issues some warning and the
> usage of the jail command. This used to work in 9.2 but don't work in
> 10.0. I thought 10.0 was suppose to work using the rc.conf or jail.conf
> method. Has rc.conf jail support been removed in 10.0?
>
>
Seems the 10.0 on the fly conversion of rc.jail statements to jail.conf
format has a bug. The fstab statement in my rc.conf file is not being
converted to the jail.conf format. This is show stopper forcing me to
manually convert to jail.conf immediately or restore the 9.2 system back
to this disk.
>cat /etc/rc.conf
jail_enable="YES" # legacy rc.d method
jail_list="legacy_rc_dir0"
jail_legacy_rc_dir0_hostname="legacy_rc_dir0"
jail_legacy_rc_dir0_rootdir="/usr/jail/legacy_rc_dir0"
jail_legacy_rc_dir0_fstab="/usr/local/etc/jail.rcconf.fstab/legacy_rc_dir0"
jail_legacy_rc_dir0_ip="10.10.0.50"
jail_legacy_rc_dir0_interface="xl0"
jail_legacy_rc_dir0_flags="-n legacy_rc_dir0 -l -U root"
jail_legacy_rc_dir0_mount_enable="YES"
jail_legacy_rc_dir0_devfs_enable="YES"
jail_legacy_rc_dir0_exec_start="/bin/sh /etc/rc"
jail_legacy_rc_dir0_exec_stop="/bin/sh /etc/rc.shutdown"
/var/run >ls
jail.legacy_rc_dir0.conf
/var/run >cat jail.legacy_rc_dir0.conf
# Generated by rc.d/jail at 2014-05-03 16:59:32
legacy_rc_dir0 {
host.hostname = "legacy_rc_dir0";
path = "/usr/jail/legacy_rc_dir0";
interface = "xl0";
ip4.addr += "xl0|10.10.0.50/32";
exec.clean;
exec.system_user = "root";
exec.jail_user = "root";
exec.start += "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_legacy_rc_dir0_console.log";
mount.devfs;
allow.mount;
allow.set_hostname = 0;
allow.sysvipc = 0;
}
More information about the freebsd-questions
mailing list