Skip to content

Instantly share code, notes, and snippets.

@shivahari
Last active January 22, 2024 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivahari/a7fbb7d857c02073245c666b253e4def to your computer and use it in GitHub Desktop.
Save shivahari/a7fbb7d857c02073245c666b253e4def to your computer and use it in GitHub Desktop.
vmconfig JSON to create a microVM using Firecracker
{
"boot-source": {
"kernel_image_path": "vmlinux-6.1.74",
"boot_args": "ro console=ttyS0 noapic reboot=k panic=1 pci=off"
},
"drives": [
{
"drive_id": "rootfs",
"path_on_host": "ubuntu-22.04.ext4",
"is_root_device": true,
"is_read_only": false
}
],
"network-interfaces": [
{
"iface_id": "eth0",
"guest_mac": "06:00:AC:10:00:02",
"host_dev_name": "tap0"
}
],
"machine-config": {
"vcpu_count": 2,
"mem_size_mib": 1024
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment