Date: Mon, 28 Nov 2011 10:44:43 +0100 From: Denny Schierz <linuxmail@4lin.net> To: freebsd-stable@freebsd.org Subject: 9/RC2: start jails (with epair): ifconfig :permission denied Message-ID: <45E4E305-F9C8-40F9-8486-208C95CD48BB@4lin.net>
next in thread | raw e-mail | index | archive | help
hi, I created and started a V2 jail by hand and it works. Now it should = start automatically: =46rom a HowTo: # # Jails configuration # jail_enable=3D"YES" jail_v2_enable=3D"YES" jail_list=3D"web" jail_web_name=3D"web" jail_web_hostname=3D"web.domain.foo" jail_web_devfs_enable=3D"YES" jail_web_devfs_ruleset=3D"devfsrules_jail" jail_web_rootdir=3D"/jails/www" jail_web_vnet_enable=3D"YES" jail_web_exec_prestart0=3D"ifconfig epair0 create" jail_web_exec_prestart1=3D"ifconfig bridge0 addm epair0a" jail_web_exec_prestart2=3D"ifconfig epair0a up" jail_web_exec_earlypoststart0=3D"ifconfig epair0b vnet web" jail_web_exec_afterstart0=3D"ifconfig lo0 127.0.0.1" jail_web_exec_afterstart1=3D"ifconfig epair0b 192.168.1.3 netmask = 255.255.255.0 up" jail_web_exec_afterstart2=3D"route add default 130.83.160.62" jail_web_exec_afterstart3=3D"/bin/sh /etc/rc" jail_web_exec_poststop0=3D"ifconfig bridge0 deletem epair0a" jail_web_exec_poststop1=3D"ifconfig epair0a destroy" But: /etc/rc.d/jail start web Configuring jails:. Starting jails:epair0a ifconfig: up: permission denied route: writing to routing socket: Operation not permitted /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Creating and/or trimming log files. Starting syslogd. syslogd: child pid 6510 exited with return code 1 /etc/rc: WARNING: failed to start syslogd ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib Clearing /tmp. Updating motd:. Starting sshd. 554 5.3.0 host "localhost" unknown: Protocol not supported Starting cron. Mon Nov 28 09:24:30 UTC 2011 web.domain.foo. so, I'm sure, that I have something missed. The Jail can't use ifconfig. = So maybe, I have to edit: /etc/defaults/devfs.rules ? cu denny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E4E305-F9C8-40F9-8486-208C95CD48BB>