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

32 comments:

chenlina said...

chenlina20150611
oakley sunglasses
hollister clothing
jordan 5
abercrombie and fitch
coach outlet store online
gucci bags
www.louisvuitton.com
michael kors handbags
mont blanc pens
louis vuitton handbags
louis vuitton handbags
hollister kids
michael kors
discount oakley sunglasses
ray ban sungalsses
louis vuitton
louis vuitton outlet
chanel handbags
timberlands
jordan 6 rings
ray ban sunglasses
ray ban outlet
michael kors
coach outlet online
hermes birkin
kevin durant basketball shoes
michael kors outlet online
oakley sunglasses sale
coach factory outlet
kate spade
ray ban outlet
louis vuitton outlet
replica rolex watches
michael kors
gucci handbags
insanity workout
chanel handbags
christian louboutin outlet
hogan outlet
abercrombie store

chenlina said...

chenlina20150611
oakley sunglasses
hollister clothing
jordan 5
abercrombie and fitch
coach outlet store online
gucci bags
www.louisvuitton.com
michael kors handbags
mont blanc pens
louis vuitton handbags
louis vuitton handbags
hollister kids
michael kors
discount oakley sunglasses
ray ban sungalsses
louis vuitton
louis vuitton outlet
chanel handbags
timberlands
jordan 6 rings
ray ban sunglasses
ray ban outlet
michael kors
coach outlet online
hermes birkin
kevin durant basketball shoes
michael kors outlet online
oakley sunglasses sale
coach factory outlet
kate spade
ray ban outlet
louis vuitton outlet
replica rolex watches
michael kors
gucci handbags
insanity workout
chanel handbags
christian louboutin outlet
hogan outlet
abercrombie store

Da Shuai Guo said...

guowenhao0803
air jordan 4
swarovski crystal
ray ban sunglasses
air max 2014
oakley sunglasses
celine outlet
coach outlet online
barcelona jersey
ray ban sunglasses
new orleans saints jerseys
pandora
louis vuitton outlet
babyliss
cartier love bracelet
coach factory outlet
kobe shoes
coach outlet
vibram fivefingers
nike outlet store
lacoste polo shirts
insanity workout
links of london uk
converse all star
prada shoes
arizona cardinals jerseys
ray ban sunglasses
oakley sunglasses
louis vuitton handbags
instyler ionic styler
juicy couture outlet
cheap mlb jerseys
rolex watches
tory burch outlet
true religion jeans, http://www.truereligionoutletstore.us.com
stuart weitzman boots
cheap football shirts
miami heat jersey
burberry outlet online, http://www.burberryoutletonlinestore.com.co
hollister clothing
nike air max uk

风骚达哥 said...

20150922 junda
abercrombie
Hollister uk
Air Jordan 3 III Retro Free Shipping
louis vuitton
coach outlet
Cheap Jordans For Sale Wholesale
canada goose jackets
Christian Louis Vuitton Red Bottoms
New Louis Vuitton Handbags Outlet
Official Coach Factory Outlet Online Sale
Jordan 13 Shoes For Sale
canada goose outlet
Real Louis Vuitton Bags
nike trainers
Jordan 8 Bugs Bunny
Authentic Louis Vuitton Belts Outlet Store
burberry outlet
Louis Vuitton Bags On Sale
true religion jeans
canada goose outlet online
Lebron James Basketball Shoes Sale
Louis Vuitton Handbags Discount Off
nfl jerseys
Abercrombie T-Shirts
Discount Ray Ban Polarized Sunglasses
coach factory outlet online
Louis Vuitton Outlet USA
celine
Louis Vuitton Luxury Official Website
michael kors outlet

Minko Chen said...

