GNU logs - #76501, boring messages


Message sent to ludo@HIDDEN, maxim.cournoyer@HIDDEN, guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH 0/1] Fix deployment of smaller Hetzner instances
Resent-From: Roman Scherer <roman@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: ludo@HIDDEN, maxim.cournoyer@HIDDEN, guix-patches@HIDDEN
Resent-Date: Sun, 23 Feb 2025 12:16:02 +0000
Resent-Message-ID: <handler.76501.B.174031291510910 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 76501 <at> debbugs.gnu.org
Cc: Roman Scherer <roman@HIDDEN>, me@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
X-Debbugs-Original-To: guix-patches@HIDDEN
X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.174031291510910
          (code B ref -1); Sun, 23 Feb 2025 12:16:02 +0000
Received: (at submit) by debbugs.gnu.org; 23 Feb 2025 12:15:15 +0000
Received: from localhost ([127.0.0.1]:59692 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmAt9-0002pt-6l
	for submit <at> debbugs.gnu.org; Sun, 23 Feb 2025 07:15:15 -0500
Received: from lists.gnu.org ([2001:470:142::17]:49776)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <roman@HIDDEN>)
 id 1tmAt4-0002k7-QP
 for submit <at> debbugs.gnu.org; Sun, 23 Feb 2025 07:15:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <roman@HIDDEN>)
 id 1tmAsu-0008Bk-Qy
 for guix-patches@HIDDEN; Sun, 23 Feb 2025 07:15:02 -0500
Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <roman@HIDDEN>)
 id 1tmAss-0000AJ-2C
 for guix-patches@HIDDEN; Sun, 23 Feb 2025 07:15:00 -0500
Received: by mail-ej1-x629.google.com with SMTP id
 a640c23a62f3a-aaedd529ba1so430819266b.1
 for <guix-patches@HIDDEN>; Sun, 23 Feb 2025 04:14:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1740312894;
 x=1740917694; darn=gnu.org; 
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=D8B/aavNbhUCEn6U6VazTU7E/O1idPRNym5CcBwAIWM=;
 b=JNLOlf53AAcxMFJD2gWwJoaY2QRBLn3mdZAWlzF2Qu2ofKka3aMBp3byqs2+TVXEh5
 vLRm7hB5qrx0XW9wFN8nODG0D8qF69Ya8X3NjTySFOm6bY+rfOPLQZ2mIxgGQWaCDfRQ
 ttv9rtUqqMeyKZHTmfEcfTUaD+OMwZqtKe3iOqv41hk1ILkUKusb/HAK2MgqyZUyIELP
 9QmIi9cHl54NfsYi+USubBMh+QEXhwK+CAB2+A7h5PYCtLeoRdnfthGU1/XHEoUP//Zq
 ylpQ5DKyF+pBq3jHTCa+mRGFcNCsTOoSzVQBJhLOaVIF9okXf0oiH4/ktVgPYwVFKMrC
 ASLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740312894; x=1740917694;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=D8B/aavNbhUCEn6U6VazTU7E/O1idPRNym5CcBwAIWM=;
 b=Lq76Qq0nezix0OVrT0sHNWtsmI7LDv4GiSO6jQsG1PqQ4otOzUtHufFAQVvo7C4mk6
 35L0OlsTMmWSR3XI20gOGEJ7rysoYBtzEgPxLD1V51XTytxlXjnc4isTr19yIqmOFkPy
 5gzg38HbTkXp5Pga5eJLy46Vh9IUE8JTRKXHDLjs244WQrAzyMLXbgYjAMaCM1PnRiuC
 9TNa9b471NAv0N5Pq1jGJ+6wrfJ1ZBevWkuf0v3gWEdCoxLiLwOuCgz3bgidaVVQ7PB8
 LNsIJAJD33Q5v/ip8g9s8sNI42z66PW4onKh1Z9cCGGIthSPqubKuZq1VMag5F0a5BHQ
 5Flw==
X-Gm-Message-State: AOJu0Yws5aamiJdCbxVUshRpKhVwWHTa/H8BHwsFCQtuT+DBoGDCHGBY
 Bbpvpy77j2QKI9fnza8MGj/eESaOiN6ex3IZ/MtKybtXacdrJSqMiKiAVV+UKLfYlxHFOnEyfmz
 0xAw=
X-Gm-Gg: ASbGncu9wyendfjPpZz+ygSSa+AVhFCplmvKZIZJTefAT7ma+ePeTt+Y+A0tZz+dlaw
 IJwtk2M+yCYSyEFqUtz6H8qACWbB98RgNOwVV/G54CmOsY+xnj16N0NqQgDThpX019KD+g7iiUB
 XnV5x/fHrpBGequPl304kymXm3Sq2g8LgbL1umqi84/NtnRxoUzqiS9MbwEXYNVMQ4QwviD19vS
 SjFjq7wGg1erTqhHEOPnZDIIg01sW9Pa4c8/IHW6H6DJQugzTRjA+PzR/GKbepDMHx56zYzckYK
 TWo4StiCz8tr1swfnSnY4oH0pnDdLg==
X-Google-Smtp-Source: AGHT+IFsDW2m01SI0eV22BU39+obmxd8XCf9wtajqMcc9eSxqWtQjUFj8qXrQFVOWkHjf+9I58zf1g==
X-Received: by 2002:a05:6402:3585:b0:5d0:c697:1f02 with SMTP id
 4fb4d7f45d1cf-5e0b71124e6mr25148773a12.17.1740312892845; 
 Sun, 23 Feb 2025 04:14:52 -0800 (PST)
Received: from precision.. ([2a01:599:102:b293:733:e20f:faad:8ab3])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-5dece1b4debsm16715837a12.15.2025.02.23.04.14.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 23 Feb 2025 04:14:52 -0800 (PST)
From: Roman Scherer <roman@HIDDEN>
Date: Sun, 23 Feb 2025 13:14:48 +0100
Message-ID: <cover.1740312673.git.roman@HIDDEN>
X-Mailer: git-send-email 2.48.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: none client-ip=2a00:1450:4864:20::629;
 envelope-from=roman@HIDDEN; helo=mail-ej1-x629.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello Guix,

Fabio Natali reached out to me that there is an "out of disk space" issue when
deploying smaller instances with the hetzner-environment-type.

I thought I tried it on smaller instances. But either I didn't try it on the
smaller instances, or another theory: I tried it back in the day, but Guix got
larger in the meantime?

Looking closer I discovered that the size of the root partition of the rescue
system depends on the instance type, and is a lot smaller on those smaller ones.

On a cax11 instance, booted into the rescue system from which a minimal Guix
system is installed, "df -h" shows:

Filesystem                    Size  Used Avail Use% Mounted on
udev                          1.9G     0  1.9G   0% /dev
[2a01:4ff:ff00::b007:1]:/nfs  1.2T  999G  151G  87% /root/.oldroot/nfs
overlay                       1.9G  1.9G     0 100% /
tmpfs                         1.9G     0  1.9G   0% /dev/shm
tmpfs                         768M  864K  767M   1% /run
tmpfs                         5.0M     0  5.0M   0% /run/lock
/dev/sda1                      38G   44K   36G   1% /mnt
/dev/sda15                    244M  152K  244M   1% /mnt/boot/efi
tmpfs                         384M     0  384M   0% /run/user/0

The 1.9G of / on the the rescue system seem to be not enough to host Guix
installed as a foreign distro on the rescue system, plus the packages needed
to install the new Guix bootstrap system.

To fix this I came up with the following solution:

- before installing Guix on the rescue system, I make sure that /gnu/store has
  enough space.

- this is done by bind mounting /mnt/tmp/gnu/store (here /mnt is the root of
  the new Guix system having more disk space) to /gnu/store.

- then Guix is installed with apt-get on the rescue system using the store
  that points into the tmp directory of the new Guix system.

- A minimal Guix system is installed onto /mnt, rebooted and from there the
  final operating system config is applied. When the minimal Guix system
  boots, the /tmp/gnu/store is gone and not used anymore.

