Singularity: running Singularity on WSL

Created on 26 Jul 2018  路  4Comments  路  Source: hpcng/singularity

Version of Singularity:

2.4.2-dist

Expected behavior

run singularity pull shub://vsoch/hello-world without error in windows subsystem for linux (Ubuntu 18.04)

Actual behavior

Throws Error: Called singularity_config_get_value on unitialized config subsystem

Any ideas what is going wrong here? Is WSL supported at all?

Most helpful comment

Thanks @rickstaa - WSL2 was mentioned in the more recent issue here: https://github.com/sylabs/singularity/issues/4518

All 4 comments

@kkmann - at present, WSL does not implement some of the system calls that singularity uses. Running under WSL is not supported.

I'm not sure if WSL is likely to add support for the missing things Singularity needs. Since they are generally related to mounting filesystems to construct the container, and Windows has a very different filesystem structure, full support may not appear through WSL. We keep an eye on what Microsoft are adding, though.

Thanks for the info, lets hope for the best then ;)

@kkmann @dctrud For me Singularity appears to be inside WSL2. As explained here you are only not yet able to access the GPU. Additionally, the PS does not display the correct path.

Thanks @rickstaa - WSL2 was mentioned in the more recent issue here: https://github.com/sylabs/singularity/issues/4518

Was this page helpful?
0 / 5 - 0 ratings