Skip to main content
Firecracker is a lightweight virtualization technology from Amazon that allows you to run Linux-based applications in a secure and isolated environment. Archil can be run inside of a Firecracker microVM, giving these user-created containers an infinite disk that’s synchronized to an S3 bucket. By default, the Linux kernel used by Firecracker is configured without support for FUSE, which is required for Archil. Therefore, you must recompile the kernel with FUSE support.
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.
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 CONFIG_FUSE_FS is not set, and change it to CONFIG_FUSE_FS=y. The following command should return CONFIG_FUSE_FS=y.
Next, set this configuration as the default for the kernel build, and build the kernel.

Starting the microVM

The remainder of this guide follows the Firecracker Quick Start Guide. Create an SSH key, and download the latest rootfs.
The 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:
Next, start the Firecracker server with the following commands:
In a new terminal (keeping the terminal with the server running open), start the microVM with the following commands:

Installing and running Archil

You should now be SSH’d into the new microVM. You can now install the Archil client inside the microVM. Run the remainder of this guide from the microVM itself. Start by installing the root certificates to allow for SSL connections for downloading the Archil client and connecting to the Archil disk itself.
Next, install the Archil client.
Finally, mount the Archil disk.
Your microVM now has access to an unlimited disk that’s synchronized to an S3 bucket. Your microVM can instantly access data from the S3 bucket without having to first download it.