This seems to work. I have tried it and Fabio also reported that it works for
him.

What do you think of this strategy? Is there a better one?

I attached a patch for this and also changed the instance type that are used
in the tests to smaller ones, so this is covered for the future. Could you
please review it?

Fabio also asked me why I choose to use medium sized instances as the default
instead of the smallest. My thinking was so people trying this for the first
time have a good experience and not have to deal with an under-powered
instance. I would leave it that way. If you think we should default to smaller
ones, please let me know.

Unfortunatly the above solution did not work with the smallest CPX11 instance,
with 2 VCPUs, 2 GB of RAM and 40 GB disk space.

The rescue system only 970M:

root@rescue /usr/lib # df -h
Filesystem                    Size  Used Avail Use% Mounted on
udev                          961M     0  961M   0% /dev
[2a01:4ff:ff00::b007:1]:/nfs  1.2T  999G  151G  87% /root/.oldroot/nfs
overlay                       970M  821M  150M  85% /
tmpfs                         970M     0  970M   0% /dev/shm
tmpfs                         388M  668K  388M   1% /run
tmpfs                         5.0M     0  5.0M   0% /run/lock
/dev/sda1                      38G  1.3G   34G   4% /mnt
/dev/sda15                    241M  142K  241M   1% /mnt/boot/efi
tmpfs                         194M     0  194M   0% /run/user/0

Installing Guix via apt-get works. But when installing the minimal bootstrap
Guix system it fails with:

...
downloading from https://ci.guix.gnu.org/nar/lzip/lclbcq0jds63zal1p55g6v0mwz90s44y-guile-git-0.5.2 ...
downloading from https://ci.guix.gnu.org/nar/gzip/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34 ...
downloading from https://ci.guix.gnu.org/nar/gzip/v06gnr579r0jmr36aha3wkbd1y27ccg7-disarchive-0.4.0 ...
downloading from https://ci.guix.gnu.org/nar/lzip/9nvx97hr8kkr26gzwni2fblfn0yq0xjw-guix-1.4.0rc2 ...

error (ignored): aborting transaction: cannot rollback - no transaction is active
guix system: error: committing transaction: database or disk is full

Not sure what to do about that. I added a note to the manual that CPX11
instances are not supported at the moment.

Thanks Roman.

Roman Scherer (1):
  gnu: machine: hetzner: Fix deployment on smaller instances.

 doc/guix.texi             | 4 +++-
 gnu/machine/hetzner.scm   | 9 ++++++++-
 tests/machine/hetzner.scm | 4 ++--
 3 files changed, 13 insertions(+), 4 deletions(-)


base-commit: 5f4c785fc3caa0fd960ebcf9c1ea6ab396b96f25
--
2.48.1




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Roman Scherer <roman@HIDDEN>
Subject: bug#76501: Acknowledgement ([PATCH 0/1] Fix deployment of smaller
 Hetzner instances)
Message-ID: <handler.76501.B.174031291510910.ack <at> debbugs.gnu.org>
References: <cover.1740312673.git.roman@HIDDEN>
X-Gnu-PR-Message: ack 76501
X-Gnu-PR-Package: guix-patches
X-Gnu-PR-Keywords: patch
Reply-To: 76501 <at> debbugs.gnu.org
Date: Sun, 23 Feb 2025 12:16:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
  Ludovic Court=C3=A8s <ludo@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@gma=
il.com>
(after having been given a bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 guix-patches@HIDDEN

If you wish to submit further information on this problem, please
send it to 76501 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
76501: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76501
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to ludo@HIDDEN, maxim.cournoyer@HIDDEN, guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH 1/1] gnu: machine: hetzner: Fix deployment on smaller instances.
Resent-From: Roman Scherer <roman@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: ludo@HIDDEN, maxim.cournoyer@HIDDEN, guix-patches@HIDDEN
Resent-Date: Sun, 23 Feb 2025 12:23:02 +0000
Resent-Message-ID: <handler.76501.B76501.174031333812109 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 76501 <at> debbugs.gnu.org
Cc: Roman Scherer <roman@HIDDEN>, me@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Received: via spool by 76501-submit <at> debbugs.gnu.org id=B76501.174031333812109
          (code B ref 76501); Sun, 23 Feb 2025 12:23:02 +0000
Received: (at 76501) by debbugs.gnu.org; 23 Feb 2025 12:22:18 +0000
Received: from localhost ([127.0.0.1]:59713 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmAzx-00039E-Vi
	for submit <at> debbugs.gnu.org; Sun, 23 Feb 2025 07:22:18 -0500
Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:45350)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman@HIDDEN>)
 id 1tmAzu-00038s-Hx
 for 76501 <at> debbugs.gnu.org; Sun, 23 Feb 2025 07:22:15 -0500
Received: by mail-ed1-x533.google.com with SMTP id
 4fb4d7f45d1cf-5dee07e51aaso6685889a12.3
 for <76501 <at> debbugs.gnu.org>; Sun, 23 Feb 2025 04:22:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1740313328;
 x=1740918128; darn=debbugs.gnu.org; 
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=qUaQEptG4Kv6xkCmrWYu8NzpL52Ed8FzFfB8z69Dp9w=;
 b=x/uuKr8HkAnQjrumI3dm0TWn+554RkxdtJyjLu5n1N07tDjpZ3FtlWCMewbMWOibtj
 erqZw8EG48kYyBKrzHuq9CyabgzdcESAZu9uBSy1Lj4l0rU7aCE/O99XXRhUtBectVcL
 oyAcxRchXMhuyoPYpEJsGJ2P3VKHkHO0abyDv3bwq5usyM/Q6uQpHGqaUptK8aiRRodL
 10fjVc97YRHC6Ayn0Tm/Iqd8SW3wPU53fEeWvCGv+Nyi5jkgk0bqUfObeWI57zfJg+om
 RbtVtCefbiYpJpNn1JSMnX4IJRILKER1Jmj120EacARQNy9Ukdatb7uujRxA6ntZ0ug5
 ne4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740313328; x=1740918128;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=qUaQEptG4Kv6xkCmrWYu8NzpL52Ed8FzFfB8z69Dp9w=;
 b=uL+biECVlWJFyY0T7VIxN3Qm5aMFhQGPoyooPRKq0tBAnQHa821FrgRWI2hOYROWrH
 UtHO+cScFZlYQSQ9yRED3fgEC9iQCcICcKiV3ilcNR8EeWl8KTQiXvx3IRHeOn/Kz1FM
 LPt6hNN/TSoLSEgO6JK8qHCYAW3I1L36x3HDrOe9RwKkn3lSirknNgvOM38+hz8ebYx3
 cfFcMElQqOZL3zatmp4zjf3UpdUxcl9Ig9MJAoYIZG2sGBUlmdOyeHPTtfsmSOQiWxZO
 ROb4VJnlDRB7ue3/QBGSG9mimG+/HGmqxH/zuIhcSkA7zgx7ZAeJgMP/i85F0PSWOdQm
 LfbQ==
X-Gm-Message-State: AOJu0YyyoYybqiLgNeoqNWMD8UJC4gbeWqRR6aipRUrjnNNEgHR6sN9m
 Fsg60KZB61Hntd36ig+PEIFe95EszHWt9xawlRRIzmYnQrtopN0pe/7zmRIy85n9K0/jKuqHXoj
 OMw4=
X-Gm-Gg: ASbGncsxbLzgM2qNO2acsW8uwxHhjBmV1q6SaaDmSv8Y/jqFq+t3qVnougknRJRTzFI
 FJkrMsZx0DFG5ivKlegU260CE6bB3FiBW0npOnaaelN368LSPQmH5E/2XFLgAN46RL8pS/np6QF
 /kdK/MKzQhNhQy9eZ9/ukOIMttqPpWoVQyPCTcePJayyK519GXhXii4hrej0nK7Uv36DeDOaHk/
 xjIxyAxo8wfnYH4U7RheQnM5FuiJr1s/upXBgGAcHhhBvuPbAhdyChYqEVY6d/f79bvCPR9cAgL
 s4q0FDzxe1i/YwmkxSLeVVE/DMQUTgk=
