From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kBfhMEzbLWHQWAAAgWs5BA (envelope-from ) for ; Tue, 31 Aug 2021 09:33:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oCJXLEzbLWF3agAAB5/wlQ (envelope-from ) for ; Tue, 31 Aug 2021 07:33:32 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 116E3195E3 for ; Tue, 31 Aug 2021 09:33:32 +0200 (CEST) Received: from localhost ([::1]:33038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKyGw-0005yz-G8 for larch@yhetil.org; Tue, 31 Aug 2021 03:33:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKyGk-0005yd-VD for help-guix@gnu.org; Tue, 31 Aug 2021 03:33:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53984) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKyGk-0002cx-LO; Tue, 31 Aug 2021 03:33:18 -0400 Received: from [2a01:e0a:19b:d9a0:f2f7:a404:c3d3:f8b4] (port=37362 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKyGk-00010f-2k; Tue, 31 Aug 2021 03:33:18 -0400 From: Mathieu Othacehe To: Ben Sturmfels Subject: Re: Guix on a cloud VM References: <87tuj61egl.fsf@sturm.com.au> Date: Tue, 31 Aug 2021 09:33:16 +0200 In-Reply-To: <87tuj61egl.fsf@sturm.com.au> (Ben Sturmfels's message of "Tue, 31 Aug 2021 12:40:33 +1000") Message-ID: <87h7f66pc3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630395212; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=dP/FIR7r32DaxZfoKU3BkoO43rOWGu0F3VzYuLwoI/Y=; b=szx5caGDFtR4yNgiCvLBI5UK+ZCdIR2jmWjH1HOpPjcKfy/9lQ3XfW7i7QnPS6z4BGmQx9 SlIBP84c/PYhRSobrS0zqoGSUMsCYrSI7v6EG2gAvLFxqYO6L1iXhOOJDESydKUxwxkg6d +RRUO6EkZ3vt/Yo5WrfwhiAz2SYENy9iuDlLPGWGrq1Rxm3FsrFFHnT4i95BjZPm9D9oM7 070XproKDvGffGajREJ6G98ZAQnM9pKAXvk4U/UEYhYlngPHvrl0cTGyPEO6SiR7RX/r6t eNSK/XDuz7ojUJ3MfZxE7JImrN/zMHX6XhbWEWp0w9hdcWtkN3A73a61sX7+pQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630395212; a=rsa-sha256; cv=none; b=nXtcSKyxaKmR4E3ddGyJmvPrWMVPvAxr2lowJvJBVpMFJZaUTuPpsQcSZ67maTum1EP1zN dOL4TKBPLgmJfZdHa4hK4N5PAk2+r5U9yml/8Y7sKiI4OgGKC9yGianEvVHVUuBoV0ot5D X4K6HvTpk1hoQagAqPGPBczu74RPN5ioogmdRA39teTGRb3enJqUu1CMOxC/sBk4sqP0se ni26dZHl3DYOgRwieHP93WyVbMygBmBO4IK0+u57MgHAxrbmZTUc1dnzUphuswbHVQsMmF aBPpncuqDmtwOFVLYzR+52wNvxrRwmLoRBe06QFZ+9wBGOhTf40jLAP9bmlzXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 116E3195E3 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: cxz17kjrtdx0 Hello Ben, > Thanks for your help on the Guix IRC yesterday! I'm still struggling > with getting the VM running as I'd like. I tried the ISO format as you > suggested, but my hosting service (Binary Lane) seems to treat this > somewhat-specially as a read-only format. I can "trick" it into > restoring from this image using their "clone" feature though. The > machine boots up fine but the result seems to be a read-only Guix where > /etc/fstab shows an iso9660 filesystem. Yeah, the read-only partition is imposed by Guix itself. The record has a "volatile-root?" field that defaults to true. This means that an overlayfs backed with a tmpfs partition is created for the ROOT partition. You can have a look to the "mount-root-file-system" procedure of the (gnu build linux-boot) module. I don't think that iso9660 is the appropriate format for what you are trying to achieve anyway, as you probably want changes to the image to be made persistent. > Backing up a little for context, I've tried qcow2 format which is lovely > and small, but fails to boot on my hosting service with "No bootable > devices". Oh, too bad. You could maybe contact Binary Lane support to find out why? Have you tried to boot your qcow2 image on your machine with QEMU? The command line would look like the one presented here: https://guix.gnu.org/manual/en/html_node/Installing-Guix-in-a-VM.html. > I've also tried efi-raw which boots and runs smoothly, but fails to > resize later on my hosting service. (Resize is required because > otherwise I literally have to generate and upload a 20GB image.) I > suspect (but don't know for sure) that this is related to the additional > 40M EFI partition created in the image before the root EXT4 partition. > The images provided by my hosting service only have a single EXT4 > partition eg. Debian 10. > > Do you know if it's possible to get `guix system image` to skip the EFI > partition when creating an efi-raw image? No it is not possible currently, due to how Grub is installed on Guix System images. However, you should be able to resize your partition manually using fdisk and resize2fs, see below :). > Does the process in your blog post work for you if you go straight to > QCOW2 with `--image-type=QCOW2` rather than converting the efi-raw to > qcow2? Yes, the --image-type=qcow2 option was introduced after the blog post writing, it should be equivalent. > Are you able to later resize the storage via your DigitalOcean control > panel? This operation is failing for me currently. I had a root partition smaller than the disk size, and managed to resize it following those instructions: https://askubuntu.com/questions/24027/how-can-i-resize-an-ext-root-partition-at-runtime. Be sure that you answer "N" to that question: --8<---------------cut here---------------start------------->8--- Do you want to remove the signature? [Y]es/[N]o: N --8<---------------cut here---------------end--------------->8--- Thanks, Mathieu