slp/podman-krun-example

Example for running podman with krun and a custom kernel

★ 3Forks 0ShellGitHub ↗Compare

README

podman-krun-example

An example of building a container image with a custom kernel for use with libkrun and crun (krun backend).

Prerequisites

  • Git
  • A Linux kernel build toolchain (gcc, make, flex, bison, etc.)
  • Python 3 with pyelftools
  • Podman

Build

1. Build the kernel

./build-kernel.sh

This clones libkrunfw, builds the kernel, and copies vmlinux to out/.

2. Build the container image

podman build -f Containerfile -t podman-krun .

3. Run the container

podman run --runtime krun -ti --rm podman-krun

Contributors

slp

Issues