X-Google-Smtp-Source: AGHT+IH4HV0kr0CQAhZeJWl4/kDVqWMgRdprG6Tbsv7Z9jnBm5vIT48uGSnku3lTlqaGAM23KyC8Iw==
X-Received: by 2002:a05:6402:4606:b0:5dc:cf9b:b033 with SMTP id
 4fb4d7f45d1cf-5e0b70bc283mr8427557a12.5.1740313326967; 
 Sun, 23 Feb 2025 04:22:06 -0800 (PST)
Received: from precision.. ([2a01:599:102:b293:729a:6bf3:a9eb:445d])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-5ded69e7c33sm15758920a12.61.2025.02.23.04.22.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 23 Feb 2025 04:22:06 -0800 (PST)
From: Roman Scherer <roman@HIDDEN>
Date: Sun, 23 Feb 2025 13:22:01 +0100
Message-ID: <0c52c7795b0eb7c63b25cc61ecfd8de82c2e995e.1740312673.git.roman@HIDDEN>
X-Mailer: git-send-email 2.48.1
In-Reply-To: <cover.1740312673.git.roman@HIDDEN>
References: <cover.1740312673.git.roman@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/machine/hetzner.scm (hetzner-machine-rescue-install-os): Avoid out of
disk space error by bind mounting /mnt/tmp/gnu/store to /gnu/store.
* tests/machine/hetzner.scm: Test with smaller instances.
* doc/guix.texi: Mention unsupported instance.

Change-Id: If8bfb6733de493b51813b3e82e255849192f7cba
---
 doc/guix.texi             | 4 +++-
 gnu/machine/hetzner.scm   | 9 ++++++++-
 tests/machine/hetzner.scm | 4 ++--
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 83ba0f3292..51db3f9c77 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -45361,7 +45361,9 @@ Invoking guix deploy
 @code{"cx42"} corresponds to a x86_64 server that has 8 VCPUs, 16 GB of
 memory and 160 GB of storage, while @code{"cax31"} to the AArch64
 equivalent.  Other server types and their current prices can be found
