Discussion:
Is it possible to use a host file behind NAT and different users?
(too old to reply)
DeMarcus
2009-03-24 16:38:27 UTC
Permalink
Hi!

I try to set up OpenMPI on my virtual SuSE 11.1 machine in VMware. It
works fine. This Linux machine is behind NAT and in mpirun I want to set
a host file pointing to another eight proc machine that I can access
with ssh. However, on that 8p machine I have another user account.

When I type mpirun --hostfile hostfile.txt --np 10 ./my_prog
then it starts but freezes. If I enable the password on the 8p machine
it actually asks me for password before it freezes.

Is it possible to run mpirun from behind NAT with a host file that would
look like below?

***@eight_p_machine


Thanks.
Daniel
Georg Bisseling
2009-03-27 11:56:37 UTC
Permalink
Post by DeMarcus
Hi!
I try to set up OpenMPI on my virtual SuSE 11.1 machine in VMware. It
works fine. This Linux machine is behind NAT and in mpirun I want to set
a host file pointing to another eight proc machine that I can access
with ssh. However, on that 8p machine I have another user account.
When I type mpirun --hostfile hostfile.txt --np 10 ./my_prog
then it starts but freezes. If I enable the password on the 8p machine
it actually asks me for password before it freezes.
Is it possible to run mpirun from behind NAT with a host file that would
look like below?
Thanks.
Daniel
A machine behind a NAT will generally not be able to play the
role of a TCP server. Chances are that OpenMPI's startup requires
the MPI rank running on your VM behind the NAT to act as a TCP
server.

To circumvent that and to get to the "usual" ssh and password
problems you could try to run your VM with a bridged network
and assign a static IP address - if you are allowed to do that.
--
This signature intentionally left almost blank.
http://www.this-page-intentionally-left-blank.org/
Loading...