WIP: run commands inside a firecracker VM
Find a file
2023-06-19 15:53:12 -03:00
agent js agent 2023-06-04 13:08:11 -03:00
js tar stream 3.1 bug repro 2023-06-19 15:53:12 -03:00
rootfs mejorar/arreglar rootfs 2023-06-03 12:16:12 -03:00
.gitignore tar stream 3.1 bug repro 2023-06-19 15:53:12 -03:00
fcnet.conflist baby 2023-05-22 11:44:31 -03:00
go.mod baby 2023-05-22 11:44:31 -03:00
go.sum baby 2023-05-22 11:44:31 -03:00
main.go limpiar daemon 2023-06-03 12:16:24 -03:00
readme.md documentar como crear y debuggear 2023-06-03 11:27:43 -03:00

setup

sudo env GOBIN=/opt/cni/bin go install github.com/awslabs/tc-redirect-tap/cmd/tc-redirect-tap@latest
sudo dnf install containernetworking-plugins
# build rootfs image (incl. agent)
(cd rootfs; pnpm install)
node rootfs/index.js
# build & run daemon
go build && sudo ./fireactions
# run VM
curl --data-raw "#!/bin/sh"\n"echo hi" localhost:8080/run
# inspect VM tty
tail -f /tmp/std*