-
Notifications
You must be signed in to change notification settings - Fork 652
limactl create
: add --plain
flag to disable mounts, port forwarding, containerd, etc.
#1739
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Question: Could this also support systems that don't have a package manager? I'm asking because I'm currently looking into image-based, immutable systems. There are various approaches to implement this, but they typically have in common that no 'normal' package manager is available. I think it would be great if lima was usable with such systems, and I see that depending on what the image provides some features of lima might not be available, but getting a basic shell via ssh would already be pretty great imo. Edit: Just noticed two related PRs: |
The downside is that those read-only systems, will not support all features of a regular operating system. You can install some things in But those two systems are examples on what can be done with the current split. The biggest issue maintaining it is that all setup scripts need to be duplicated, since it doesn't support the regular shell scripts but requires systemd units... And of course that all cloud-init configuration needs to be converted to ignition, since it doesn't support the standard. I think the current number of scripts and configs makes it tolerable, but it could stand in the way of bigger future changes? |
@fwilhe2 Note that typically CoreOS did not install any user software whatsoever on the host (VM). You started a Similar to what WSL2 is doing with the "distributions" https://github.com/coreos/toolbox I think the Bean OS will do the same. |
Sure, I was mentioning it because a package manager is described as a requirement in the Lima readme Bean looks interesting 👀 |
The shell scripts do require a package manager |
Technically they don't if your base image already includes all the required prerequisites. |
I found that it was possible to use the pre-installed software on CoreOS, provided that one mimicked the other setup from the boot scripts (that are not getting called, when not using cloud-init*). The guestagent and the nerdctl-full does not require a package manager, since they are just copied with install and unpacked from a tarball. Again provided that all their requirements are there. So I was able to "install" containerd, even without any package manager. I just used "oneshot" systemd services, since that was the most straightforward (i.e. given the complicated circumstances). The But it is possible to run without a (supported) package manager, like the experiment with tinycorelinux: tinycloud. There most of the required software is mounted from squashfs packages (some is still provided right on the rootfs, though). Or like how it works in alpine-lima, where all the packages are getting installed to tmpfs instead of being mounted. |
The
--plain
flag will disable:The text was updated successfully, but these errors were encountered: