Quickstart: Getting Started on AWS
mainFollow these steps to set up a MicroVM on an m5d.metal instance using Amazon Linux 2:
- Download and verify
firectl - Install Firecracker binary to
/usr/local/bin/firecracker - Grant KVM permissions to your user
- Download kernel and rootfs
- Launch the MicroVM
# 1. Get firectl binary
curl -Lo firectl https://firectl-release.s3.amazonaws.com/firectl-v0.1.0
curl -Lo firectl.sha256 https://firectl-release.s3.amazonaws.com/firectl-v0.1.0.sha256
sha256sum -c firectl.sha256
chmod +x firectl
# 2. Get Firecracker binary
curl -Lo firecracker https://github.com/firecracker-microvm/firecracker/releases/download/v0.16.0/firecracker-v0.16.0
chmod +x firecracker
sudo mv firecracker /usr/local/bin/firecracker
# 3. Give read/write access to KVM
sudo setfacl -m u:${USER}:rw /dev/kvm
# 4. Download kernel and root filesystem
curl -fsSL -o hello-vmlinux.bin https://s3.amazonaws.com/spec.ccfc.min/img/hello/kernel/hello-vmlinux.bin
curl -fsSL -o hello-rootfs.ext4 https://s3.amazonaws.com/spec.ccfc.min/img/hello/fsfiles/hello-rootfs.ext4
# 5. Create microVM
./firectl \
--kernel=hello-vmlinux.bin \
--root-drive=hello-rootfs.ext4