alexellis/firecracker-init-lab

Couldn't boot the VM (The kernel file cannot be opened: No such file or directory)

Animeshz opened this issue · 2 comments

Ran as mentioned in the README, I'm stuck at the boot step:

> make start
sudo rm -f /tmp/firecracker.socket || :
sudo firecracker --api-sock /tmp/firecracker.socket
2022-06-22T19:25:37.802163000 [anonymous-instance:fc_api:ERROR:src/api_server/src/parsed_request.rs:192] Received Error. Status code: 400 Bad Request. Message: The kernel file cannot be opened: No such file or directory (os error 2)
2022-06-22T19:25:37.843471954 [anonymous-instance:fc_api:ERROR:src/api_server/src/parsed_request.rs:192] Received Error. Status code: 400 Bad Request. Message: Cannot start microvm without kernel configuration.
>>> make boot
sudo ./boot.sh
HTTP/1.1 400 
Server: Firecracker API
Connection: keep-alive
Content-Type: application/json
Content-Length: 92

{"fault_message":"The kernel file cannot be opened: No such file or directory (os error 2)"}HTTP/1.1 204 
Server: Firecracker API
Connection: keep-alive

HTTP/1.1 400 
Server: Firecracker API
Connection: keep-alive
Content-Type: application/json
Content-Length: 70

{"fault_message":"Cannot start microvm without kernel configuration."}

Is there anything that I'm missing (any more prerequisites)?

Did you solve this?
Edit: The kernel is missing. Can be added with make kernel

Oh yea, it works!

Thank you... Although it should be mentioned in the README for clarification...