https://github.com/bkleiner/ubuntu-firecracker
Build the ubuntu kernel and rootfs for firecracker
https://github.com/bkleiner/ubuntu-firecracker
firecracker mirovm ubuntu vm
Last synced: about 1 year ago
JSON representation
Build the ubuntu kernel and rootfs for firecracker
- Host: GitHub
- URL: https://github.com/bkleiner/ubuntu-firecracker
- Owner: bkleiner
- License: mit
- Created: 2018-12-03T10:10:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-09T20:30:50.000Z (about 2 years ago)
- Last Synced: 2025-03-28T05:51:07.769Z (about 1 year ago)
- Topics: firecracker, mirovm, ubuntu, vm
- Language: Shell
- Size: 64.5 KB
- Stars: 83
- Watchers: 1
- Forks: 32
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ubuntu-firecracker
Docker container to build a linux kernel and ext4 rootfs compatible with [firecracker](https://github.com/firecracker-microvm/firecracker).
## Usage
Build the container:
```shell
docker build -t ubuntu-firecracker .
```
Build the image:
```shell
docker run --privileged -it --rm -v $(pwd)/output:/output ubuntu-firecracker
```
Start the image with firectl
```shell
# copy image and kernel
cp output/vmlinux ubuntu-vmlinux
cp output/image.ext4 ubuntu.ext4
# resize image
truncate -s 5G ubuntu.ext4
resize2fs ubuntu.ext4
#launch firecracker
firectl --kernel=ubuntu-vmlinux --root-drive=ubuntu.ext4 --kernel-opts="init=/bin/systemd noapic reboot=k panic=1 pci=off nomodules console=ttyS0"
```
## Contributions
This project is actively looking for contributions/maintainers.
I (bkleiner) have stopped using firecracker a while ago.