In AWS, Firecracker can only be run on bare-metal instances. The remainder of this guide assumes that you’re running
on one of these instances, such as
c6g.metal. This guide assumes that you’ve already installed or compiled the
Firecracker binary.Create an Archil disk
First, follow the Archil Getting Started Guide to create an Archil disk that you wish to attach to your Firecracker microVM.Compile the kernel
First, download the Kernel source code from kernel.org. The most recent version of the Kernel to be included in the Firecracker CI is 6.1, so use that version. Also clone the Firecracker repository to get the most up to date kernel configuration.- aarch64
- x86_64
Move the Kernel configuration you plan to use into the Kernel source code directory.Next, edit the Kernel configuration to enable FUSE support. Open the configuration file in an editor,
identify the line that says Next, set this configuration as the default for the kernel build, and build the kernel.
CONFIG_FUSE_FS is not set, and change it to CONFIG_FUSE_FS=y. The following command
should return CONFIG_FUSE_FS=y.Starting the microVM
The remainder of this guide follows the Firecracker Quick Start Guide. Create an SSH key, and download the latest rootfs.Kernel: line should be the kernel you just compiled, vmlinux-6.1-fuse. To install the Archil client, you need
additional disk space for the binaries themselves along with SSL root certificates. Expand the size of the rootfs image: