unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Installing guix on a cluster
@ 2022-11-29 13:53 Reza Housseini
  2022-12-02  8:50 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Reza Housseini @ 2022-11-29 13:53 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 1303 bytes --]

Hi Guixers

I installing guix on our institutes cluster and followed the 
instructions in this blog post [1]. But there are a couple of problems I 
stumbled upon:

- There is no mention how to mount the nfs shares on the nodes. I added 
them to the /etc/fstab file but I'm unsure about the mount options
- Thers is no guix binary on the nodes. I added a symlink to 
/var/guix/profiles/per-user/root/current-guix/bin/guix in /usr/local/bin 
but when I try to install a package from a node I get an open-file 
permission denied for /var/guix/profiles/per-user/root/guix-profile.lock
- In this email [2] it was mentioned I don't have to pass listen to the 
guix-daemon, as the socket gets shared over nfs, but when I remove the 
listen argument and try to install a package from a node I get a failed 
to connect to /var/guix/daemon-socket/socket: connection refused

Can anyone share there cluster setup for guix, as right now the 
documentation lacks some crucial information.

Thanks for the great work!

Cheers,

[1] https://hpc.guix.info/blog/2017/11/installing-guix-on-a-cluster/
[2] https://yhetil.org/guix/87h8d8dl6d.fsf@roquette.mug.biscuolo.net/
-- 
Reza Housseini

This message is signed with my GnuPG key:

     C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Installing guix on a cluster
  2022-11-29 13:53 Installing guix on a cluster Reza Housseini
@ 2022-12-02  8:50 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-12-02  8:50 UTC (permalink / raw)
  To: Reza Housseini; +Cc: help-guix

Hi Reza,

Reza Housseini <reza.housseini@gmail.com> skribis:

> I installing guix on our institutes cluster and followed the
> instructions in this blog post [1]. But there are a couple of problems
> I stumbled upon:
>
> - There is no mention how to mount the nfs shares on the nodes. I
>   added them to the /etc/fstab file but I'm unsure about the mount
>  options

Just mount /gnu/store and /var/guix as NFS.  The store should be mounted
read-only; /var/guix must be writable.  But that’s about it, no special
options are needed.

> - Thers is no guix binary on the nodes. I added a symlink to
>   /var/guix/profiles/per-user/root/current-guix/bin/guix in
>   /usr/local/bin

Yes, that’s what needs to be done.

> but when I try to install a package from a node I get an open-file
> permission denied for
> /var/guix/profiles/per-user/root/guix-profile.lock

It looks like you’re running ‘guix’ on the node as root.  Try running it
as non-root instead.

(If you really want to be able to run ‘guix’ as root on the nodes, then
you need to pass the ‘norootsquash’ (not sure about the spelling) option
for the /var/guix NFS mount.  That’s not a great idea though.)

> - In this email [2] it was mentioned I don't have to pass listen to
>   the guix-daemon, as the socket gets shared over nfs, but when I
>   remove the listen argument and try to install a package from a node
>   I get a failed to connect to /var/guix/daemon-socket/socket:
>  connection refused

Unix-domain sockets cannot be shared over NFS.  You have to use the
‘--listen’ option and set ‘GUIX_DAEMON_SOCKET’ as explained in
<https://hpc.guix.info/blog/2017/11/installing-guix-on-a-cluster/>.

HTH!

Ludo’.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-02  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29 13:53 Installing guix on a cluster Reza Housseini
2022-12-02  8:50 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).