princeton-sns / firecracker-tools

5 stars 5 forks source link

cgroup file not found error #10

Closed LedgeDash closed 5 years ago

LedgeDash commented 5 years ago
[davidliu@sns59] ./target/debug/firerunner --kernel ../images/vmlinux --rootfs ../images/node-base-console.ext4
thread 'main' panicked at 'Adding child to Cgroup: Error { kind: WriteFailed, cause: Some(Os { code: 2, kind: NotFound, message: "No such file or directory" }) }', src/libcore/result.rs:999:5

Fixed with sudo mkdir /sys/fs/cgroup/cpu/firecracker.

Should either document or check existence of this file before adding child vm.

alevy commented 5 years ago

https://github.com/princeton-sns/firecracker-tools/blob/master/firerunner/bins/controller/README.md#cgroups

alevy commented 5 years ago

I guess this should move to a higher up readme since it affects both firerunner and the controller

LedgeDash commented 5 years ago

README updated