Feature #811
Compile a Custom Kernel for VIMAGE Support on FreeBSD
Description
This is a guide on how I compiled VIMAGE support into a custom FreeBSD 10.2 kernel.
Download the kernel sources¶
- Install subversion:
pkg install subversion
- Download the FreeBSD 10.2 kernel sources
svn checkout http://svn.freebsd.org/base/release/10.2.0/ /usr/src
Create a custom kernel config¶
- Change into the kernel source directory and create a new kernel
cd /usr/src/sys/amd64/conf cp GENERIC NEWKERNEL
- Edit the new kernel config file:
vi NEWKERNEL
- And add the following:
options VIMAGE options RACCT options RCTL
- And add the following:
Build and install the new kernel¶
- Change to the kernel source directory, then build and install the new kernel:
cd /usr/src make buildkernel KERNCONF=NEWKERNEL make installkernel KERNCONF=NEWKERNEL
NOTE: This process took about 2 hours on the VM I used.