This repository contains the code for the demo presented during Hands-on Introduction to Firecracker | Rawkode Live
.
go build launcher.go
The application assumes that the working directory contains:
firecracker
: the firecracker binary.rootfs.ext4
: a root filesystem to boot the microvm from.vmlinux.bin
: the kernel that the microvm will use.
- Launch a microvm:
./launcher --socket 1.sock
- Create a snapshot:
./launcher --socket 1.sock --toSnapshot state1
- Load a snapshot:
./launcher --socket 2.sock --fromSnapshot state1