How to Install A Custom Kernel With Extensions on FreeBSD 11

June 20, 2022 | By the+gnu+linux+evangelist.

FreeBSD 11 Installing Custom Kernel Guide

Hi! This Short Guide shows you Step-by-step How to Recompile and Install a FreeBSD 11 Custom Kernel with a Kernel Extension.

The Kernel Extension Installed in this Tutorial is also the Prerequisite for VMware Tools Installation over Unix FreeBSD 11 Guest.

FreeBSD 11 amd64 How to Install a Custom Kernel - Featured
  1. Boot in Single-User Mode or Simply to Command Prompt.

  2. Login as Superuser:

    su 
  3. Install the Kernel Extension Package:

    pkg install subversion compat6x-amd64

    FreeBSD 11 Getting Started Searching and Installing Packages

    FreeBSD 11 pkg Quick Start
  4. Install a Custom Kernel with Extensions.

    1. Download the FreeBSD 11 Distribution Sources.


      svn co https://svn0.us-west.freebsd.org/base/stable/10 /usr/src

      Here Take a Break Because you need to Wait for a Long Wile

    2. Make a New Kernel Configuration File.

      cd /usr/src/sys/amd64/conf

      If Do Not Know How to Proceed then you should Simply use the Default Config File:

      cp GENERIC MYKERNEL
    3. Build a Custom Kernel.

      cd /usr/src
      make -j `sysctl -n hw.ncpu` buildworld

      Here Take another Time-Out Waiting for a Wile

      make -j `sysctl -n hw.ncpu` buildkernel KERNCONF=MYKERNEL

      Last Keep Patient and Still Wait Again for a While until the Process is Achieved with:

      Kernel build for MYKERNEL completed
    4. Lastly Install the New Kernel.

      make installkernel KERNCONF=MYKERNEL
  5. Thanks to: www.bsdnow.tv.


QuickChic Theme • Powered by WordPress