Lesson  in  Hands-On Firecracker: microVMs From First Principles to Production

Run Your Second Firecracker microVM: REST API Way

Control Firecracker the way real systems do: through its REST API. In this lesson, you will configure and start a microVM over a Unix socket using plain curl, turning the manual boot flow into an API-driven one.

This course is temporarily unavailable

We've disabled nested virtualization following a series of serious security vulnerabilities in KVM and the Linux kernel. This course depends on it, so it will be available again once we can safely turn nested virtualization back on.

In the previous lesson, we booted a microVM by handing Firecracker a single JSON file with --config-file and explicitly disabling the API with --no-api. That mode is great for getting started: you point at a kernel and a rootfs, and Firecracker starts a VM in one go. But once the guest is running, Firecracker stops listening to you. The only "control" you have over the live VM is sending the termination signal to its host process.

Work on Pause

We'll finish this part when work resumes

This course depends on nested virtualization, which is currently disabled for security reasons. Work is on hold until we can safely re-enable it. Once that happens, we'll pick up where we left off.

Content
Start