summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/guix.texi4
-rw-r--r--gnu/machine/hetzner.scm9
-rw-r--r--tests/machine/hetzner.scm4
3 files changed, 13 insertions, 4 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 93380dc30d4..9fd92b4891d 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -45397,7 +45397,9 @@ server type} this virtual server should be created with. For example,
45397@code{"cx42"} corresponds to a x86_64 server that has 8 VCPUs, 16 GB of 45397@code{"cx42"} corresponds to a x86_64 server that has 8 VCPUs, 16 GB of
45398memory and 160 GB of storage, while @code{"cax31"} to the AArch64 45398memory and 160 GB of storage, while @code{"cax31"} to the AArch64
45399equivalent. Other server types and their current prices can be found 45399equivalent. Other server types and their current prices can be found
45400@uref{https://www.hetzner.com/cloud/#pricing, here}. 45400@uref{https://www.hetzner.com/cloud/#pricing, here}. The @code{"cpx11"}
45401server type is currently not supported, since its rescue system is too
45402small to bootstrap a Guix system from.
45401 45403
45402@item @code{ssh-key} 45404@item @code{ssh-key}
45403The file name of the SSH private key to use to authenticate with the 45405The file name of the SSH private key to use to authenticate with the
diff --git a/gnu/machine/hetzner.scm b/gnu/machine/hetzner.scm
index 1d9a3f43857..bc8d2efbd34 100644
--- a/gnu/machine/hetzner.scm
+++ b/gnu/machine/hetzner.scm
@@ -551,6 +551,13 @@ chmod 700 /mnt/root/.ssh
551cp /root/.ssh/authorized_keys /mnt/root/.ssh/authorized_keys 551cp /root/.ssh/authorized_keys /mnt/root/.ssh/authorized_keys
552chmod 600 /mnt/root/.ssh/authorized_keys 552chmod 600 /mnt/root/.ssh/authorized_keys
553 553
554# Small instance don't have much disk space. Bind mount the store of the
555# rescue system to the tmp directory of the new Guix system.
556mkdir -p /mnt/tmp/gnu/store
557mkdir -p /gnu/store
558mount --bind /mnt/tmp/gnu/store /gnu/store
559
560apt-get install guix --assume-yes
554cat > /tmp/guix/deploy/hetzner-os.scm << EOF 561cat > /tmp/guix/deploy/hetzner-os.scm << EOF
555(use-modules (gnu) (guix utils)) 562(use-modules (gnu) (guix utils))
556(use-package-modules ssh) 563(use-package-modules ssh)
@@ -605,7 +612,7 @@ fdisk -l /dev/sda"
605 (format #f "#!/usr/bin/env bash 612 (format #f "#!/usr/bin/env bash
606set -eo pipefail 613set -eo pipefail
607apt-get update 614apt-get update
608apt-get install guix cloud-initramfs-growroot --assume-yes")) 615apt-get install cloud-initramfs-growroot --assume-yes"))
609 (format #t "successfully installed rescue system packages on '~a'\n" name))) 616 (format #t "successfully installed rescue system packages on '~a'\n" name)))
610 617
611(define (hetzner-machine-delete machine server) 618(define (hetzner-machine-delete machine server)
diff --git a/tests/machine/hetzner.scm b/tests/machine/hetzner.scm
index 39eac4a4d5f..1552bcb9a08 100644
--- a/tests/machine/hetzner.scm
+++ b/tests/machine/hetzner.scm
@@ -64,7 +64,7 @@
64 (environment hetzner-environment-type) 64 (environment hetzner-environment-type)
65 (configuration (hetzner-configuration 65 (configuration (hetzner-configuration
66 (labels %labels) 66 (labels %labels)
67 (server-type "cax41") 67 (server-type "cax11")
68 (ssh-key %ssh-key-file))))) 68 (ssh-key %ssh-key-file)))))
69 69
70(define %x86-machine 70(define %x86-machine
@@ -76,7 +76,7 @@
76 (environment hetzner-environment-type) 76 (environment hetzner-environment-type)
77 (configuration (hetzner-configuration 77 (configuration (hetzner-configuration
78 (labels %labels) 78 (labels %labels)
79 (server-type "cpx51") 79 (server-type "cx22")
80 (ssh-key %ssh-key-file))))) 80 (ssh-key %ssh-key-file)))))
81 81
82(define (cleanup machine) 82(define (cleanup machine)