Skip to main content

One post tagged with "initramfs"

View All Tags

QEMU Direct Linux Kernel Boot

· 3 min read
Frank Chen
Backend & Applied ML Engineer

Here, I will employ QEMU to emulate a minimal Linux x86_64 platform with a minimal root filesystem from scratch, as well as debugging with GDB:

  • Build Linux x86_64 kernel
  • Build Linux x86_64 rootfs(root filesystem)
  • Run QEMU
  • Debug with GDB

Why do I use QEMU to boot Linux kernel directly with skipping BIOS/UEFI boot procedures?

Use QEMU to launch a Linux kernel directly without having to make a fully bootable disk image. This is very useful for:

  • Linux kernel testing
  • root filesystem testing
  • arm system emulation