Troubleshooting jail startup problem

Mike Jakubik mike.jakubik at intertainservices.com
Mon Apr 16 18:54:55 UTC 2012


Hello,

I recently setup a new server with 9-STABLE (freshly built today), but i
am having problem setting up jails on this system. I have previously
setup jails on version 8 systems without any issue.

I installed a jail using the method described in the handbook, but when
i try to start it using /etc/rc.d/jail start, it fails.

---
# /etc/rc.d/jail start
Configuring jails:.
Starting jails: cannot start jail "web": 
.
---

How can i troubleshoot this? There are no useful errors logged anywhere.
If i manually start the jail using the below command, it works just
fine.

---
# jail -c path=/jails/web host.hostname=web.local ip4.addr=10.57.227.98
command=/bin/sh /etc/rc
---

Below is my rc.conf

---
hostname="jail.local"
defaultrouter="10.57.227.254"
ifconfig_bce0="inet 10.57.227.97 netmask 255.255.255.0"
ifconfig_bce0_alias0="inet 10.57.227.98 netmask 0xffffffff"
ifconfig_bce0_alias1="inet 10.57.227.99 netmask 0xffffffff"
ifconfig_bce0_alias2="inet 10.57.227.100 netmask 0xffffffff"
ifconfig_bce0_alias3="inet 10.57.227.101 netmask 0xffffffff"
#
dumpdev="NO"
sshd_enable="YES"
ntpd_enable="YES"
syslogd_flags="-4 -b 10.57.227.97"
#
jail_enable="YES"
jail_list="web"
#jail_interface="bce0"
#jail_devfs_enable="YES"
#jail_devfs_ruleset="devfsrules_jail"
#jail_fdescfs_enable="YES"
#jail_procfs_enable="YES"
#
jail_web_rootdir="/jails/web"
jail_web_hostname="web.local"
jail_web_ip="10.57.227.98"
---

Thanks.




More information about the freebsd-stable mailing list