michael kors uk
basketball shoes,basketball sneakers,lebron james shoes,sports shoes,kobe bryant shoes,kobe sneakers,nike basketball shoes,running shoes,mens sport shoes,nike shoes
ferragamo outlet
dallas cowboys
michael kors uk
louis vuitton outlet store
coach outlet online
nike free
hogan,hogan outlet,scarpe hogan,hogan sito ufficiale,hogan interactive
toms outlet
oakley sunglasses wholesale
celine outlet
tory burch outlet online
ugg boots clearance,ugg australia,uggs on sale,ugg slippers,uggs boots,uggs outlet,ugg boots,ugg,uggs
links of london jewellery
chicago bulls
hollister uk
nike outlet store
new york jets
oklahoma city thunder
the north face outlet
1026MINKO

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

Chenzhen 20160303chenzhen said...

louis vuitton handbags
air jordan homme
michael kors outlet
true religion sale
lebron james shoes 13
louis vuitton handbags
cheap ray ban sunglasses
coach outlet
louis vuitton handbags
coach factory outlet
cheap oakleys
michael kors outlet
louis vuitton outlet
ralph lauren
louis vuitton outlet stores
tory burch flats
adidas running shoes
nfl jerseys wholesale
michael kors outlet
ugg outlet
copy watches
toms outlet
timberlands
hollister shirts
coach outlet online
oakley sunglasses
kevin durant shoes
oakley vault
nike roshe run
oakley canada
coach outlet
nfl jerseys
michael kors bags
ugg boots
louis vuitton outlet stores
ray ban sunglasses
michael kors handbags
celine bags
insanity workout
ray ban sunglasses outlet
20160321chenzhen

chenlili said...

2016-4-21 xiaobao
ghd hair straighteners
louis vuitton bags
louis vuitton
nike trainers
tory burch sale
michael kors handbags
nike sb shoes
oakley sunglasses wholesale
christian louboutin
celine handbags
mont blanc pens
hollister uk
hollister clothing
air jordans
michael kors outlet
north face outlet
nfl jerseys
cheap jordans
louis vuitton outlet stores
nike basketball shoes
louis vuitton outlet
kate spade handbags
coach outlet
kate spade handbags
nike sb
tory burch outlet
michael kors outlet
oakley sunglasses
adidas shoes
louis vuitton outlet
lebron james shoes
fitflops
michael kors outlet
oakley sunglasses
ralph lauren polo
louis vuitton outlet
replica watches
caoch outlet
michael kors outlet online
adidas superstar

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

Qing Cai said...

cartier watches
air jordan shoes
ralph lauren polo shirts
ferragamo outlet
michael kors handbags wholesale
ray ban sunglasses
burberry outlet
true religion jeans outlet
nhl jerseys
michael kors online outlet
polo ralph lauren
true religion outlet
kate spade uk
cheap nhl jerseys
michael kors handbags clearance
louis vuitton handbags outlet
coach outlet store
fitflops sale clearance
michael kors handbags sale
coach outlet store
nike tn pas cher
cheap ray ban sunglasses
beats by dre
tory burch outlet online
louis vuitton outlet
lululemon outlet
nike roshe
louis vuitton pas cher
cheap soccer jerseys
beats by dre
cai20160516

John said...

oakley vault sunglasses
omega watches
adidas nmd
ecco shoes
prada outlet
tiffany jewelry outlet
hollister clothing store
nike roshe run women
mont blanc pens outlet
kate spade bags
cheap ray ban sunglasses
coach outlet online
coach outlet online
gucci handbags outlet
rolex replica watches
omega seamaster
coach factory outlet
reebok uk
michael kors outlet clearance
armani jeans
nike air max
ray ban sunglasses
polo ralph lauren outlet
the north face outlet
yeezy boost 350 black
adidas gazelle
louis vuitton bags
cheap ray bans
bottega veneta handbags
north face outlet
adidas shoes uk
adidas trainers
coach factory outlet
201678yuanyuan

Gege Dai said...

