Use shared rootfs with per-VM home

This commit is contained in:
Thales Maciel 2026-01-29 21:41:33 -03:00
parent dee329cf39
commit 092700b241
No known key found for this signature in database
GPG key ID: 33112E6833C34679
3 changed files with 43 additions and 47 deletions

View file

@ -19,12 +19,17 @@ Minimal Firecracker launcher.
## Run Options
```
./run.sh --name calm_otter --vcpu 4 --ram 2048 --disk-size 6G
./run.sh --name calm_otter --vcpu 4 --ram 2048 --home-size 6G
```
- `--name`: must be unique and match `[a-z0-9][a-z0-9_-]{0,63}`.
- `--vcpu`: defaults to 2, max 16.
- `--ram`: MiB, defaults to 1024, max 32768.
- `--disk-size`: M/G suffixes supported; must be >= base `rootfs.ext4` size. Requires `resize2fs`.
- `--home-size`: M/G suffixes supported (default: 2G).
## Storage Layout
- `rootfs.ext4` is mounted read-only as `/` and shared across VMs.
- Each VM gets a writable ext4 disk mounted at `/home`.
- The base image must include an `/etc/fstab` entry for `/dev/vdb``/home`.
## SSH
```