Network setup without involvement from guest? #4635
-
As found in https://github.com/firecracker-microvm/firecracker/blob/main/docs/network-setup.md in order for the guest to have internet access, they still need to run commands like:
This is only useful if they have the
For a guest that does not have the capability (or intention) to setup their own network routes, is there a way that this can be done from the host (or through some modification of the rootfs?) My goal is to be able to give any container image internet access when run with firecracker. I used the following script to make my ext4 rootfs, and replaced it with the ubuntu one in the getting started guide script:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Adding this to the boot arg seems to work for me! I found this following this guide and specifically this line. I looked up the kernel docs for the
See full: https://gist.github.com/danthegoodman1/476cb5a8671fb94d1727ea893c5b485c |
Beta Was this translation helpful? Give feedback.
Adding this to the boot arg seems to work for me! I found this following this guide and specifically this line. I looked up the kernel docs for the
ip
param and edited my config as neededSee full: https://gist.github.com/danthegoodman1/476cb5a8671fb94d1727ea893c5b485c