Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 09:33:53 +1100
From:      Philipp Huebner <philipp.huebner@fdrive.com.au>
To:        freebsd-stable@freebsd.org
Subject:   Re: Fighting with vnet / jails epair and so on
Message-ID:  <4F189A51.4020301@fdrive.com.au>
In-Reply-To: <741811DB-240C-4390-A3B3-4BEFE8714942@4lin.net>
References:  <C51D1B19-1616-4165-BC5E-A681241C8ED2@4lin.net> <4F174607.9070707@fdrive.com.au> <741811DB-240C-4390-A3B3-4BEFE8714942@4lin.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19/01/12 18:22, Denny Schierz wrote:
> hi,
> 
> Am 18.01.2012 um 23:21 schrieb Philipp Huebner:
>> 
>> I use 9.0.0 release for host and jail and a generic kernel with
>> OPTIONS VIMAGE being the only change/addition. No problem.
> 
> so, how looks your rc.conf config ? Do you use vimage the tool? I
> can't use vimage (as I know) on sparc64.

/etc/rc.conf
=============================
jail_enable="YES"
jail_v2_enable="YES"

jail_dir=/etc/jails
jail_list=`ls ${jail_dir}`

for j in ${jail_list}; do
	. ${jail_dir}/${j}
done
=============================


/etc/jails/dhcp
=============================
jail_dhcp_name="dhcp"
jail_dhcp_hostname="dhcp.vv.fda"
jail_dhcp_devfs_enable="YES"
jail_dhcp_rootdir="/jails/dhcp/20120110"
jail_dhcp_vnet_enable="YES"
jail_dhcp_exec_prestart0="ifconfig epair9 create"
jail_dhcp_exec_prestart1="ifconfig bridge300 addm epair9a"
jail_dhcp_exec_prestart2="ifconfig epair9a up"
jail_dhcp_exec_earlypoststart0="ifconfig epair9b vnet dhcp"
jail_dhcp_exec_afterstart0="/etc/rc.jail"
#jail_dhcp_exec_poststop0="ifconfig bridge300 deletem epair9a"
#jail_dhcp_exec_poststop1="ifconfig epair9a destroy"
=============================


/jails/dhcp/20120110/etc/rc.jail
=============================
#!/bin/sh
. /etc/rc.conf
echo "#"
echo "# Starting JAIL: $hostname"
echo "#"

/etc/rc.d/netif start
route add default $defaultrouter

/etc/rc.d/sshd start

/usr/local/etc/rc.d/nrpe2 start

/usr/local/etc/rc.d/isc-dhcpd start

echo "#"
echo "# JAIL $hostname is now up and running!"
echo "#"
echo
==============================


I do not use (and never have) the vimage commandline tool.


Regards,
Philipp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F189A51.4020301>