From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IKchOlwaWWe1RQEAqHPOHw:P1 (envelope-from ) for ; Wed, 11 Dec 2024 04:51:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IKchOlwaWWe1RQEAqHPOHw (envelope-from ) for ; Wed, 11 Dec 2024 05:51:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=cFGBkpNL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733892700; a=rsa-sha256; cv=none; b=uX3/MCe3OJ/VPGH03Y2XNVnmzATdPBwc5qfkzb7AlmSZ42HEUrePHTxQH1kVWX6+WdlfSQ 3Qc5K2sZ5BPzZgK0sGV2o/Q4ov8V6ekTM/7EziBE2CUCmycsYrVD/rIltKUriMBngQPgLm XS3a9l6GYkVvswoN8ZA6/dFaGI+YzWoH+daT5nuQ2gjVkLja0z19iKqE0a+AiNiKuyVxtu YrP9ov3QExEc70tdRM7jrKcmGfWiDthjXPrKZfTeUQX2HZ2gT3u9mIIV2I5+ICrqlPYZdu q85reJnrvL0KePCbN/zAZe6Dn7OV78iYgqeZCUKXWwmUXPf8kdnvnaHTLPZdJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=cFGBkpNL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733892700; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=gd9ZABARAUY/bX97Pv79hamVhBtAJE7OD69nsw2PX+M=; b=doOAAc4B5Z+6ON7d+3VkEbnaI98/JsPSllWj9qS1xi3Pi12Hq4y+qLfjtW+n1ysJLR8E33 fqjFK36xgd4bbja43V/CZg3kh3QIHgUYG88+N7r0pzIKmodNr0/rn9MTozcxgWQyIyQ2Pu pjV1jqbCo6dEjLThMPEzeg0Erfthg4HfzSsOonUpmFx6txJpLfYH2OVsD9d3/Tb5arxh28 aQGAQSlgCdKgcyFq3RRQTgMUF8Hp3iU9pIeZik0pFUA0oKKltYX76sOmEDte+FQoFcg1B2 3odFzqlcRlDMWdog/LflhVg5ve7gl5FWSP+Z0H3R04c5hhaNp5o8ZS2ulpLvtA== 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 ABF40360A0 for ; Wed, 11 Dec 2024 05:51:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLEgi-0000fi-G3; Tue, 10 Dec 2024 23:51:04 -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 ) id 1tLEgg-0000fT-08 for help-guix@gnu.org; Tue, 10 Dec 2024 23:51:02 -0500 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLEgd-0006Mk-04 for help-guix@gnu.org; Tue, 10 Dec 2024 23:51:00 -0500 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-aa66ead88b3so651342966b.0 for ; Tue, 10 Dec 2024 20:50:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733892657; x=1734497457; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EjCmmdDUL5B6Eyv96W11o7bQSI8dYrYHcbPQHMOBC50=; b=cFGBkpNLPWWfHDlq5ISWFpoLWMAaynSysR6Vp5vrcQsC70l4WqYd8b6sKyzVawMHjt mB1T9O35eEbmZQoayoRuHvS0QrdkxWb02p+Pz21Q9VvjGHiiOpUYYgDya4MO2vqu707B 38aI3yyjKFuvwzrCMrPI7vDlLcO0lBUFYWwRnnwQ1i2L4p2QVZrj2l6dAGaQqPxMsA54 12YVmWr2Ux0picEYrmKE06JICdoeqNqIRPioi6klkZzC41gJWBXCoXZC65/Mg70M5s4+ OkPwNuP7wLTjCpglNfXgcKWZxXIPOA+ZjdHZgMuQ8TXueXQ2quFT3OTmIPIvJVLozmcb FzNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733892657; x=1734497457; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EjCmmdDUL5B6Eyv96W11o7bQSI8dYrYHcbPQHMOBC50=; b=td4Zsox5PXbsQiBVzcWo1Tz9SWHQlh3iOLTWr6u8zzIx/EHBgA8M8v3FhoxPS3djzS f4/wvfJO5tji2h1O1zdWVcRob+HO+1swokDstUF5Qbl0oDqHqERwg+Urfr8z6J4slrJb FX8pT1MtA2Bad3Ms1wWQC4n35cdRlAF+hjiMI46FH+GPwad/5YBoNpSZHt49DBW1eNx8 d0V7sabgTadNFtmIVKNf2lbY7tcRlMlLynrUPZ+L6M+uVR5ritrZKZxPPwqFN94FGTRc d9RdUK+ySsTqnhLrrwTYiGdafw7oky9A1Ns6TGZZBP7rj3ypm810QQxZkJzuYTHKPNcG PCfg== X-Gm-Message-State: AOJu0YyggtmnwWw3tPxFPKC7dzRj1H/Zgo9O0urhYr87AeKf/H+fVRmm BZehN4TcVenDJU8jbC6C/c7Xy5zNryJqcJNe1wLtUO91BQvbhW7Vj2DPCcXQ6QYETqa7lm86+5n VorYBsDfEX1k2RIXuaFkZn5tfuOF7t25Rr5DFIQ== X-Gm-Gg: ASbGncvsvk7wtlXUjofY9//Epk9mjW80TGMEjOXfawgTeGYtuMs8731wXZ9tIGwoTwP E//DKGa/nNKSd3OMssYLJKsI29ULhp37e3Sgd X-Google-Smtp-Source: AGHT+IGkHEHtM0oUfHh0Fe6GKHB4mVKFligtpznEVldJQJiR6jvYiPcjielXHWguzVHnmgS609jRvXD659nkrbza+XY= X-Received: by 2002:a17:907:7806:b0:aa6:6f90:d51b with SMTP id a640c23a62f3a-aa6b10f5e39mr122098866b.10.1733892656784; Tue, 10 Dec 2024 20:50:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Timothy Washington Date: Tue, 10 Dec 2024 23:50:44 -0500 Message-ID: Subject: Re: Building Qemu VM To: Andreas Enge Cc: help-guix@gnu.org Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=twashing@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.86 X-Spam-Score: -0.86 X-Migadu-Queue-Id: ABF40360A0 X-Migadu-Scanner: mx12.migadu.com X-TUID: GZC3j8LrvxLR Hi Andreas, Ah, so my `(use-modules)` needed A, not B. Ie the `image` form is coming from `gnu.image`, not `gnu.system.image`. But then what is the difference between these two modules? When would I use `gnu.system.image` instead of `gnu.image`? A. (gnu image) B. (gnu system image) Either way, I've gotten a step further. But I've run across another problem building a Qemu VM image. The vm definition in C gives me the error in D. Anything that I'm missing? C (use-modules (gnu) (gnu image) (gnu system vm) (gnu system) (gnu system file-systems)) (load "system.scm") (define (boot-partition size) (file-system (mount-point "/boot") (device "/dev/vda1") (type "ext4"))) (define (root-partition size) (file-system (mount-point "/") (device "/dev/vda1") (type "ext4"))) (define vm-image (image (operating-system physical-operating-system) (format 'compressed-qcow2) (size (* 10 (expt 2 30))) (partitions (list (boot-partition (* 1 (expt 2 30))) (root-partition (* 9 (expt 2 30))))))) vm-image D $ guix system image -t qcow2 vm.scm Backtrace: In guix/status.scm: 859:3 19 (_) 839:4 18 (call-with-status-report _ _) In guix/scripts/system.scm: 1318:4 17 (_) In ice-9/boot-9.scm: 1752:10 16 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 689:37 15 (thunk) 1330:8 14 (call-with-build-handler # =E2=80=A6) 2210:25 13 (run-with-store # =E2= =80=A6) In guix/scripts/system.scm: 858:2 12 (_ _) In guix/store.scm: 2038:13 11 (_ #) In guix/gexp.scm: 300:51 10 (_) In unknown file: 9 (with-fluids* (#) (#f) #) In guix/gexp.scm: 750:29 8 (_) In gnu/system/image.scm: 1010:15 7 (_) 943:32 6 (operating-system-for-image #< name: #f format: =E2=80= =A6>) 892:28 5 (image->root-file-system #< name: #f format: com=E2=80= =A6>) 349:6 4 (find-root-partition _) In srfi/srfi-1.scm: 730:15 3 (find # _) In gnu/system/image.scm: 345:16 2 (root-partition? #< device: "/dev/vda1" mo=E2=80= =A6>) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure partition-flags: Wrong type argument: #< device: "/dev/vda1" mount-point: "/boot" type: "ext4" flags: () options: #f mount?: #t mount-may-fail?: #f needed-for-boot?: #f check?: #t skip-check-if-clean?: #t repair: preen create-mount-point?: #f dependencies: () shepherd-requirements: () location: ((filename . "/home/twashing/dotfiles/vm.scm") (line . 44) (column . 2))> Tim On Mon, 9 Dec 2024 at 04:27, Andreas Enge wrote: > Hello Tim, > > Am Sun, Dec 08, 2024 at 07:29:47PM -0500 schrieb Timothy Washington: > > (define vm-image > > (image > > (operating-system physical-operating-system) > > (format qcow2-image-type) > > (size (* 10 (expt 2 30))))) > > looking at the code, I see this in gnu/image.scm: > (define-record-type* > image make-image > image? > (name image-name ;symbol > (default #false)) > (format image-format ;symbol > (sanitize validate-image-format)) > ... > > and a bit above: > ;; The supported image formats. > (define-set-sanitizer validate-image-format format > (disk-image compressed-qcow2 docker iso9660 tarball wsl2)) > > So my guess is that 'compressed-qcow2 would be the value to put there. > > Andreas > >