unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Simen Endsjø" <contact@simendsjo.me>
To: help-guix@gnu.org
Subject: Not sure how to add an offload server
Date: Sat, 02 Nov 2024 23:13:33 +0100	[thread overview]
Message-ID: <87plndi8s2.fsf@simendsjo.me> (raw)


Hi, I have some problems creating my own offload server.

Adding a build-machine section in guix-configuration fills
/etc/guix/machines.scm.

But when I do `guix offload test` or status, it checks
/usr/local/etc/guix/machines.scm and not /etc/guix/machinecs.scm.

Adding the build machine in that line works, but then it doesn't look like it
checks /etc/guix/acl. The key is listed there, but `guix offload test` still
complains that the key isn't trusted.

(guix-service-type config => (guix-configuration
                                                    (inherit config)
                                                    (authorized-keys
                                                     (append (list (plain-file "simendsjo-ser7"
                                                                               "(public-key (ecc (curve Ed25519) (q #65EB2980FCA088C7D2C4200DAB417ABB96424ECC5EE65F3BD7F7B1F7D4FD093E#)))"))
                                                             %default-authorized-guix-keys))
                                                    (build-machines
                                                     (list '(build-machine
                                                            ;; simendsjo-ser7
                                                            (name "192.168.0.5")
                                                            (port 52571)
                                                            (user "simendsjo")
                                                            (systems (list "x86_64-linux"))
                                                            (host-key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMjlkRdkV7AXzKpQyNY/0g7SKaECxC6JxcinzchDqQt5 root@(none)")
                                                            (private-key "/home/simendsjo/.ssh/id_rsa")
                                                            (speed 2)))))))
                                                            
$ guix offload test
guix offload: testing 1 build machines defined in '/usr/local/etc/guix/machines.scm'...
guix offload: Guix is usable on '192.168.0.5' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: '192.168.0.5' is running GNU Guile 3.0.9
guix offload: sending 1 store item (0 MiB) to '192.168.0.5'...
exporting path `/gnu/store/pf0w80gakb3bj28xvcvyajcnwgxbnkvj-export-test'
guix offload: error: unauthorized public key: (public-key
 (ecc
  (curve Ed25519)
  (q #65EB2980FCA088C7D2C4200DAB417ABB96424ECC5EE65F3BD7F7B1F7D4FD093E#)
  )
 )


             reply	other threads:[~2024-11-02 22:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-02 22:13 Simen Endsjø [this message]
2024-11-03 14:06 ` Not sure how to add an offload server 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ø
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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plndi8s2.fsf@simendsjo.me \
    --to=contact@simendsjo.me \
    --cc=help-guix@gnu.org \
    /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.
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).