Ends in
00
days
00
hrs
00
mins
00
secs
ENROLL NOW

🎉 Save 30% on All Solutions Architect Reviewers – Cloud Solutions Architect Sale!

Firecracker for Students: Launch Your First MicroVM on Any OS

Home » Others » Firecracker for Students: Launch Your First MicroVM on Any OS

Firecracker for Students: Launch Your First MicroVM on Any OS

Last updated on August 22, 2025

What if you could launch your own virtual machine in less than a second… right from your laptop without Docker, without the cloud, and without frying your CPU?

So you’ve heard of virtual machines, but what if I told you there’s one that starts in milliseconds and barely uses resources?


Meet Firecracker, the same tech AWS uses to power Lambda and Fargate.

But guess what? You don’t need to work at AWS to use it. It’s small, it’s fast, and you can run it right now without a cloud account.

In this guide, I’ll show you how to run your first microVM using Firecracker in less than 15 minutes  with just a few terminal commands.

What’s Inside This Tutorial

  • What Firecracker is

  • How to run a microVM on Linux, macOS, or Windows

  • A fully working demo using a lightweight Linux image

  • No AWS account, no heavy VM software — just your laptop and curiosity

Step 0: What’s Firecracker?

Firecracker is a lightweight virtual machine (microVM) manager originally built by AWS.

It’s the tech behind AWS Lambda and Fargate, letting cloud providers run thousands of tiny, isolated workloads in milliseconds.

That’s why big cloud platforms use it to run thousands of tiny, isolated apps at the same time.

Think of it as:

  • VM, but faster

  • VM, but lighter

  • VM, but made for the cloud

And here’s the best part: you can run it right on your laptop without an AWS account.

Why it’s perfect for students:

  • It’s free and open-source, so you can run it on your laptop.

  • Learn real-world cloud concepts without spending on cloud services.

  • Great for projects, demos, or just geeking out over fast tech.

  • Tutorials dojo strip

Step 1: Pick Your Setup (Based on Your OS)

OS REQUIREMENTS

Linux (Ubuntu/Debian)

You’re already close to running it. Check if KVM is ready:

 ls /dev/kvm 
If /dev/kvm appears, skip to Step 2.

Windows 10/11 (WSL2)

We’ll run Ubuntu inside WSL2 (Windows Subsystem for Linux 2):

Install WSL2

  1. Open PowerShell as Administrator.

  2. Run:

    wsl --install
    

    wsl --install
    3. Restart your computer when prompted.

    4. After reboot, Ubuntu will install automatically.

Set Ubuntu as default (if needed)

 wsl --set-default-version 2 wsl --set-default Ubuntu 

Launch Ubuntu inside WSL2

 wsl -d Ubuntu 

Check for KVM access

 ls /dev/kvm 
  • If it lists /dev/kvm, you’re good.

  • If not, your CPU or firmware may not support nested virtualization — use a full Linux VM instead (VirtualBox, Hyper-V, VMware).

wsl -d ubuntu

Inside Ubuntu:

 sudo apt update ; sudo apt install curl wget screen -y 

sudo apt update

macOS (Intel or Apple Silicon)

We’ll run Ubuntu inside UTM (because macOS doesn’t support KVM natively).

Install UTM

  1. Download UTM

  2. Drag it into your Applications folder.

Get Ubuntu

  1. Go to https://ubuntu.com/download/server

  2. Download the latest LTS version (Server or Minimal ISO).

    • Intel Macs → download x86_64 ISO.

    • Apple Silicon → download ARM64 ISO.

Create an Ubuntu VM in UTM

  1. Open UTM → click Create a New Virtual Machine.

  2. Choose Virtualize (faster than Emulate).

  3. Pick Linux as the OS.

  4. When asked for installation media, click Browse and select the Ubuntu .iso you downloaded.

Set VM resources

  • Architecture:

    • x86_64 → Intel Macs.

    • ARM64 → Apple Silicon Macs (Firecracker runs better on x86_64, but ARM64 works).

  • Memory: 2–4 GB (4096 MB recommended).

  • CPU Cores: 2 or more.

  • Storage: Add a virtual hard disk (20 GB or larger).

Install Ubuntu

  1. Start the VM — it should boot into the Ubuntu installer.

  2. Follow the prompts:

    • Language, keyboard, and network → default is fine.

    • Storage → Use Entire Disk.

    • Create your username & password.

    • Skip optional snaps for now.

  3. When installation finishes, reboot.

  4. In UTM, remove the ISO from the virtual CD drive before booting again.

Inside Ubuntu:

 
sudo apt update 
sudo apt install curl wget screen 

Step 2: Install Firecracker (Inside Ubuntu)

