I'm trying to set[]up jails according to the manual. I created the jail and filled it with system binaries.
Then I sourced the configuration:
Why doesn't the jail start? How can one get more verbose error output?
Code:
[root@freegtw]# jls
JID IP Address Hostname Path
1 10.0.10.20 bingo /usr/jail/bingo
Code:
[root@freegtw]# cat /usr/local/etc/jail.rcconf/bingo
export jail_bingo_hostname="bingo"
export jail_bingo_rootdir="/usr/jail/bingo"
export jail_bingo_fstab="/usr/local/etc/jail.rcconf.fstab/bingo"
export jail_bingo_ip="10.0.10.20"
export jail_bingo_interface="em0"
export jail_bingo_mount_enable="YES"
export jail_bingo_devfs_enable="YES"
export jail_bingo_flags="-n bingo -l -U root"
export jail_bingo_exec_start="/bin/sh /etc/rc"
export jail_bingo_exec_stop="/bin/sh /etc/rc.shutdown"
Code:
[root@freegtw]# cat /usr/local/etc/jail.rcconf.fstab/bingo
/usr/jail/sharedfs /usr/jail/bingo/sharedfs nullfs ro 0 0
Then I sourced the configuration:
[root@freegtw]# . /usr/local/etc/jail.rcconf/bingo and tried to start the jail, but it failed.
Code:
[root@freegtw]# /etc/rc.d/jail start bingo
Configuring jails:.
Starting jails: cannot start jail "bingo":
.