@@ -1,4 +1,4 @@
|
||||
# slim
|
||||
# boco
|
||||
|
||||
Turning containers into bootable VMs
|
||||
|
||||
@@ -6,27 +6,27 @@ Turning containers into bootable VMs
|
||||
|
||||
```sh
|
||||
# Build the container
|
||||
podman build ./example/alpine -t slim-alpine
|
||||
podman build ./example/alpine -t boco-alpine
|
||||
|
||||
# Make the container bootable. slim injects /slim/init and /slim/exec,
|
||||
# Make the container bootable. boco injects /boco/init and /boco/exec,
|
||||
# then packs the rootfs as a qcow2 disk.
|
||||
slim build qcow2 slim-alpine
|
||||
boco build qcow2 boco-alpine
|
||||
|
||||
# Boot the image using QEMU. The container's CMD runs automatically.
|
||||
slim run slim-alpine
|
||||
boco boot boco-alpine
|
||||
|
||||
# Override the command at runtime (base64-encoded on the kernel cmdline):
|
||||
slim run slim-alpine --cmd '/bin/sh'
|
||||
boco boot boco-alpine --cmd '/bin/sh'
|
||||
|
||||
# Override the command at build time (baked into /slim/exec):
|
||||
slim build qcow2 slim-alpine --cmd '/bin/sh'
|
||||
# Override the command at build time (baked into /boco/exec):
|
||||
boco build qcow2 boco-alpine --cmd '/bin/sh'
|
||||
|
||||
# Cleanup
|
||||
slim image rm slim-alpine
|
||||
podman image rm slim-alpine
|
||||
boco image rm boco-alpine
|
||||
podman image rm boco-alpine
|
||||
```
|
||||
|
||||
## Kernel
|
||||
|
||||
slim boots VMs using a shared kernel at `$XDG_DATA_HOME/slim-rs/registry/vmlinuz`.
|
||||
Place a suitable x86 bzImage there before running `slim run`.
|
||||
boco boots VMs using a shared kernel at `$XDG_DATA_HOME/boco/registry/vmlinuz`.
|
||||
Place a suitable x86 bzImage there before running `boco boot`.
|
||||
|
||||
Reference in New Issue
Block a user