BSD Jails: Difference between revisions
Created page with "# mkdir -p /usr/jail/<jail name> # cd /usr/src # make buildworld # make installworld DESTDIR=/usr/jail/<jail name> # make distribution DESTDIR=/usr/jail/<jail name> # mount -..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Need to tidy this up later. | |||
============================= | |||
# mkdir -p /usr/jail/<jail name> | # mkdir -p /usr/jail/<jail name> | ||
# cd /usr/src | # cd /usr/src | ||
Revision as of 07:25, 4 December 2012
Need to tidy this up later.
=================
- mkdir -p /usr/jail/<jail name>
- cd /usr/src
- make buildworld
- make installworld DESTDIR=/usr/jail/<jail name>
- make distribution DESTDIR=/usr/jail/<jail name>
- mount -t devfs devfs /usr/jail/<jail name>/dev
To start the jail manually, you can...
jail -n <jail name> /usr/jail/<jail name> <jail name> 10.1.1.20 /bin/sh -n specifies the name then you provide the path, hostname, IP, and the shell
jail_enable="YES"
jail_svn_name="svn"
jail_svn_hostname="svn.home.steamr.com"
jail_svn_ip="10.1.1.20"
jail_svn_devfs_enable="YES"
jail_svn_rootdir="/usr/jail/svn"
jail_svn_mount_enable="YES"
jail_svn_fstab="/etc/jails/fstabs/svn"
jail_svn_vnet_enable="YES"
add to /etc/jaials/fstabs/svn
/usr/src /usr/jail/svn/usr/src nullfs rw 0 0 /usr/ports /usr/jail/svn/usr/ports nullfs rw 0 0
/etc/rc.d/jail start svn
jls #get the jid jexec <jid> sh
jail# echo "enable_sshd=\"YES\"" >> /etc/rc.conf jail# /etc/rc.d/sshd start
http://www.scottro.net/qnd/qnd-jail.html
http://articles.slicehost.com/2007/9/5/introduction-to-svnserve