Skip to content

using mpirun in a HPC cluster's node: SLURM process starter for OpenMPI was unable to locate a usable "srun" command in its path, hostname vs /etc/hosts #1696

Discussion options

You must be logged in to vote

By default, Singularity has a bind path = /etc/hosts entry in its singularity.conf configuration file. It also has config resolv_conf = yes set. Together, these mean that the host's /etc/hosts file will be available in the container, and that the /etc/resolv.conf in the container will be set to use the DNS server that's configured on the host. This should replicate the resolution of the hostname that succeeds when you ping it outside of the container.

Have either of these options been disabled in singularity.conf?

No both are there

config resolv_conf = yes
bind path = /etc/localtime
bind path = /etc/hosts
  • Note any changes that have been made to singularity.conf from the defaults.
    Def…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@SomePersonSomeWhereInTheWorld
Comment options

@dtrudg
Comment options

@SomePersonSomeWhereInTheWorld
Comment options

Answer selected by dtrudg
@dtrudg
Comment options

@SomePersonSomeWhereInTheWorld
Comment options

@dtrudg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1695 on May 22, 2023 08:19.