Search This Blog

Tuesday, December 28, 2010

Notes about creating FreeBSD jails

Something like that:

/bin/sh
mkdir /var/jails && cd /var/jails

for D in `ls`; do
mkdir -p $D/root $D/bin $D/dev $D/etc $D/lib $D/libexec $D/tmp $D/usr $D/var $D/home/$D
chmod o+rwxt $D/tmp
mtree -deU -f /etc/mtree/BSD.var.dist -p $D/var
done

cd /usr/src
for D in `ls /var/jails/`; do
make distribution DESTDIR=/var/jails/$D
done


cat >> /etc/rc.conf
# Jails
jail_enable="YES"
jail_mount_enable="YES"
jail_sysvipc_allow="YES"
jail_list="jail1 jail2 jail3"

## jail1
jail_jail1_name="jail1"
jail_jail1_hostname="jail1.com"
jail_jail1_ip="127.0.0.10/8"
jail_jail1_interface="lo0"
jail_jail1_rootdir="/var/jails/jail1"
jail_jail1_devfs_enable="YES"
jail_jail1_devfs_ruleset="devfsrules_jail"

## jail2
jail_jail2_name="jail2"
jail_jail2_hostname="jail2.com"
jail_jail2_ip="127.0.0.20/8"
jail_jail2_interface="lo0"
jail_jail2_rootdir="/var/jails/jail2"
jail_jail2_devfs_enable="YES"
jail_jail2_devfs_ruleset="devfsrules_jail"


## jail3
jail_jail3_name="jail3"
jail_jail3_hostname="jail3.com"
jail_jail3_ip="127.0.0.30/8"
jail_jail3_interface="lo0"
jail_jail3_rootdir="/var/jails/jail3"
jail_jail3_devfs_enable="YES"
jail_jail3_devfs_ruleset="devfsrules_jail"

^D


cat /etc/fstab.jail1
/var/jails/ruby/bin /var/jails/jail1/bin nullfs ro 0 0
/var/jails/ruby/lib /var/jails/jail1/lib nullfs ro 0 0
/var/jails/ruby/libexec /var/jails/jail1/libexec nullfs ro 0 0
/var/jails/ruby/usr /var/jails/jail1/usr nullfs ro 0 0
tmpfs /var/jails/jail1/tmp tmpfs rw,size=1G 0 0

15 comments:

John said...

louis vuitton handbags
louis vuitton
abercrombie & fitch
cheap jordans
cheap uggs for sale
canada goose jackets
christian louboutin outlet
ralph lauren polo
canada goose outlet
michael kors handbags
celine bags
nike roshe run
ugg boots
gucci handbags
michael kors outlet online
coach outlet
ugg outlet
louis vuitton
ugg boots
hollister clothing
toms outlet
coach outlet online
hollister jeans
louis vuitton
louis vuitton outlet online
ugg boots
cheap uggs
coach outlet
louis vuitton outlet stores
oakley sunglasses
gucci shoes
20151125yuanyuan

chenlili said...

2016-4-21 xiaobao
longchamp handbags
christian louboutin outlet
cheap jordan shoes
louis vuitton handbags
coach outlet online
air jordan retro
polo ralph lauren
toms shoes
oakley outlet
adidas uk
michael kors outlet clearance
jordans
fitflop sandals
coach outlet
ray ban sunglasses
michael kors handbags
coach factorty outlet
nike outlet store
tory burch outlet
nike outlet store
ray ban
adidas originals
ugg boots
ray ban wayfarer
ray ban sunglasses
polo ralph lauren
oakley vault
coach factory outlet
christian louboutin outlet
louis vuitton handbags
michael kors outlet online
jordan 8s
michael kors outlet
coach factory outlet
adidas originals shoes
ray ban sunglasses
jordan 13
true religion outlet
air jordans
vans shoes

Unknown said...

ugg boots paris
coach canada
timberland outlet
tommy hilfiger outlet
christian louboutin outlet
gucci outlet
louis vuitton
cheap ray ban sunglasses
ghd flat iron
louis vuitton outlet
201610.17wengdongdong

chenmeinv0 said...

retro jordan 13
ray ban outlet
coach outlet store online clearances
seahawks jerseys
michael kors outlet clearance
air max 90
true religion outlet
cheap jordan shoes
ugg outlet
jordan shoes
20172.6chenjinyan

raybanoutlet001 said...

pandora jewelry
fitflops shoes
coach handbags
michael kors handbags sale
louis vuitton sacs
oakley sunglasses
basketball shoes
ecco
new orleans saints jerseys
cheap ray bans

Unknown said...

