Skip to content
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

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

afbjorklund
Copy link
Contributor

@afbjorklund afbjorklund commented Oct 19, 2022

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.

@afbjorklund
Copy link
Contributor Author

afbjorklund commented Oct 19, 2022

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 dnf command will never complete, but gets OOM-killed and dies...

installation.rst Outdated Show resolved Hide resolved
installation.rst Outdated Show resolved Hide resolved
installation.rst Outdated Show resolved Hide resolved
@afbjorklund
Copy link
Contributor Author

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>
installation.rst Outdated Show resolved Hide resolved
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>
@afbjorklund
Copy link
Contributor Author

afbjorklund commented Oct 21, 2022

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".

Copy link
Contributor

@DrDaveD DrDaveD left a 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.

@DrDaveD DrDaveD merged commit 64c0658 into apptainer:main Oct 21, 2022
@afbjorklund
Copy link
Contributor Author

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 apptainer.

i.e. how to get wsl apptainer or lima apptainer to work, with all of the path mapping etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants