Custom Freebsd Kernel
- Install
We will need to get the src first:
sysinstall select Configure select Distributions select src select sys [/usr/src/sys (FreeBSD Kernel)] press Enter select FTP select Install
If you are not using this tutorial for a Fiber-Hosting server you may want to install from cd-rom in that case:
select CDROM select Install
- Configuration
Time to start on the kernel customization:
cd /usr/src/sys/i386/conf
Going to this direct is for Intel based computers such as Fiber-Hosting’s
We need to copy and rename the generic kernel file
cp GENERIC MYKERNEL
When editing your kernel keep in mind of some things
Example line from kernel: ANYDEVICE (required)
If the line says required do not comment it out or delete it.
Comment out lines with # instead of deleting them.
Change the line to read:ident MYKERNEL
If you are not sure of what devices your sever has check /var/log/messages if it has been a while since you rebooted reboot before checking /var/log/messages.
- Compiling kernel
cd /usr/src
make buildkernel KERNCONF=MYKERNEL If you get errors you have added in a wrong setting or took one out.
To fix it or copy GENERIC back to MYKERNEL and try to fix the changes.
- Installing the kernel.
make installkernel KERNCONF=MYKERNEL
Reboot and changes should take effective.











![Validate my RSS feed [Valid RSS]](http://fiber-hosting.com/docs/valid-rss.png)