-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document that apptainer is available via lima #74
Conversation
I thought the old docs were a bit too wordy, so just added a short-short version. https://github.com/apptainer/singularity-admindocs/blob/master/installation.rst The default vagrant VM has 512 MiB memory, so had to increase that to 1 GiB. Otherwise the |
I think the PR side-tracked from the original intent (i.e. to add Lima) But clearing up the situation for Vagrant and for WSL is a good thing... |
The main benefit is that it also supports Apple Silicon (ARM). Also that both Linux and Apptainer are installed automatically. Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
With the right template, it is one command to start the VM. And then one command to open a shell, with apptainer command. Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
BTW; I confirmed that using apptainer 1.1.2 worked fine in Ubuntu 22.04 on WSL2 (Windows 10) The vagrant installation was only tested on Linux, but there is no reason* why it wouldn't work ? * since nothing was changed from the previous documentation, except for adding an example Any bugs in Lima or WSL or Vagrant would not be handled by Apptainer anyway, but by "them". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the contribution.
Note: I'm saving the discussion on how to handle Windows paths and macOS paths for another time. The current setup assumes that you want to get a Linux shell - and then take it from there... A future improvement would be to describe how you can stay in your own OS - but run i.e. how to get |
Description of the Pull Request (PR):
Support for Apptainer is already in the main branch of Lima,
and it will be released in the upcoming version of lima (v0.13)
https://github.com/lima-vm/lima/releases
The main benefit* is that it also supports Apple Silicon (ARM).
Also that both Linux and Apptainer are installed automatically**.
https://github.com/lima-vm/lima#readme
* when compared to VirtualBox and Vagrant
** Singularity Vagrant box was deprecated
The Windows version is still only in a proof-of-concept phase:
On Mac it uses the HVF acceleration, on Windows it uses WHPX.
It is also possible to run on Linux, where it uses KVM acceleration.
Typical installation:
brew install lima
limactl start template://apptainer
Then it can be used:
apptainer
apptainer.lima
(on Linux)Currently the VM is based on Fedora, since it is not in Ubuntu...
You can install the "ubuntu" template and the .deb file, manually.
It is also possible to use Rocky (bigger) or Alpine (smaller) VM,
by installing the "apptainer" package for each Linux distribution.