Editing
Jail Server Install
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= FreeBSD 6.2 -> 6.3 = Last updated 2008-08-07 <pre> 1. remove old src cd /usr rm βfr src/* 2. get latest sources for this release: cd /usr/src echo "*default host=cvsup4.freebsd.org\ *default base=/usr\ *default prefix=/usr\ *default release=cvs tag=RELENG_6_3\ *default delete use-rel-suffix\ *default compress\ src-all" > sup cvsup sup ; pagedave (20min) 3. configure new kernel. Get config from similar machine or there may be a master copy somewhere under /mnt/data4/build/freebsd (name the kernel config the same as the jail, ex jail18): cd /usr/src/sys/i386/conf scp backup2:/mnt/data4/build/freebsd/kern_config-6.2 ./jail7 or for PAE scp backup2:/mnt/data4/build/freebsd/kern_config-6.2-PAE ./jail7 edit the kernel config and change ident to be the name of the jail: vi jail7 ident jail7 edit /sys/conf/newvers.sh to add βjc1 to the end of the BRANCH string (RELEASE-jc1) vi /sys/conf/newvers.sh 3. bring over patches from backup2 The various patches are in /mnt/data4/build/freebsd/patches on backup2. There are dirs for each version. Not all dirs are populated, but patches for later versions work on older ones unless there is a new patch in the older dir. cd /usr/src scp backup2:"/mnt/data4/build/freebsd/patches/6.x/*" . Apply patches: patch -l < jls-patch Apply these only to 2950 with PAE: patch -p0 < gvinum-staticcompile-patch patch -p0 < gvinum-bin-patch 4. build, install kernel cd /usr/src make buildkernel; pagedave (2min) cd /boot mv kernel.old kernel.old.old (optional move old kernel out of the way) cd /usr/src make installkernel cd /boot mv kernel.old kernel.6.2 5. take Β½ of mirror and test (boot up) in new hardware 6. improved loader configs: /boot/loader.conf: console="comconsole,vidconsole" boot_serial="YES" boot_multicons="YES" 7. build userland cd /usr/src make buildworld; pagedave (33mins) make installworld mergemaster βi reboot 8. patch jail against starting jails with rtprio mv /usr/sbin/jail /usr/sbin/jail_ echo '#\!/bin/sh\ /usr/sbin/rtprio -t /usr/sbin/jail_ $*' > /usr/sbin/jail chmod +x /usr/sbin/jail </pre>
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information