I'm trying to start jail in FreeBSD 9
configs:
etc/rc.conf:
#jails:
jail_enable="YES"
jail_interface="re0"
jail_devfs_enable="YES"
jail_procfs_enable="YES"
jail_set_hostname_allow="YES"
jail_list="test"
ifconfig_em0_alias0="inet 192.168.9.254 netmask 255.255.255.255"
jail_test_rootdir="/usr/home/jails/test.local"
jail_test_hostname="test.local"
jail_test_ip="192.168.9.254"
jail_test_interface="re0"
jail_test_devfs_enable="YES"
jail_test_procfs_enable="YES"
jail_test_exec_start="/bin/sh /etc/rc"
jail_test_exec_stop="/bin/sh /etc/rc.shutdown"
jail_test_flags="-l -U root"
After this I'm trying to start it:
mybsd#jail start
or mybsd#jail start test But both commands return such error:
jail: no -c or -m, so this must be an old-style command.
But it doesn't look like one.
Please, advise how to start jail in "new-style" command?
Thanks a lot!