Download Firecracker:

 
curl -LOJ https://github.com/firecracker-microvm/firecracker/releases/download/v1.12.1/firecracker-v1.12.1-x86_64.tgz
tar -xvzf firecracker-v1.12.1-x86_64.tgz
chmod +x release-v1.12.1-x86_64/firecracker-v1.12.1-x86_64 
sudo mv release-v1.12.1-x86_64/firecracker-v1.12.1-x86_64 /usr/local/bin/firecracker 

download firecracker part 1

download firecracker part 2

Get the demo kernel & root filesystem:

 
wget https://s3.amazonaws.com/spec.ccfc.min/img/hello/kernel/hello-vmlinux.bin
wget https://s3.amazonaws.com/spec.ccfc.min/img/hello/fsfiles/hello-rootfs.ext4 

get the demo kernel & root filesystem

Step 3: Launch Firecracker

Create the API socket:

 
mkdir -p /tmp/firecracker 
rm -f /tmp/firecracker/firecracker.socket 

Run Firecracker in screen session:

 
screen -S firecracker
sudo firecracker --api-sock /tmp/firecracker/firecracker.socket 

run firecracker in screen session
Detach the screen (Ctrl + A, then D).

Step 4: Configure & Start the MicroVM

In a new terminal,

Free AWS Courses

Configure the Kernel:

 sudo curl --unix-socket /tmp/firecracker.socket -i \
-X PUT 'http://localhost/boot-source' \
-H "Content-Type: application/json" \
-d '{ "kernel_image_path": "./hello-vmlinux.bin", "boot_args": "console=ttyS0 reboot=k panic=1 pci=off" }' 

Root filesystem:

 sudo curl --unix-socket /tmp/firecracker.socket -i \
-X PUT 'http://localhost/drives/rootfs' \
-H 'Content-Type: application/json' \
-d '{ "drive_id": "rootfs", "path_on_host": "./hello-rootfs.ext4", "is_root_device": true, "is_read_only": false }' 

Start the microVM:

 sudo curl --unix-socket /tmp/firecracker.socket -i \
-X PUT 'http://localhost/actions' \
-H 'Content-Type: application/json' \
-d '{ "action_type": "InstanceStart" }' 
Configure and Start the MicroVM

Step 5: Check It’s Running

After the third curl command succeeds, switch back to your first terminal or your screen session where you ran the firecracker command. You should now see the boot output and the “Welcome to Alpine Linux” message.

To go back to your screen session:

 screen -r firecracker 

You should see:

Welcome to Alpine Linux

So… What Was the Point?

You just spun up a real microVM using Firecracker which is the same tech behind AWS Lambda and Fargate—right on your laptop.

Unlike traditional VMs, Firecracker boots in milliseconds, uses minimal resources, and mimics real-world serverless/cloud environments. And the best part? You didn’t need Docker, a cloud account, or even a big beefy machine.

Why This Matters

  • For students & devs: Firecracker helps you understand cloud-native infrastructure locally.

  • For tinkerers: It’s a safe playground for testing Linux, automation, and networking concepts.

  • For builders: This is your first step toward building lean, fast, production-like environments.

What You Can Try Next?

  • Replace the default Alpine rootfs with your own Linux distro

  • Automate the setup with a shell script or Vagrantfile

  • Experiment with isolation: run multiple microVMs at once

  • Try deploying the same Firecracker setup on a real cloud VM

Final Thoughts

You now have a microVM running with almost no overhead that is fast, isolated, and cloud-like.

From portfolio projects to exploring the real mechanics of serverless, this setup delivers the kind of practical edge others tend to miss.

References:

 

🎉 Save 30% on All Solutions Architect Reviewers – Cloud Solutions Architect Sale!

Tutorials Dojo portal

Learn AWS with our PlayCloud Hands-On Labs

🧑‍💻 CodeQuest – AI-Powered Programming Labs

FREE AI and AWS Digital Courses

Tutorials Dojo Exam Study Guide eBooks

tutorials dojo study guide eBook

FREE AWS, Azure, GCP Practice Test Samplers

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

Join Data Engineering Pilipinas – Connect, Learn, and Grow!

Data-Engineering-PH

Ready to take the first step towards your dream career?

Dash2Career

K8SUG

Follow Us On Linkedin

Recent Posts

Written by: Maxine Sofia Llamas

Maxine Sofia “mczeen” is a Computer Engineering student at Pamantasan ng Lungsod ng Maynila (PLM) and an IT intern at Tutorials Dojo. She actively contributes to tech communities and student organizations, blending creativity with technical skills to promote collaboration, innovation, and continuous learning.

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?