Elektrobit / flake-pilot

Registration/Control utility for applications launched through a runtime-engine, e.g containers
MIT License
9 stars 5 forks source link

Add firecracker vsock at instance startup #105

Closed schaefi closed 1 year ago

schaefi commented 1 year ago

This commit adds the init code to create a vsock per instance. This is related to Issue #87

schaefi commented 1 year ago

@m-kat this is code I had created prior you taking over issue #87 The code here only adds the creation of the vsock per instance and not more. I found that firecracker does not cleanup the socket file on the host when the instance terminates. So firecracker-pilot needs to this. Other than that if you register /bin/bash as a flake you can test the socket communication with this patch as follows:

  1. In the guest shell

    socat VSOCK-LISTEN:42,fork -
  2. On the host

    socat - UNIX-CONNECT:/run/sci_cmd_24965.sock
    CONNECT 42

So some tasks are still open

schaefi commented 1 year ago

@m-kat feel free to merge this when starting your implementation