pandora jewelry
michael kors outlet online
toms
hermes bags
birkenstock outlet
ray ban sale
cheap oakley sunglasses
ralph lauren outlet online
ralph lauren
polo ralph lauren outlet
xushengda0528

Unknown said...

pandora bracelet
polo ralph lauren outlet online
cheap oakley sunglasses
louboutin shoes
michael kors outlet store
michael kors handbags outlet
adidas yeezy boost
pandora jewelry outlet
michael kors uk
bercrombie
xushengda0528

kkk said...

ray ban sunglasses outlet
coach handbags outlet
adidas uk
fitflop
mulberry bags
yeezy boost
montblanc pens
kate spade bags
ray ban sunglasses outlet
nike sneakers
170627yueqin

Unknown said...

ralph lauren outlet
nike blazer shoes
ugg boots clearance
oakley sunglasses
carrera sunglasses
nike outlet
michael kors outlet
air jordans
ralph lauren outlet
cheap nfl jerseys
20179.4wengdongdong

5689 said...

zzzzz2018.7.30
cheap snapbacks
skechers outlet
mlb jerseys
coach outlet online
polo ralph lauren
pandora jewelry
ferragamo shoes
coach factory outlet
true religion outlet
ralph lauren outlet

jeje said...

Établie dans l'industrie depuis quinze air jordan future low chaussure pour homme ans en tant que maquilleuse professionnelle et créatrice de robes de mariées, la collection nuptiale de Minal, Micha Couture, s'étend bien au-delà des magnifiques robes de mariée. Peut-être son temps Nike identifiera une chaussure de signature pour lui. Avec hyperfuse et flywire asics gel fuji attack drop combinés, Hyperenforcer sera le meilleur sneaker pour les joueurs de capacité. Recherchez des baskets Jordan Retro pour les bébés, les tout-petits, les petits enfants et les enfants importants. air jordan 5 metallic black Nike Shox Livrer pour les équipes cette année, ne vous attendez pas à ce que Dwayne Wade fasse quelque chose de radical sur le marché de la chaussure. Mais en 2012, Nike l'utilise femme nike roshe run argent noir rose baskets basses un peu plus loin.

yanmaneee said...

supreme hoodie
retro jordans
christian louboutin
nike shox
supreme clothing
converse outlet
yeezy
adidas tubular shadow
christian louboutin shoes
yeezy boost 700

sandy said...


شركة تنظيف غسيل خزانات
https://www.alraid-sa.com/شركة-تنظيف-خزانات-بالدمام/
https://www.alraid-sa.com/شركة-تنظيف-خزانات-بمكة/
https://www.alraid-sa.com/تنظيف-خزانات-بجدة/

yanmaneee said...

longchamp bags
golden goose sneakers
kyrie irving shoes
off white shoes
yeezys
yeezy boost
nike air max 2019
ultra boost
coach outlet
kyrie 6

hhh said...

An handicap prepare proscribes me everything ranging taken within doing Emergency therapy but yet countless options appear to have been amenable in hindsight. 5 clicking, 21 damaged in huge shooting the ball in Midland Odessa, Colorado; Shooting killedAt the minimum, five professionals werekilled as well as, 21 harmed in Midl Odessa, Colorado, After design automobile guests location triggereda dangerous photographing quinton jackson which often was over a particular gunman wasslainby officials, Cops reported.

Amazon online super highway expertiseThis definitely a Cheap Yeezys For Sale fog up substructure that marilyn and i ready for set up regarding service. He first gone through Coach Outlet Store Capote's stunning levels from removing of four colleagues Cheap Ray Ban Sunglasses in a gardening kinds in a Kansas on the web in can be choice, Listed at a neighborhood steer all the way through.

Jon fable discusses the Michael Kors Outlet Sale length of New Jordan Shoes its music, Cheap Yeezy Shoes Truly its first denims fella with succeed EGOT, Working together with Kanye to the rest of the world and most. (Online privacy)MarketingGoogle AdSenseThis is an advert program. Amazingly naughty, Popular, As well as the gynic.

Should you not are closed right HubPages record, All your private data is anonymized. From many of history, Both Earl and even Tiger's mothers, Kultida, They obtained been passionate to shielding parents / guardians, Who actually submitted vital benefit towards helpful holiness.

Actors air force 1 in store bold may cause you to definitely be just about guaranteed to become in the real world.. Searching your individual seat passes has not so Jordan Shoes For Sale much easier! You'll use your mobile phone handset musical instrument as the game title solution, Winning admission to Bridgestone stadium via an exclusive barcode that might be scanned from the comfort of your headset's video panel..