From: "Simen Endsjø" <contact@simendsjo.me>
To: "Tomas Volf" <~@wolfsden.cz>
Cc: help-guix@gnu.org
Subject: Re: Not sure how to add an offload server
Date: Thu, 07 Nov 2024 09:03:46 +0100 [thread overview]
Message-ID: <0f2459aa-dea2-45ad-b888-149cf0f5b46d@app.fastmail.com> (raw)
In-Reply-To: <87bjyrc49c.fsf@wolfsden.cz>
Strange! I found out the error was passed by the offload server, so it was
complaining that it didn't trust my laptop! I added my laptop to authorized
keys on the server, and then it works! `guix archive --authorize` complains that
it should be set in the system configuration for Guix SD though, so I did that.
But /usr/local is a mystery. I tried deleting it, but a reconfigure added back
/usr/local/guix/acl. And `guix offload` commands still uses (the now missing
file) /etc/local/guix/machines.scm by default.
A difference between our configurations is that I'm modifying build-machines in
the original guix-configuration using modify-services. But that really shouldn't
make any difference, should it?
On Thu, Nov 7, 2024, at 00:49, Tomas Volf wrote:
> Simen Endsjø <contact@simendsjo.me> writes:
>
> > I don't understand how /etc/guix and /usr/local/etc/guix fits together.
> > /usr/local/etc/guix/acl does not contain the public key, but it exists
> > and symlinks to a store item.
>
> They should not fit together, /usr/local does not exist at all on my
> GuixSD system.
>
> > Could someone link me to a working offload setup?
>
> These two blocks are all I need.
>
> --8<---------------cut here---------------start------------->8---
> (define %build-machines
> (list #~(build-machine
> (name "some-server")
> (systems (list "x86_64-linux" "i686-linux" "aarch64-linux"))
> (host-key "some-host-key")
> (user "build-offload")
> (parallel-builds 4)
> (overload-threshold #f)
> (private-key "/some/key"))))
> --8<---------------cut here---------------end--------------->8---
>
> --8<---------------cut here---------------start------------->8---
> (simple-service 'offload guix-service-type
> (guix-extension
> (build-machines %build-machines)))
> --8<---------------cut here---------------end--------------->8---
>
> (Well, I also needed to authorized the keys using `guix archive', as the
> manual instructs. And create the `build-offload' user on the server
> with allowed login by ssh key.)
>
> T.
>
> --
> There are only two hard things in Computer Science:
> cache invalidation, naming things and off-by-one errors.
>
>
> *Attachments:*
> • signature.asc
next prev parent reply other threads:[~2024-11-07 8:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-02 22:13 Not sure how to add an offload server Simen Endsjø
2024-11-03 14:06 ` Tomas Volf
2024-11-03 15:05 ` Simen Endsjø
2024-11-06 21:20 ` Simen Endsjø
2024-11-06 23:49 ` Tomas Volf
2024-11-07 8:03 ` Simen Endsjø [this message]
2024-11-07 9:06 ` Hilton Chain
2024-11-07 11:17 ` Simen Endsjø
2024-11-07 14:35 ` Felix Lechner via
2024-11-07 21:17 ` Simen Endsjø
2024-11-07 21:51 ` Simen Endsjø
2024-11-07 21:59 ` Simen Endsjø
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0f2459aa-dea2-45ad-b888-149cf0f5b46d@app.fastmail.com \
--to=contact@simendsjo.me \
--cc=help-guix@gnu.org \
--cc=~@wolfsden.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.