Kernel Module Management (lsmod, modprobe, insmod)

Expert · 30 minutes · 100 points

Dive deep into Linux kernel module management in this expert-level lab. You will explore how kernel modules work, list the modules loaded in the kernel your container shares with your computer, inspect module metadata and dependencies with modinfo, depmod and modprobe, see exactly what modprobe and insmod would do to load and unload a module (and why a container is not allowed to), and configure module parameters and persistent loading. The lab works on a real Ubuntu 22.04 kernel module tree installed in the container, so nothing touches your own kernel.

What you’ll learn

How this lab works

  1. Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
  2. Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
  3. Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
  4. Finish and keep going: 100 points, your progress saved, and the next lab to try.

What it runs on

What you need

Topics: kernel, modules, lsmod, modprobe, insmod, rmmod, modinfo, depmod, linux-internals, sysadmin

Create a free account to start this lab.

Keep going