-@uref{https://www.hetzner.com/cloud/#pricing, here}.
+@uref{https://www.hetzner.com/cloud/#pricing, here}.  The @code{"cpx11"}
+server type is currently not supported, since its rescue system is too
+small to bootstrap a Guix system from.
 
 @item @code{ssh-key}
 The 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 1d9a3f4385..e87149a06a 100644
--- a/gnu/machine/hetzner.scm
+++ b/gnu/machine/hetzner.scm
@@ -551,6 +551,13 @@ (define (hetzner-machine-rescue-install-os machine ssh-session server)
 cp /root/.ssh/authorized_keys /mnt/root/.ssh/authorized_keys
 chmod 600 /mnt/root/.ssh/authorized_keys
 
+# Small instance don't have much disk space.  Bind mount the store of the
+# resuce system to the tmp directory of the new Guix system.
+mkdir -p /mnt/tmp/gnu/store
+mkdir -p /gnu/store
+mount --bind /mnt/tmp/gnu/store /gnu/store
+
+apt-get install guix --assume-yes
 cat > /tmp/guix/deploy/hetzner-os.scm << EOF
 (use-modules (gnu) (guix utils))
 (use-package-modules ssh)
@@ -605,7 +612,7 @@ (define (hetzner-machine-rescue-install-packages machine ssh-session)
      (format #f "#!/usr/bin/env bash
 set -eo pipefail
 apt-get update
-apt-get install guix cloud-initramfs-growroot --assume-yes"))
+apt-get install cloud-initramfs-growroot --assume-yes"))
     (format #t "successfully installed rescue system packages on '~a'\n" name)))
 
 (define (hetzner-machine-delete machine server)
diff --git a/tests/machine/hetzner.scm b/tests/machine/hetzner.scm
index 39eac4a4d5..1552bcb9a0 100644
--- a/tests/machine/hetzner.scm
+++ b/tests/machine/hetzner.scm
@@ -64,7 +64,7 @@ (define %arm-machine
    (environment hetzner-environment-type)
    (configuration (hetzner-configuration
                    (labels %labels)
-                   (server-type "cax41")
+                   (server-type "cax11")
                    (ssh-key %ssh-key-file)))))
 
 (define %x86-machine
@@ -76,7 +76,7 @@ (define %x86-machine
    (environment hetzner-environment-type)
    (configuration (hetzner-configuration
                    (labels %labels)
-                   (server-type "cpx51")
+                   (server-type "cx22")
                    (ssh-key %ssh-key-file)))))
 
 (define (cleanup machine)
-- 
2.48.1





Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH 1/1] gnu: machine: hetzner: Fix deployment on smaller instances.
Resent-From: Fabio Natali <me@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Mon, 24 Feb 2025 12:07:01 +0000
Resent-Message-ID: <handler.76501.B76501.174039879929108 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Roman Scherer <roman@HIDDEN>, 76501 <at> debbugs.gnu.org
Received: via spool by 76501-submit <at> debbugs.gnu.org id=B76501.174039879929108
          (code B ref 76501); Mon, 24 Feb 2025 12:07:01 +0000
Received: (at 76501) by debbugs.gnu.org; 24 Feb 2025 12:06:39 +0000
Received: from localhost ([127.0.0.1]:38751 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmXEN-0007ZQ-1V
	for submit <at> debbugs.gnu.org; Mon, 24 Feb 2025 07:06:39 -0500
Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:49675)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <me@HIDDEN>)
 id 1tmXEI-0007Z4-I6
 for 76501 <at> debbugs.gnu.org; Mon, 24 Feb 2025 07:06:36 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id 2A24A442E0;
 Mon, 24 Feb 2025 12:06:25 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fabionatali.com;
 s=gm1; t=1740398787;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=Gwl282HUdM4qdcXJOp2ojxwtZ74tOYuutorFYTuiLQM=;
 b=TRuOu9WEW2Z2YOvoRjmvKEJVlOGrj3zQ3GM+aBhCHBk1qGXq0Bb41Sha5W6M2TuueBo2jB
 UuSgGvxIbLrBrlWUucl96xqqNuvY+5gOi4H/nDVfkpax1CddJVWpL59dUC0/yJzNJox24S
 xVGgWSlSWUDSg6eeTrWjZmXGGWQc8R8pbnTkwXOnI5YHf03gXD1rtGwqJCP1c/iIhEuv5g
 jk7Pvp8jBhJPeH3GgRVEPnS+nzOJHdoH7F6bnRuPgyXNEAAZW/xdTjgf5lq+vQPB3OLk9u
 shJZVv+I3rd/epbA5vXQm2na7SSpGTUCKAocyQhtJxZfplJnsOEqEvDxIZk8Rg==
From: Fabio Natali <me@HIDDEN>
In-Reply-To: <0c52c7795b0eb7c63b25cc61ecfd8de82c2e995e.1740312673.git.roman@HIDDEN>
References: <cover.1740312673.git.roman@HIDDEN>
 <0c52c7795b0eb7c63b25cc61ecfd8de82c2e995e.1740312673.git.roman@HIDDEN>
Date: Mon, 24 Feb 2025 12:06:25 +0000
Message-ID: <878qpv7dj2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdejkeejgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhephfgrsghiohcupfgrthgrlhhiuceomhgvsehfrggsihhonhgrthgrlhhirdgtohhmqeenucggtffrrghtthgvrhhnpedtiedvkefggfekledtkeeigfeukeehfefffeeuueduhfekudevhfeujedtudeuhfenucffohhmrghinhepfhgrsghiohhnrghtrghlihdrtghomhenucfkphepvddttddumeeksgdtmedutghffeemtgefieejmegugedttgemkeejjeekmegtleekieemvdelheeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddttddumeeksgdtmedutghffeemtgefieejmegugedttgemkeejjeekmegtleekieemvdelheekpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmvgesfhgrsghiohhnrghtrghlihdrtghomhdpnhgspghrtghpthhtohepvddprhgtphhtthhopehrohhmrghnsegsuhhrnhhinhhgshifvghllhdrtghomhdprhgtphhtthhopeejieehtdduseguvggssghughhsrdhgnhhurdhorhhg
X-GND-Sasl: me@HIDDEN
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2025-02-23, 13:22 +0100, Roman Scherer <roman@HIDDEN> wrote:
> * gnu/machine/hetzner.scm (hetzner-machine-rescue-install-os): Avoid out of
> disk space error by bind mounting /mnt/tmp/gnu/store to /gnu/store.
> * tests/machine/hetzner.scm: Test with smaller instances.
> * doc/guix.texi: Mention unsupported instance.

Hi All.

Thanks Roman for your work on 'hetzner-environment-type', it's really
cool that 'guix deploy' gets expanded with other integrations and
features. Also thanks for getting back to me so quickly when I reached
out the other day.

I confirm that the patch works well for me. I was able to provision
various cx22 (and above) Hetzner instances with it.

Just a cosmetic thing, here it should be "rescue":

> +# Small instance don't have much disk space.  Bind mount the store of the
> +# resuce system to the tmp directory of the new Guix system.

Thanks, best wishes, Fabio.


-- 
Fabio Natali
https://fabionatali.com




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH 1/1] gnu: machine: hetzner: Fix deployment on smaller instances.
Resent-From: Roman Scherer <roman@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Tue, 25 Feb 2025 10:28:03 +0000
Resent-Message-ID: <handler.76501.B76501.17404792711203 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Fabio Natali <me@HIDDEN>
Cc: Roman Scherer <roman@HIDDEN>, 76501 <at> debbugs.gnu.org
Received: via spool by 76501-submit <at> debbugs.gnu.org id=B76501.17404792711203
          (code B ref 76501); Tue, 25 Feb 2025 10:28:03 +0000
Received: (at 76501) by debbugs.gnu.org; 25 Feb 2025 10:27:51 +0000
Received: from localhost ([127.0.0.1]:44932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmsAI-0000JK-HY
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 05:27:50 -0500
Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:48596)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman@HIDDEN>)
 id 1tmsAE-0000Iu-WA
 for 76501 <at> debbugs.gnu.org; Tue, 25 Feb 2025 05:27:48 -0500
Received: by mail-ej1-x630.google.com with SMTP id
 a640c23a62f3a-aaf3c3c104fso932041466b.1
 for <76501 <at> debbugs.gnu.org>; Tue, 25 Feb 2025 02:27:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1740479260;
 x=1741084060; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=5K7KeF94rhkTye+Pj92qJ5YJ4XR9n4vvsZh8Q/Xe93k=;
 b=OZbnlE7zRPUokxuGlY0+mZ+GTUgIY6KLjbwSyS/V41iri4/K0EMG9wiLQtBzFO/S11
 fXZI92ifPpmwcohMPV24VduEqFFffx/M1UxNesltte2kKswhIVomfERW+UCYWtkafIBG
 vxRwImUkN4CEm30EjF2yRevvXstvYM8sMa67pPggVNLLAwC1/H+UYLn1iD1wLsESW9il
 yR903Zpc2bzAitZbF9k9Lp+kJbygoyFBv6EVlZs4r8GaKUmSgBb1pezE8w+SNPCu6SXD
 cNFmNyHq6HekVLKpmlVbzzebihJCwPeojQQTx1hc+e2AbP2y9MR1gJNxjmemMLPT6jyM
 pXkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740479260; x=1741084060;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=5K7KeF94rhkTye+Pj92qJ5YJ4XR9n4vvsZh8Q/Xe93k=;
 b=pS7kpp/TddeyMeUEte/l/V2Tv31ZrBZoaVgze+obC6MluMEkYUEz9dcumvg8ih2rvi
 0Z1h9VFX5eD4t7/Kll10TjypkHGkuYNdrqBj/2iusagQjIrzcvVeNpwEJO3u5L5rX8Ni
 JFB2TxF8OAfZfgBwPhPSn7K36AkEB675FVEua/jT52GSYQoLxsGWOzszpdg0X4foObxr
 u0kK5HMapUzvFwJoLAvyVlaPvF68u8NseWr74FN+gQcR5zumuyXHM/9SNw3vRwA5aKkb
 J8WhlnBTXiO0pht+kKk/RhDNuCDRQQhoMmazN+p6v2sxd08SHulRLY8L2qQXrpOuFpqq
 ljeA==
X-Forwarded-Encrypted: i=1;
 AJvYcCWynGhCEMG1C5GlLcDF3fDxWWhnPrlA7hMTaFU1F4f1Q1Uvg0d/oksVj0grHvXAsYXrJZ3USQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwkDiqKw/XSG2jY12Zbs9VScO/b7D/yYC76zn2dwGPqTgFyVcQK
 n4tvJtjLwds8tyqG+lLLM54w6Trxk/1MMyx86LhSWQ3BQ1NMQ5K1zI2CmyhcFqkjFOSeZSyGuaS
 9frY=
X-Gm-Gg: ASbGncvfnSM3rabKlPzjhvWfDQ7FgSm5xSFdOi68Q8m03u0tYOyggC/ktkT42DMW0rB
 3wPH3AZEeX23o9BxNlxgGzWJYkwJD+fozVkbQEKUsM65lgM6w3/06ctyM4nhLlThc1YBrqPjfmJ
 y6B6GtNz9HsLnTif0efX4GvFWYM7TtQQs+F6mvu2Y8aJsYR1DQSdXdQr4DGLqTSILURBIPhcrk0
 cMIMQECimQnUpwEnxOOJYbyUBgMXjLFYSIVIamQBGNsG8wk6tPCd+uLJp8p8XfzRKTousU6+t3s
 HJBkZgMRAL1sHaSBMHAcr4+b0iY=
X-Google-Smtp-Source: AGHT+IHEj2LfPbXB33TpnkzmiiOSA49jPeXpz/cte6gvxSCYnrwBkKjc19L/nQNw/Z0cc+8YiAjlxA==
X-Received: by 2002:a17:907:7744:b0:abb:6f30:32c7 with SMTP id
 a640c23a62f3a-abc0d99363cmr1442338266b.10.1740479260005; 
 Tue, 25 Feb 2025 02:27:40 -0800 (PST)
Received: from precision ([2a01:599:102:b293:2a2a:a053:433:a6ac])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-abed1d5b111sm119219366b.62.2025.02.25.02.27.37
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 25 Feb 2025 02:27:38 -0800 (PST)
From: Roman Scherer <roman@HIDDEN>
In-Reply-To: <878qpv7dj2.fsf@HIDDEN> (Fabio Natali's message of "Mon, 
 24 Feb 2025 12:06:25 +0000")
References: <cover.1740312673.git.roman@HIDDEN>
 <0c52c7795b0eb7c63b25cc61ecfd8de82c2e995e.1740312673.git.roman@HIDDEN>
 <878qpv7dj2.fsf@HIDDEN>
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Tue, 25 Feb 2025 11:27:36 +0100
Message-ID: <87eczme2uf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain


I also opened a support ticket at Hetzner with the request to have more
disk space on the rescue system of smaller instances. They said they
handed the request over to their customers team and will prioritize it,
depending on demand.

@Fabio / anyone listening: If you want to see this happening, maybe also
send them an email about this ;)

Fabio Natali <me@HIDDEN> writes:

> On 2025-02-23, 13:22 +0100, Roman Scherer <roman@HIDDEN> wrote:
>> * gnu/machine/hetzner.scm (hetzner-machine-rescue-install-os): Avoid out of
>> disk space error by bind mounting /mnt/tmp/gnu/store to /gnu/store.
>> * tests/machine/hetzner.scm: Test with smaller instances.
>> * doc/guix.texi: Mention unsupported instance.
>
> Hi All.
>
> Thanks Roman for your work on 'hetzner-environment-type', it's really
> cool that 'guix deploy' gets expanded with other integrations and
> features. Also thanks for getting back to me so quickly when I reached
> out the other day.
>
> I confirm that the patch works well for me. I was able to provision
> various cx22 (and above) Hetzner instances with it.
>
> Just a cosmetic thing, here it should be "rescue":
>
>> +# Small instance don't have much disk space.  Bind mount the store of the
>> +# resuce system to the tmp directory of the new Guix system.
>
> Thanks, best wishes, Fabio.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFLBAEBCAA1FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAme9mxgXHHJvbWFuQGJ1
cm5pbmdzd2VsbC5jb20ACgkQPdpSUn0qwZmQDgf/fjQ0ppuDRf8fXq5lkUPEUCgr
pf0uSiRVNn7/24YUBjSoZlX/R+6ldnNG/3LhAGzskpxiZi6f5H2AiOS9D3to+i12
kajGTcwL/2pdGHdeq3CVjCcUYidSCROcJ0Duq8gHFnUsltOc+nvF7gnNhWvqAh5j
xfGim6H0Zr2R5mQOgHELr3yqT61wS972gBZhzmRdUowbtEsjQeLIpJfTXGFfQXem
No6XnAwXnYbdDcTuCRjs/Nrs0kDwRQfBJp5gsLZZ70d0/s4F7/KQhjpcZVZZ8nkF
lbYQYUV61wf1fuGcaLOGB1ltUFAkgrAJf3mA0RbWJEjJxkZ2f3QVi/F2A/n6IQ==
=Mlab
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH 1/1] gnu: machine: hetzner: Fix deployment on smaller instances.
Resent-From: Fabio Natali <me@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Tue, 25 Feb 2025 13:22:01 +0000
Resent-Message-ID: <handler.76501.B76501.174048967613634 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Roman Scherer <roman@HIDDEN>
Cc: 76501 <at> debbugs.gnu.org
Received: via spool by 76501-submit <at> debbugs.gnu.org id=B76501.174048967613634
          (code B ref 76501); Tue, 25 Feb 2025 13:22:01 +0000
Received: (at 76501) by debbugs.gnu.org; 25 Feb 2025 13:21:16 +0000
Received: from localhost ([127.0.0.1]:45294 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmus7-0003Xq-Br
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 08:21:15 -0500
Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]:33781)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <me@HIDDEN>)
 id 1tmus0-0003Wn-ET
 for 76501 <at> debbugs.gnu.org; Tue, 25 Feb 2025 08:21:12 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id 813D74435C;
 Tue, 25 Feb 2025 13:20:59 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fabionatali.com;
 s=gm1; t=1740489659;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=/UusQANjeGtT/O5uU7Qt+KOwkZJ65ad6B6MjFYukcDU=;
 b=aYF6822dSAPtGGGWW3jMfaKJJlAnZtI5V6E1jiafZZ+/qwyZbxKTzRJn9p0S80pyTS4dwS
 NkJfiwg9/CgdnycSVSOENs5oxKKETWCehUsjI4r7zcNXofRHb43RAot8ALcmd8TuoBo7By
 ln1fQDJmOwrDPlPEFBUrxOkeflIfsGSwnHNT2CUDacVca4J71/52m9AX5P39QkyTHxW/gK
 wrgnugOwLyHML6hZqBLdvOblm47hp+XX5pdcYQfG+9grHqqjIuWuOp8bJLibZb38ONsH4I
 iVdM7lDkQBr551uAJTFXpx3S7aiAtfLqPp0V1p+DQsS2HM2axenfONSRynGyaA==
