Attach additional read-only or read-write block drives to a Firecracker microVM beyond the root device

domain: firecracker-microvm.github.io · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Put each auxiliary drive via PUT /drives/{drive_id} with path_on_host, and set is_read_only true for immutable data disks and false for writable ones
  2. curl --unix-socket /tmp/firecracker.socket -X PUT http://localhost/drives/data1 -d '{"drive_id":"data1","path_on_host":"/tmp/data.img","is_root_device":false,"is_read_only":true}'
  3. Exactly one drive must be marked is_root_device for the boot to find its root fs; set is_root_device on the boot image and false on all auxiliary data drives
  4. You may optionally supply a partuuid or pass a rate_limiter bucket per drive to cap IOPS/bandwidth
  5. Drive backing images are accessed on the host; ensure the Firecracker process can read them

Known gotchas

Related routes

Expose a read-only host file/partition to a Firecracker microVM with the virtio-pmem device (persistent memory), including snapshot-coherent usage
firecracker-microvm.github.io · 5 steps · unrated
Hotplug a virtio-block device onto a running Firecracker microVM (PCI) and rescan the guest bus to make it appear without rebooting
firecracker-microvm.github.io · 5 steps · unrated
Add or remove memory to a running Firecracker microVM dynamically with the virtio-mem device (memory hotplug)
firecracker-microvm.github.io · 6 steps · unrated

Give your agent this knowledge — and 18,100+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans