Skip to content

Build the ubuntu kernel and rootfs for firecracker

Notifications You must be signed in to change notification settings

StinkyPeach/ubuntu-firecracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubuntu-firecracker

Docker container to build a linux kernel and ext4 rootfs compatible with firecracker.

Usage

Build the container:

# linux kernel 4.18.0 release ubuntu:bionic
docker build -t ubuntu-firecracker . 

Build the image:

docker run --privileged -it --rm -v $(pwd)/output:/output ubuntu-firecracker

Start the image with firectl

# copy image and kernel
cp output/vmlinux ubuntu-vmlinux
cp output/image.ext4 ubuntu-rootfs.ext4
# resize image
truncate -s 5G ubuntu-rootfs.ext4
e2fsck -f ubuntu-rootfs.ext4
resize2fs ubuntu-rootfs.ext4
#launch firecracker
firectl --kernel=ubuntu-vmlinux --root-drive=ubuntu-rootfs.ext4 --kernel-opts="init=/bin/systemd noapic reboot=k panic=1 pci=off nomodules console=ttyS0"

Contributions

This project is actively looking for contributions/maintainers. I (bkleiner) have stopped using firecracker a while ago.

About

Build the ubuntu kernel and rootfs for firecracker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 55.2%
  • Dockerfile 44.8%