Hi Jan, Jan Nieuwenhuizen writes: > Yes, this is excellent. I started playing with it using a deploy-vm.sh > script (see attached). It took me a few iterations to get all bits > right; I mistook the host's signing-key's error message for an ssh > authentication problem, e.g. > > This works great so I am already using it now; together with channels it > simplifies my deployments a lot. Glad to hear you were able to get it working! And thanks for sharing those scripts. I spin up GuixSD virtual machines very frequently to work on this, and these look like they'd make that workflow much easier. > I found that I cannot deploy to older machines, running 0.16 or earlier. > Not really a problem but it should at least be documented, I think. > > Here's what deploying to a 0.16 machine gives me > > + guix deploy deploy-vm.scm > substitute: updating substitutes from 'http://guix1.oban.verum.com:8181'... 100.0% > substitute: updating substitutes from 'http://guix3.oban.verum.com:8181'... 100.0% > substitute: updating substitutes from 'http://janneke.lilypond.org:8080'... 100.0% > sending 142 store items (745 MiB) to 'localhost'... > sending 3 store items (0 MiB) to 'localhost'... > Backtrace: > 7 (primitive-load "/gnu/store/rl2fvwwdj9n82yjhc8v1yygy5c0zwnkb-profile/bin/guix") > In guix/ui.scm: > 1659:12 6 (run-guix-command _ . _) > In guix/store.scm: > 623:10 5 (call-with-store _) > In srfi/srfi-1.scm: > 640:9 4 (for-each # (#< system: #…>)) > In guix/store.scm: > 1803:24 3 (run-with-store # _ #:guile-for-build _ #:system _ #:target _) > In gnu/machine/ssh.scm: > 339:2 2 (_ _) > In guix/remote.scm: > 122:20 1 (_ _) > 66:17 0 (%remote-eval _ _) > > guix/remote.scm:66:17: In procedure %remote-eval: > Throw to key `srfi-34' with args `(# name: \"root\" password: \"\" uid: 0 group: \"root\" supplementary-groups: () comment: \"System administrator\" home-directory: # create-home-directory?: #t shell: \"/gnu/store/qn1ax1fkj16x280m1rv7mcimfmn9l2pf-bash-4.4.23/bin/bash\" system?: #f>")] 716f00>>)'. > + ssh -i id_rsa -p 10022 root@localhost guix system list-generations > > After manually reconfiguring the machine to 1.0 it works, but that > already starts to feel clumsy :) I believe this is the same issue that Ricardo ran into when deploying to ci.guix.gnu.org. Sorry about that. Better error handling is something I'm working on at the moment. Though, I'm not quite sure what to do about this issue in particular, as (if I understand correctly) we concluded that this was a problem with the 'user-homes' service, and the idea of rolling out a workaround specific to that in 'guix deploy' doesn't sit particularly well with me. > Anyway, very impressive and a big thank you Jakob! Thank you! Regards, Jakob