jail resource control

Hi fellas,

Just a short post about, how to enable the jail subsystem resource control on FreeBSD.

My choice was this release: ftp://ftp.fsn.hu/pub/FreeBSD/releases/i386/i386/ISO-IMAGES/9.1/FreeBSD-9.1-RC3-i386-bootonly.iso

Install the base system with sources:

And the system is installing..

When it’s finished just do the following:

root@freebsd:/ # uname -a
FreeBSD freebsd 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:18:27 UTC  2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
root@freebsd:/ # rctl
rctl: rctl_get_rules: Function not implemented
root@freebsd:/ # cd /usr/src/sys/i386/conf
root@freebsd:/ # cp GENERIC MAX
root@freebsd:/ # vi MAX
Add the following two lines:
options RCTL
options RACCT
root@freebsd:/ # cd /usr/src
root@freebsd:/ # make -j3 buildkernel KERNCONF=MAX
root@freebsd:/ # make -j3 installkernel KERNCONF=MAX
root@freebsd:/ # reboot
root@freebsd:/home/max # uname -a
FreeBSD freebsd 9.1-RC3 FreeBSD 9.1-RC3 #0: Sun Nov 11 18:59:10 CET 2012     /usr/obj/usr/src/sys/MAX  i386
root@freebsd:/home/max # rctl
root@freebsd:/home/max #

In the new kernel the rctl functions enabled so it can be used :).

Cheers,
max

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.