A. The FreeBSD jail mechanism is an implementation of operating system-level virtualization that allows administrators to partition a FreeBSD-based computer system into several independent mini-systems called jails. FreeBSD jails offer security, ease of delegation and os level virtualization. To upgrade your jail using make world use the following commands.
Step # 1: Build world
Follow this guide to upgrade your running system. Once done type the following command to build world for jail:# JAIL=/path/to/jailOR
# JAIL=/usr/home/jail/192.168.1.10
# cd /usr/src
# make buildworld DESTDIR=$JAILPlease note that If you have just done make buildworld previously you can do make installworld and save the time.
Step # 2: Stop jail service
Type the following command to stop all jails:# /etc/rc.d/jail stopStep # 3: Upgrade jail
Type the following command to stop all jails:# cd /usr/src
# make installworld DESTDIR=$JAIL
# mergemaster -i -C -D $JAILIf you have multiple jail repeat above steps. You can also try something as follows:
# JPATHS="/jail/path1 /jail/path2 /jail/path3"
# for j in $JPATHS; make installworld DESTDIR=$j; doneStep # 4: Start all jails
Type the following command:# /etc/rc.d/jail startMake sure everything is running:
# jlsTry to connect to jail called www.example.com with 20 as jail id from host itself:
# jexec 20 sh
# hostname
# sockstatTry to upgrade FreeBSD ports inside jail:
# portsnap fetch update
# portversion -l '<'
# portupgrade -aExit from jail and go back to host:
# exit
No comments:
Post a Comment