From: Fabio Natali <me@HIDDEN>
In-Reply-To: <87eczme2uf.fsf@HIDDEN>
References: <cover.1740312673.git.roman@HIDDEN>
 <0c52c7795b0eb7c63b25cc61ecfd8de82c2e995e.1740312673.git.roman@HIDDEN>
 <878qpv7dj2.fsf@HIDDEN> <87eczme2uf.fsf@HIDDEN>
Date: Tue, 25 Feb 2025 13:20:58 +0000
Message-ID: <87wmde5fet.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdekudekudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefhrggsihhoucfprghtrghlihcuoehmvgesfhgrsghiohhnrghtrghlihdrtghomheqnecuggftrfgrthhtvghrnhepgedvleetheefffelhfeiudejffeigeeihefhueekheejvdekgeegfeehhfdvleevnecuffhomhgrihhnpehfrggsihhonhgrthgrlhhirdgtohhmnecukfhppedvrgdttdemvdefvggvmedvkeekkeemfeeiugehmedukeduvdemleeikegumedvieekgeemjeelkegsnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddtmedvfegvvgemvdekkeekmeefieguheemudekuddvmeelieekugemvdeikeegmeejleeksgdphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhgvsehfrggsihhonhgrthgrlhhirdgtohhmpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheprhhomhgrnhessghurhhnihhnghhsfigvlhhlrdgtohhmpdhrtghpthhtohepjeeihedtudesuggvsggsuhhgshdrghhnuhdrohhrgh
X-GND-Sasl: me@HIDDEN
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2025-02-25, 11:27 +0100, Roman Scherer <roman@HIDDEN> wrote:
> I also opened a support ticket at Hetzner with the request to have more
> disk space on the rescue system of smaller instances. They said they
> handed the request over to their customers team and will prioritize it,
> depending on demand.
>
> @Fabio / anyone listening: If you want to see this happening, maybe also
> send them an email about this ;)

Hi Roman,

Absolutely, good idea and glad to do that. I think the Guix Foundation
has a Hetzner account too, we could think of sending an email from that
account too. I'll try and reach out to someone at the Guix Foundation
(Tanguy? Chris?) to suggest this.

Shall we generally indicate that we've run into issues with the size of
the rescue system - or do we have any number that we can attach to our
request? E.g. anything above X GB on all instances (including the
smallest ones)?

This is orthogonal and probably worth a separate thread but I wonder how
this works with the other guix deploy backend, the DigitalOcean one, and
if there's any similar limitation there.

Thanks, best wishes, Fabio.


-- 
Fabio Natali
https://fabionatali.com




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH 1/1] gnu: machine: hetzner: Fix deployment on smaller instances.
Resent-From: Roman Scherer <roman@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Wed, 26 Feb 2025 08:53:01 +0000
Resent-Message-ID: <handler.76501.B76501.174055997028525 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Fabio Natali <me@HIDDEN>
Cc: Roman Scherer <roman@HIDDEN>, 76501 <at> debbugs.gnu.org
Received: via spool by 76501-submit <at> debbugs.gnu.org id=B76501.174055997028525
          (code B ref 76501); Wed, 26 Feb 2025 08:53:01 +0000
Received: (at 76501) by debbugs.gnu.org; 26 Feb 2025 08:52:50 +0000
Received: from localhost ([127.0.0.1]:50941 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tnD9u-0007Q0-5H
	for submit <at> debbugs.gnu.org; Wed, 26 Feb 2025 03:52:50 -0500
Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:46317)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman@HIDDEN>)
 id 1tnD9o-0007Pc-F8
 for 76501 <at> debbugs.gnu.org; Wed, 26 Feb 2025 03:52:48 -0500