oakley sunglasses
tiffany jewelry
foamposite shoes
louis vuitton bags cheap
coach outlet online
michael kors outlet
timberland shoes
nike blazer pas cher
polo ralph lauren
ugg outlet
cheap snapbacks
louboutin pas cher
mulberry uk
prada sunglasses for women
cheap uggs
michael kors outlet
swarovski outlet
burberry outlet
ugg boots
air max 90
cartier uk
michael kors outlet online
mulberry handbags
michael kors outlet
coach outlet store
mbt shoes
oakley sunglasses
valentino outlet
fitflops outlet
uggs on sale
true religion jeans
nike outlet store
louis vuitton handbags
oakley sunglasses wholesale
ferragamo shoes
czq20160726

Gege Dai said...

oakley sunglasses
tiffany jewelry
foamposite shoes
louis vuitton bags cheap
coach outlet online
michael kors outlet
timberland shoes
nike blazer pas cher
polo ralph lauren
ugg outlet
cheap snapbacks
louboutin pas cher
mulberry uk
prada sunglasses for women
cheap uggs
michael kors outlet
swarovski outlet
burberry outlet
ugg boots
air max 90
cartier uk
michael kors outlet online
mulberry handbags
michael kors outlet
coach outlet store
mbt shoes
oakley sunglasses
valentino outlet
fitflops outlet
uggs on sale
true religion jeans
nike outlet store
louis vuitton handbags
oakley sunglasses wholesale
ferragamo shoes
czq20160726

dong dong23 said...

coach outlet online
tiffany outlet
christian louboutin flats
nike roshe flyknit
cheap oakley sunglasses
michael kors handbags
christian louboutin outlet
adidas outlet
cheap jordans
coach outlet store online clearances
jordan 11s
louis vuitton outlet
oakley sunglasses wholesale
coach factory outlet
louis vuitton
coach outlet store online
michael kors outlet
michael kors
beats headphones
coach factory outlet
celine
jordan 8
jordan retro 3
north face outlet
coach factory outlet
air jordan retro
rolex watches outlet
lebron james shoes 12
coach outlet
ray ban sunglasses outlet
louis vuitton handbags
asics shoes
ray ban sunglasses
adidas originals
michael kors handbags
burberry outlet
tory burch flats
michael kors outlet clearance
giuseppe zanotti
mont blanc pens
20168.1wengdongdong

dong dong23 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

shengda xu 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

shengda xu 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

kkk said...

mbt
ralph lauren sale
fitflops
polo ralph lauren
adidas yeezy boost
mont blanc pens
adidas yeezy boost
true religion
yeezy shoes
coach outlet store online
170626yueqin

kkk said...

mbt
ralph lauren sale
fitflops
polo ralph lauren
adidas yeezy boost
mont blanc pens
adidas yeezy boost
true religion
yeezy shoes
coach outlet store online
170626yueqin

dong dong23 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

dong dong23 said...

prada bags
coach outlet
ray ban wayfarer
canada goose
adidas jeremy scott
ralph lauren polo
north face clearance
coach wallets
cheap nfl jerseys
ray ban sunglasses
20179.4wengdongdong

ninest123 said...

ralph lauren outlet
canada goose jackets
cheap oakley sunglasses
adidas shoes
air max 90
kate spade outlet
louis vuitton outlet
jordan shoes
cheap oakley sunglasses
ralph lauren outlet
mt0420

Yaro Gabriel said...

www0605


michael kors outlet
cheap jordans
michael kors outlet
canada goose outlet
cavaliers jerseys
tory burch outlet
true religion jeans
cheap mlb jerseys
canada goose outlet
kd 9

fangyaoting said...

20180616 junda
canada goose outlet
pandora charms
freshjive clothing
alife clothing
ugg outlet
nfl jersey wholesale
ubiq shoes
chrome hearts outlet
pandora charms sale clearance
cheap jordans

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

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

5689 said...

football soldes
pandora jewelry
ugg boots clearance
christian louboutin shoes
football pas cher
golden goose
ugg boots
hermes belt
mbt
nike factory store
zzzzz2018.7.30

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