{"id":15779954,"url":"https://github.com/rgl/firecracker-playground","last_synced_at":"2026-01-30T19:04:20.896Z","repository":{"id":139752006,"uuid":"591923579","full_name":"rgl/firecracker-playground","owner":"rgl","description":"My Firecracker playground","archived":false,"fork":false,"pushed_at":"2024-09-06T07:32:13.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-11T19:46:19.111Z","etag":null,"topics":["firecracker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-22T11:13:51.000Z","updated_at":"2025-08-07T04:43:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"45f8794c-77e7-49e0-b121-b2b8ef4b9a65","html_url":"https://github.com/rgl/firecracker-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/firecracker-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Ffirecracker-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Ffirecracker-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Ffirecracker-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Ffirecracker-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/firecracker-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Ffirecracker-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firecracker"],"created_at":"2024-10-04T18:22:04.869Z","updated_at":"2026-01-30T19:04:20.878Z","avatar_url":"https://github.com/rgl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\r\n\r\nMy [Firecracker](https://github.com/firecracker-microvm/firecracker) playground.\r\n\r\n# Usage\r\n\r\nInstall the [Base Ubuntu 22.04 Box](https://github.com/rgl/ubuntu-vagrant).\r\n\r\nLaunch the environment:\r\n\r\n```bash\r\nvagrant up --provider=libvirt --no-destroy-on-error --no-tty\r\n```\r\n\r\nStart an example VM:\r\n\r\n```bash\r\n# login into the vagrant created VM.\r\nvagrant ssh linux\r\n\r\n# switch to root.\r\nsudo -i\r\n\r\n# setup the host network.\r\nip tuntap add tap0 mode tap\r\nip addr add 172.18.0.1/24 dev tap0\r\n#sysctl -w net.ipv4.conf.tap0.proxy_arp=1 \u003e/dev/null\r\nsysctl -w net.ipv6.conf.tap0.disable_ipv6=1 \u003e/dev/null\r\nip link set tap0 up\r\niptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE\r\niptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT\r\niptables -A FORWARD -i tap0 -o eth0 -j ACCEPT\r\n\r\n# setup the read-only base disk loop device.\r\nbase_disk_loop_device=\"$(losetup --find --show /tmp/firecracker-vm-alpine-rootfs.ext4 --read-only)\"\r\nbase_disk_loop_device_size=\"$(blockdev --getsz /tmp/firecracker-vm-alpine-rootfs.ext4)\"\r\n\r\n# create the temporary vm disk as a copy-on-write (cow) device.\r\nrm -f /tmp/firecracker-vm-alpine0.cow.lvm\r\ninstall -m 600 /dev/null /tmp/firecracker-vm-alpine0.cow.lvm\r\ntruncate --size 128M /tmp/firecracker-vm-alpine0.cow.lvm\r\nroot_disk_loop_device=\"$(losetup --find --show /tmp/firecracker-vm-alpine0.cow.lvm)\"\r\necho \"0 $base_disk_loop_device_size snapshot $base_disk_loop_device $root_disk_loop_device p 4\" \\\r\n  | dmsetup create firecracker-vm-alpine0\r\nlosetup\r\ndmsetup table\r\ndu -h /tmp/firecracker-vm-alpine0.cow.lvm\r\n\r\n# start a vm in foreground.\r\n# NB you can login into the vm as root:root.\r\n# NB to shutdown the vm, use the reboot command or send an sigint to the\r\n#    firectl (or the firecracker) process.\r\nKERNEL_DEFAULT_OPTS='ro console=ttyS0 noapic reboot=k panic=1 pci=off nomodules'\r\nKERNEL_OPTS=\"${KERNEL_OPTS} random.trust_cpu=on\"\r\nKERNEL_OPTS=\"${KERNEL_OPTS} ip=172.18.0.2::172.18.0.1:255.255.255.0::eth0:off\"\r\nfirectl \\\r\n  --kernel=/tmp/firecracker-kernel.bin \\\r\n  --kernel-opts=\"$KERNEL_OPTS\" \\\r\n  --root-drive=/dev/mapper/firecracker-vm-alpine0 \\\r\n  --tap-device=tap0/aa:bb:cc:00:00:00\r\n\r\n# destroy the temporary vm disk.\r\ndmsetup remove firecracker-vm-alpine0\r\nlosetup --detach \"$root_disk_loop_device\"\r\ndu -h /tmp/firecracker-vm-alpine0.cow.lvm\r\nrm -f /tmp/firecracker-vm-alpine0.cow.lvm\r\n\r\n# detach the base disk.\r\nlosetup --detach \"$base_disk_loop_device\"\r\n```\r\n\r\nList this repository dependencies (and which have newer versions):\r\n\r\n```bash\r\nexport GITHUB_COM_TOKEN='YOUR_GITHUB_PERSONAL_TOKEN'\r\n./renovate.sh\r\n```\r\n\r\n# References\r\n\r\n* [Getting Started](https://github.com/firecracker-microvm/firecracker/blob/main/docs/getting-started.md)\r\n* [rootfs and kernel setup](https://github.com/firecracker-microvm/firecracker/blob/main/docs/rootfs-and-kernel-setup.md)\r\n* [Document Firecracker Entropy Approach and Practical Use](https://github.com/firecracker-microvm/firecracker/issues/663)\r\n* [Firecracker: start a VM in less than a second](https://jvns.ca/blog/2021/01/23/firecracker--start-a-vm-in-less-than-a-second/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Ffirecracker-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Ffirecracker-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Ffirecracker-playground/lists"}