Received: by mail-ej1-x629.google.com with SMTP id
 a640c23a62f3a-abbda4349e9so958982966b.0
 for <76501 <at> debbugs.gnu.org>; Wed, 26 Feb 2025 00:52:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1740559958;
 x=1741164758; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=zQse30M8iBCcKu/VHF7VPYlltvV/EhD5iuldrY2r7Lo=;
 b=DkeRTHau7kUfJ+tKSWLAAp8PbteRLPuALWRG1SS/+7ZdrdOhpOFYw6bds+96tM9p60
 S8YROS4CsmHjqIN9/kDsizWusky8a+gdVBP9ziH9BQUFQLl8VwQe4BXb5w3ml7EJX9hB
 TPD/ou1075bOqd9htXqGeiEaJtkPYIe/gj9jks3tvCsxaW1RUnVPhXIXfx+mNGj7cevm
 h60FlxBgcthjhRTo0yxRklQgX3j7coWWaem2cMNWENYJQXOgE2Y9w2T4WXMuWXXFbxBC
 vdutMH1JpvSgVxMhHfr/dueus6R+6rjYfyAD699pbzjsGJYr2BEi4w+vzOVztMU5yXmK
 eeVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740559958; x=1741164758;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=zQse30M8iBCcKu/VHF7VPYlltvV/EhD5iuldrY2r7Lo=;
 b=LrkRxCTuil7jl98XRYUtPYnhZ8EfM/6vB5s8tm9pa5LUCJHjNJVOhPMe28GY5MDrwC
 i/vFEqC8R+mXF5A1LmX4brHh71Z2+PozVYqEgxrPpgSgkGKFaHiQb9LVhnmXim8fNlbC
 8Z9ikVNvOM9sxEEsX7OBTP7U7nSqmh1jSL3ySBOAxFn/sn68IaE5yuO6AxQsqVH7m6C9
 pAJcct8BpZR/ZxJ3ZmrkX5VAhcBq7KZrPM5A8sQuo5pgQcINxYMJcE5iRREK8OsCEeaT
 liBTAr49bbn2cagEijApFdBGSQmhVphL4oDZoBCX48Bj9dXmMK9lmqCgVwKIhmAfwNO5
 kyAg==
X-Forwarded-Encrypted: i=1;
 AJvYcCUVRCOuwz28mkwDomCQlLFwYuFbRj0S6WHve1hblu6TaAKSGiG0iWMgUX8ELPYR1s2l+jgLrQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxwmu1U8BvNwobxJHMbe/8XdroJKuI7nbayYBYmSC6mnkrZFFmT
 5iCOIiAh0vOK9SL8QDGon/+AMZZXEtZv+8658LebVcnfkr9xqPHgA3LhnrGKt7vjWKH8YZiXJ0G
 T0Wo=
X-Gm-Gg: ASbGncs+8qS+uw3U0AV1JaTYkRQ1aOgakjRgfOFo0K7Nj5UqPXZAFh+/OLJc67BaKjf
 xW56pQksvl7plLhngi3vROFQ6meg37ynT9SVBEJpmDBn/Ng7C+tamz/RKpu1UsCjA9CyFfXZiFJ
 7TqNFNc+4GC7yzjazmNfpFXtlBpj4jx1O/bHRH2mo24NqTiUEewVvRHC8j0YcHzohRf89uRz8+X
 M/6xWLPo1hB/rrEX9oIPE7bnzeaU2d3eIndp2wPqQJ7t0b2q9RBEtdYX02ZvHG7FqnVjw49YJwh
 8WKfD8JkC13J/T/elA99yBQgjACO
X-Google-Smtp-Source: AGHT+IEY4eW38MeWdKrcS/Ug+TmbC8N5gRzX+42Oq7ZUGVY5Ygux+m3+RqgStneZwTSMf8eVAeBiaQ==
X-Received: by 2002:a17:906:730b:b0:abb:b136:a402 with SMTP id
 a640c23a62f3a-abc0d9d7e81mr2259492166b.18.1740559957194; 
 Wed, 26 Feb 2025 00:52:37 -0800 (PST)
Received: from precision ([2a01:599:102:b293:5447:f926:a995:5293])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-abed1cd564esm287944066b.21.2025.02.26.00.52.34
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 26 Feb 2025 00:52:35 -0800 (PST)
From: Roman Scherer <roman@HIDDEN>
In-Reply-To: <87wmde5fet.fsf@HIDDEN> (Fabio Natali's message of "Tue, 
 25 Feb 2025 13:20:58 +0000")
References: <cover.1740312673.git.roman@HIDDEN>
 <0c52c7795b0eb7c63b25cc61ecfd8de82c2e995e.1740312673.git.roman@HIDDEN>
 <878qpv7dj2.fsf@HIDDEN> <87eczme2uf.fsf@HIDDEN>
 <87wmde5fet.fsf@HIDDEN>
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Wed, 26 Feb 2025 09:52:33 +0100
Message-ID: <875xkxdr5a.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain


Hi Fabio,

Fabio Natali <me@HIDDEN> writes:

> On 2025-02-25, 11:27 +0100, Roman Scherer <roman@HIDDEN> wrote:
>> I also opened a support ticket at Hetzner with the request to have more
>> disk space on the rescue system of smaller instances. They said they
>> handed the request over to their customers team and will prioritize it,
>> depending on demand.
>>
>> @Fabio / anyone listening: If you want to see this happening, maybe also
>> send them an email about this ;)
>
> Hi Roman,
>
> Absolutely, good idea and glad to do that. I think the Guix Foundation
> has a Hetzner account too, we could think of sending an email from that
> account too. I'll try and reach out to someone at the Guix Foundation
> (Tanguy? Chris?) to suggest this.
>
> Shall we generally indicate that we've run into issues with the size of
> the rescue system - or do we have any number that we can attach to our
> request? E.g. anything above X GB on all instances (including the
> smallest ones)?

The current approach works with the smallest ARM instance, cax11, and it
has 1.9GB free space when booted into the rescue system. Maybe ask for a
bit more than this, just to be safe.

> This is orthogonal and probably worth a separate thread but I wonder how
> this works with the other guix deploy backend, the DigitalOcean one, and
> if there's any similar limitation there.

On Digital Ocean guix deploy does not use a resuce system, but instead
boots into a Debian system that then gets "infected" with a Guix system,
by installing it on top of the Debian system, and moving directories
like /etc around. I tried this initially, but run into issues with the
network not resolving hosts anymore when /etc got moved. It looked like
the infect script used for Digitial Ocean is tied to a specific Debian
version, that wasn't available on Hetzner.

> Thanks, best wishes, Fabio.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFLBAEBCAA1FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAme+1lIXHHJvbWFuQGJ1
cm5pbmdzd2VsbC5jb20ACgkQPdpSUn0qwZkAGAf9Gy6FmlLQhymZWScE42JAHFiQ
6NsTIsEj+Z5gGvqXvJs3HNBB/7QJ/OqfXi2Nq02djr8llBTIJaQBDGzs2MHuwZi9
1JDzSy8pKnK/+3VP9zjOrLPKHpPFGkVUqUBDCw/lC7yeqfxsDCGpDS0A1gNktBHr
46MqaHTc5CCZrKpkTsODF4AFteI3X2ZLJuASGMppgNtMKNnz7rRX+JMS5JMWD/lF
GDmugrtVIeMBVYWt9rFphxeSfbA33r+n6BLLnzWi8p3VxEbgv9hoHqVCP3Rc1EH7
AoHz3pHlvZhog5VdSQQgrB9+66TN2xYCxAlTllbY2u8Ao6GDAqK/RKpzZUi/Bw==
=Em9m
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to ludo@HIDDEN, maxim.cournoyer@HIDDEN, guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH v2] gnu: machine: hetzner: Fix deployment on smaller instances.
References: <cover.1740312673.git.roman@HIDDEN>
In-Reply-To: <cover.1740312673.git.roman@HIDDEN>
Resent-From: Roman Scherer <roman@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: ludo@HIDDEN, maxim.cournoyer@HIDDEN, guix-patches@HIDDEN
Resent-Date: Thu, 27 Feb 2025 18:26:02 +0000
Resent-Message-ID: <handler.76501.B76501.17406807032991 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 76501 <at> debbugs.gnu.org
Cc: Roman Scherer <roman@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Received: via spool by 76501-submit <at> debbugs.gnu.org id=B76501.17406807032991
          (code B ref 76501); Thu, 27 Feb 2025 18:26:02 +0000
Received: (at 76501) by debbugs.gnu.org; 27 Feb 2025 18:25:03 +0000
Received: from localhost ([127.0.0.1]:37645 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tniZC-0000mA-NZ
	for submit <at> debbugs.gnu.org; Thu, 27 Feb 2025 13:25:03 -0500
Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:52669)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman@HIDDEN>)
 id 1tniZ9-0000lA-Ki
 for 76501 <at> debbugs.gnu.org; Thu, 27 Feb 2025 13:25:00 -0500
Received: by mail-ed1-x52f.google.com with SMTP id
 4fb4d7f45d1cf-5ded6c31344so1579710a12.1
 for <76501 <at> debbugs.gnu.org>; Thu, 27 Feb 2025 10:24:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1740680693;
 x=1741285493; darn=debbugs.gnu.org; 
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=WqgjMHnNn0lzaWwDPjqAAMtLSqCg45gEi56YIfIQD9Y=;
 b=hUETAsnST12x7M2pvO8lYkyEb/2i/fNZ6+tJt8u7Wu5Qm3k+MVtQJj9pBxdY09AL7v
 bi+iE41VuD4eVPlmOcX93ozauRJvSppmteYI+U/fxXrTQj4AeqboEOwENbDArUcTlwQA
 /Cz5ipEV9WCbSjHdUuYBOXN38QKLdsAu2ehysyOkjJyljVyjbwZ1snsWdwm+U9RJJ0/8
 xBMSp4ukcLut7Uyuq/utHsMmFjpa64qAJU3/vrXALjIsX5ZhOvZZl13BZXUMSLelG403
 61sQ9ICpkj9wmHWlDM+wMOmQRSTYSjXLW1GpL+Lbu2JHLJAMnRQ/Pzhbjtu9cW9c8atE
 H7mA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740680693; x=1741285493;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=WqgjMHnNn0lzaWwDPjqAAMtLSqCg45gEi56YIfIQD9Y=;
 b=W8QrzB/n1rfFX0+ZUUhPxJeP+QQW8+hEKdr9GIWk2fWF/pk2MN3o/QBd/qUxL/j8Hr
 g+ASWW9rAm4EKyaRy5TLUGJ6abgtpFswq4j1t35p1WZ/prAzNKvHhcvSPfNCjzYd+Emm
 Eu0ww6vN6ESGdBPDMMKozv/HJoVw34vWx2kd2+hkbtkSSmxNCz3jEHCT82qFHU+tJfv0
 kJfssee/5OcEW6oQThxsnglmqedToc5B4+27z1gRb7zSDBd5CxH1KREId1UvF0gpwT67
 O07ks5bl/tZ5GWUwKbdMsMfFV8KSKGumvBMcjsQ2Rsl88jJDJCA0d6U11KjB+uLFFa9G
 EEiQ==
X-Gm-Message-State: AOJu0YyCDtdNgF/PfaroE/5zCgHd0ExpJbgqBlXdiJVaaghS9+WFgAOE
 89i6pmKR3HO7ATFki6jvh8rWOZ2m6fMCIa9hc9vkV5pp9/KleJwnD2KxsmwDXP4YdxGMYcgHdcH
 jJto=
X-Gm-Gg: ASbGnct878ole4zU5H+K+DVzhxEjIEoVkV31OLvaqRFPLCaeOWMY+oOAvGxZ3sTq13v
 h9/bBke3WphAoWhsDe5/R76j2jocHl/Vh9gObO96IlrjV9Y64KMdaPgDfqvVsoCHJW9MeVnJepV
 d0StGybyDVH7+j45N7WymTYEE++Q5vAXCLJMG2vO2ysVpJRlmmAghXkTLfHoAQxg6boYPgVgXn3
 GBEvekuFNic+MGh86gsw8DNXDiMEMExz/sDU4XRZYxPcLAEXLzzA14TZCqWRwqO40CMEk51pA1k
 2feXh7DLyuLVOGPxW3nzdnOraofaKxjsq06d8NMrvIw=
X-Google-Smtp-Source: AGHT+IH5MvlAaMiSCoqE4l2QbU17xfFq0r9iORV5BxLFsmPubd8djeV4Od0KKE4QVcNi6xGxcmKqyA==
X-Received: by 2002:a05:6402:42c8:b0:5df:25e8:26d2 with SMTP id
 4fb4d7f45d1cf-5e4d6ac58fdmr132796a12.5.1740680692782; 
 Thu, 27 Feb 2025 10:24:52 -0800 (PST)
Received: from localhost.localdomain ([2a01:599:102:b293:96c:2413:bf62:a6b1])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-abf0c0dc145sm162327366b.67.2025.02.27.10.24.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 27 Feb 2025 10:24:52 -0800 (PST)
From: Roman Scherer <roman@HIDDEN>
Date: Thu, 27 Feb 2025 19:24:46 +0100
Message-ID: <f96095e33798107307d3ea1f50addce4c9f45de9.1740680609.git.roman@HIDDEN>
X-Mailer: git-send-email 2.48.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/machine/hetzner.scm (hetzner-machine-rescue-install-os): Avoid out of
disk space error by bind mounting /mnt/tmp/gnu/store to /gnu/store.
* tests/machine/hetzner.scm: Test with smaller instances.
* doc/guix.texi: Mention unsupported instance.

Change-Id: If8bfb6733de493b51813b3e82e255849192f7cba
---
 doc/guix.texi             | 4 +++-
 gnu/machine/hetzner.scm   | 9 ++++++++-
 tests/machine/hetzner.scm | 4 ++--
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index a036c85c31..f0891da924 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -45380,7 +45380,9 @@ Invoking guix deploy
 @code{"cx42"} corresponds to a x86_64 server that has 8 VCPUs, 16 GB of
 memory and 160 GB of storage, while @code{"cax31"} to the AArch64
 equivalent.  Other server types and their current prices can be found
-@uref{https://www.hetzner.com/cloud/#pricing, here}.
+@uref{https://www.hetzner.com/cloud/#pricing, here}.  The @code{"cpx11"}
+server type is currently not supported, since its rescue system is too
+small to bootstrap a Guix system from.
 
 @item @code{ssh-key}
 The 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 1d9a3f4385..bc8d2efbd3 100644
--- a/gnu/machine/hetzner.scm
+++ b/gnu/machine/hetzner.scm
@@ -551,6 +551,13 @@ (define (hetzner-machine-rescue-install-os machine ssh-session server)
 cp /root/.ssh/authorized_keys /mnt/root/.ssh/authorized_keys
 chmod 600 /mnt/root/.ssh/authorized_keys
 
+# Small instance don't have much disk space.  Bind mount the store of the
+# rescue system to the tmp directory of the new Guix system.
+mkdir -p /mnt/tmp/gnu/store
+mkdir -p /gnu/store
+mount --bind /mnt/tmp/gnu/store /gnu/store
+
+apt-get install guix --assume-yes
 cat > /tmp/guix/deploy/hetzner-os.scm << EOF
 (use-modules (gnu) (guix utils))
 (use-package-modules ssh)
@@ -605,7 +612,7 @@ (define (hetzner-machine-rescue-install-packages machine ssh-session)
      (format #f "#!/usr/bin/env bash
 set -eo pipefail
 apt-get update
-apt-get install guix cloud-initramfs-growroot --assume-yes"))
+apt-get install cloud-initramfs-growroot --assume-yes"))
     (format #t "successfully installed rescue system packages on '~a'\n" name)))
 
 (define (hetzner-machine-delete machine server)
diff --git a/tests/machine/hetzner.scm b/tests/machine/hetzner.scm
index 39eac4a4d5..1552bcb9a0 100644
--- a/tests/machine/hetzner.scm
+++ b/tests/machine/hetzner.scm
@@ -64,7 +64,7 @@ (define %arm-machine
    (environment hetzner-environment-type)
    (configuration (hetzner-configuration
                    (labels %labels)
-                   (server-type "cax41")
+                   (server-type "cax11")
                    (ssh-key %ssh-key-file)))))
 
 (define %x86-machine
@@ -76,7 +76,7 @@ (define %x86-machine
    (environment hetzner-environment-type)
    (configuration (hetzner-configuration
                    (labels %labels)
-                   (server-type "cpx51")
+                   (server-type "cx22")
                    (ssh-key %ssh-key-file)))))
 
 (define (cleanup machine)

base-commit: f1810c84f72090b02544ac41d0582c4785728ec4
-- 
2.48.1





Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76501] [PATCH 1/1] gnu: machine: hetzner: Fix deployment on smaller instances.
Resent-From: Roman Scherer <roman@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Thu, 27 Feb 2025 18:27:02 +0000
Resent-Message-ID: <handler.76501.B76501.17406807893561 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76501
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Fabio Natali <me@HIDDEN>
Cc: Roman Scherer <roman@HIDDEN>, 76501 <at> debbugs.gnu.org
Received: via spool by 76501-submit <at> debbugs.gnu.org id=B76501.17406807893561
          (code B ref 76501); Thu, 27 Feb 2025 18:27:02 +0000
Received: (at 76501) by debbugs.gnu.org; 27 Feb 2025 18:26:29 +0000
Received: from localhost ([127.0.0.1]:37658 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tniaa-0000vN-JC
	for submit <at> debbugs.gnu.org; Thu, 27 Feb 2025 13:26:28 -0500
Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:53248)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman@HIDDEN>)
 id 1tniaY-0000v1-6w
 for 76501 <at> debbugs.gnu.org; Thu, 27 Feb 2025 13:26:26 -0500
Received: by mail-ed1-x535.google.com with SMTP id
 4fb4d7f45d1cf-5deb956aa5eso1843275a12.2
 for <76501 <at> debbugs.gnu.org>; Thu, 27 Feb 2025 10:26:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1740680779;
 x=1741285579; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=28iPvtomerAge3GHWtkjRKEm3TDQQPi4lxKkpD9iqMM=;
 b=SI2EOr0fMk2U2KztI8guvHAH/DJ41ai/25fQI5hTgnAX+26Uzwzwt45AifpDe0am2F
 HTCkmQ6HH5J/wNCV8xe+w6XId0PgfSxtPJMt0cSASMSAkH0ytlotx8Ev/NpEQ3/DfM/3
 JsU0jT5GHnAjTpzQ+kywRmAWKj9q69FdhRzoqayxTEOnW9186MkaefKx+S+1uEqMImkB
 Un/i2r7oyrBX1FEqILZGD6I+x7gQbHbPSxmIvFbUWGKh9xIVmI0sbSRKahPrQMyW7MfZ
 up7Z6NmdPCGK5EmKaQh5vUGpSh4sEONLdwdAjRUtqVl3D+eodpTCTDKnnbUciIosqLYY
 RhDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740680779; x=1741285579;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=28iPvtomerAge3GHWtkjRKEm3TDQQPi4lxKkpD9iqMM=;
 b=o+rStAkf+PFsrwrOTxjf0YvDjWLhZb4onJIQbNwO/KDX5osc+OFSkSulC2Gj2FhIOx
 3s7KhrK97xIZiYaFqlXYD3U0AlIFFZBO7HHEvGsoypZUf5KUMJrpHYFveheERutkrgcr
 nC9EwKfF1/gl6HP1NFCXcCqHAwcDsEWUU4M3i938T541+7p3Akob08JX9syk8FrMhWgt
 Be+271U0n4ytBjCD704RVAa+uoxvJ1zZsgLAYXH2JTi8w6t2UxyolL9UkS/7rmKOZPw0
 wcCF8PUp22cglb2RV3ca9oMNNScCW9zqsKVxrbBNaTEhJ4uTpBhEf3qbrlVLY2g2JAWH
 h4AQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCUJuJHTUHlsTi1/kqoAPqEyDrAUkMSu7YewA8cKPIMxV61N7mW5/yWWzPMbAUqTBr5AOko/+Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyC8BdYh7icUMeOJ95Ba0G9Mcve3OFrCeFTQKU/rVleFGvmUeij
 zoWfFgPHQv92EB5kG/DPvprq4Zw+OoZK/EEN+qPHOmhTBzIqI3ckg/9za5TfE+yc5wBcTgJXfVF
 YUGo=
X-Gm-Gg: ASbGnctSp5cbAdNHzw4QZPtR//pv7Q+bNowjVB3+DkJ241ZQ3ISxyjROmB7vbRah20Q
 1QocsNZd+JpnaMp1hUtERzwAXhmAJjcX+CbxxiD2H/DS6ork4yKc0gLW3j3ZQ47eXRZUVi0bYso
 do8wO0caGcoy4OL2J3/4FxHi8udOM/qQb3+BJ/t6Cj95wRujjhT+CWuFB7v1Gnm6ajlIJ30Hews
 21ya+8440Kz04on8O2Dh6HzdtU6No+6tKguB6ef7C+YEjSPXIwm9bZgIMQTxlsdjfayEKg8l78O
 TOhlKkkb0kYEzhRFDQ==
X-Google-Smtp-Source: AGHT+IFvT4/5P0Rjoe6woiklXc2AQhc9IVn0pBEl4CXO3GCeyzp9y+8RVL3t6UTXO9KFzBhUDX0JdQ==
X-Received: by 2002:a05:6402:278f:b0:5dc:caab:9447 with SMTP id
 4fb4d7f45d1cf-5e4d6af3a69mr132962a12.18.1740680779241; 
 Thu, 27 Feb 2025 10:26:19 -0800 (PST)
Received: from m1 ([2a01:599:102:b293:96c:2413:bf62:a6b1])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-abf0c0ba595sm160551966b.26.2025.02.27.10.26.18
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 27 Feb 2025 10:26:18 -0800 (PST)
From: Roman Scherer <roman@HIDDEN>
In-Reply-To: <878qpv7dj2.fsf@HIDDEN> (Fabio Natali's message of "Mon, 
 24 Feb 2025 12:06:25 +0000")
References: <cover.1740312673.git.roman@HIDDEN>
 <0c52c7795b0eb7c63b25cc61ecfd8de82c2e995e.1740312673.git.roman@HIDDEN>
 <878qpv7dj2.fsf@HIDDEN>
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Thu, 27 Feb 2025 19:26:16 +0100
Message-ID: <86wmdbckhj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain


Hi,

I sent v2 that fixes the spelling.

Thanks, Roman.

Fabio Natali <me@HIDDEN> writes:

> On 2025-02-23, 13:22 +0100, Roman Scherer <roman@HIDDEN> wrote:
>> * gnu/machine/hetzner.scm (hetzner-machine-rescue-install-os): Avoid out of
>> disk space error by bind mounting /mnt/tmp/gnu/store to /gnu/store.
>> * tests/machine/hetzner.scm: Test with smaller instances.
>> * doc/guix.texi: Mention unsupported instance.
>
> Hi All.
>
> Thanks Roman for your work on 'hetzner-environment-type', it's really
> cool that 'guix deploy' gets expanded with other integrations and
> features. Also thanks for getting back to me so quickly when I reached
> out the other day.
>
> I confirm that the patch works well for me. I was able to provision
> various cx22 (and above) Hetzner instances with it.
>
> Just a cosmetic thing, here it should be "rescue":
>
>> +# Small instance don't have much disk space.  Bind mount the store of the
>> +# resuce system to the tmp directory of the new Guix system.
>
> Thanks, best wishes, Fabio.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFLBAEBCAA1FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmfArkgXHHJvbWFuQGJ1
cm5pbmdzd2VsbC5jb20ACgkQPdpSUn0qwZlVtwf9GceNj3dxO3Nmr6qn6St3KChx
In3L8ALrAVB6OKljJRnoL7BKtdeugp0GLpwbuzszqgJ9WsNm/SAXv8l4FnsEvAXA
t+m8ORZRNTEv4Yvt5NxjLicoYOGxjKaf1x13eC/hi0dD1aSJm4aNP41+rsvFTB1F
QhiJvfeAAttPWq6CeJU3BrH+308rno6+pqcj9CKBpkvKBEZ2TeqrbIzhBCyXO3tK
lIIQ8o8qTx4OOPY3RziyY+8Y8IqbTFLzCSJIZgmc2AdZzGuUS4hIP10sMov+5Va2
bZXwcgzPvSyckTJuYqwJINUpIwUD6HnhKR67JrM2XdFBCznl4A3SjosHveDQGw==
=IZxw
-----END PGP SIGNATURE-----
--=-=-=--





Last modified: Thu, 27 Feb 2025 18:30:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.