From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 EOiyGAXgQmeQcwEA62LTzQ:P1 (envelope-from ) for ; Sun, 24 Nov 2024 08:12:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EOiyGAXgQmeQcwEA62LTzQ (envelope-from ) for ; Sun, 24 Nov 2024 09:12:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ZPT1pgZF; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HYnQKkpy; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732435973; a=rsa-sha256; cv=none; b=Imrf+En7s2dIb9a2gx4TP/IyrMD3Ea0PL5NiELJzac3VQ58KDVp2f+PpM90tzDfMjN6e6S 4NRt4moQLJZOBkaiUWSvZL9NxX7a498zvIxX+71Z1aTjps9SBFh168LpCP2m5UEv+rNzhN u3yu8oEdyIISzTp1gZ5IMrF7zwqZd/uzgo+os6CfGNbwQX2ckfqRMlFWMcTMUNUN6P60dV blcM4IWOOp1PRp0sNXt14xJZcpoAZUa+o2mDHlRNV6GjAfVDWRdbs4IREvWsVNalMG+UJX QbpwHYEOhGSPIHRNCb0X5st6Jw2Yc2tCaFtL1xUraLwHyw1zTHJUT9nq86UG3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ZPT1pgZF; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HYnQKkpy; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732435973; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9JPDnrOqlmB6em+KLsZAHXaG8wxrH5HaNjiSGZjLXG4=; b=p/EGv9LKBdnKvLBaOfmZ2lFg4XNVl15iTB/jYGKCV7phn3kA9wBzm6mW9WJyAnJB0rv9TY NkqLclRpyU0HFkQy4i8qTSo6fq4XYH213/piBvraECpKH4HQT/KDRcjHGTPf0zKpg408eA i9UwMbDEWG971fxBo+xECVO766s+ObKhY/nAGD735L9Yr+cyx6RQMzLcBGNxa2cR82oPSM WVkkFSrkafAyBVYPAOLJcqCIpblZlAekYaeC8/UP/Ed/cjay0DiFiWQq7bjeYzJhoYUO83 4ulI3KGO0r3lkKbmOE9Hf4Lc8sOXbXekMrMVRXthb3Lc3QHVZGQ7bSdNcVN0VQ== 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 EB4F44784 for ; Sun, 24 Nov 2024 09:12:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tF7VJ-0000n4-SN; Sun, 24 Nov 2024 02:58:01 -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 1tF7Uq-0000T5-Q5 for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:34 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tF7Uq-0002RT-3H for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=9JPDnrOqlmB6em+KLsZAHXaG8wxrH5HaNjiSGZjLXG4=; b=ZPT1pgZFDqIbpkjFcNxDFST86MAprZS08/EhUd35asQG4GieGq2NHkVBT/7GY+7QaPs7+1iL0oowPZE30fvzbkbLdE06XFIE1peiYMa842OdwEvM4EiL3ZPjq2zZCIXaSiz8Mtllx+6Uq8dBhm2bWpGsoFu+ox8ZF85HYYZopzGRASAcOXpOqpHgsx0fuc7usAwvZ2aotAFOCulQNBmxIxFL1A/8BES+MFXhZFoz2j4zCJxlzCI+8LzthSVVMOkOo025lotmYznNAkyAbELsOCV2GYkoUKU5vrFVArrbnGUWT2BJoUEAzkfP0y1aQFD0BBLG8EYgI/gFfRZKW26Oqw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tF7Up-0004oM-Un for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:31 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v4 50/58] system: examples: Add bare-hurd64.tmpl. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Nov 2024 07:57:31 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74290 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74290@debbugs.gnu.org Received: via spool by 74290-submit@debbugs.gnu.org id=B74290.173243504118305 (code B ref 74290); Sun, 24 Nov 2024 07:57:31 +0000 Received: (at 74290) by debbugs.gnu.org; 24 Nov 2024 07:57:21 +0000 Received: from localhost ([127.0.0.1]:60886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7Ue-0004l1-Rz for submit@debbugs.gnu.org; Sun, 24 Nov 2024 02:57:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7UD-0004cy-JY for 74290@debbugs.gnu.org; Sun, 24 Nov 2024 02:56:54 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tF7U8-0002IV-9T; Sun, 24 Nov 2024 02:56:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=9JPDnrOqlmB6em+KLsZAHXaG8wxrH5HaNjiSGZjLXG4=; b=HYnQKkpyiAyhFwfEAhEa WqU5jhDgd2gp4JtI9izI7fxXWREC/HvLbxpCxD+QCIj3SPDi+M7aJ5h321cixNHT/62givI0QJCvn I3pC0c6EbGD51fHNjGQHJccMwqgrPaU0WaguImOd5JeWDrVMEZk7tIwVgSGhT67UiJYMETgXgqHSq x4lVD/DP9OKUlZHtbNg5ODMjt2z672boygkgs38FtB7oon7XvhezluKx2d0xnBvZLyLSaaYi0a3Wr 0SZX576OmPM0Hy5/gQTHcaUxSiGJQLDVxj2HnZBVs1MGGR4534BP5wFa0hq8EXagQBqVUF1T6bOB/ xcx3Ziz79LZwIw==; From: Janneke Nieuwenhuizen Date: Sun, 24 Nov 2024 08:55:13 +0100 Message-ID: <5dd18b57a31588447d97aa36a286cc0eb8835366.1732434271.git.janneke@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.83 X-Spam-Score: -1.83 X-Migadu-Queue-Id: EB4F44784 X-Migadu-Scanner: mx12.migadu.com X-TUID: OYdOxDOUpjUv * gnu/system/examples/bare-hurd.tmpl: Update comments. * gnu/system/examples/bare-hurd64.tmpl: New file. Change-Id: I8d26afd19afaa8fb3558948b50b0efdc0f83f29c --- gnu/system/examples/bare-hurd.tmpl | 21 +++++---- gnu/system/examples/bare-hurd64.tmpl | 70 ++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 9 deletions(-) create mode 100644 gnu/system/examples/bare-hurd64.tmpl diff --git a/gnu/system/examples/bare-hurd.tmpl b/gnu/system/examples/bare-hurd.tmpl index 68c6d3c166..9bfa776769 100644 --- a/gnu/system/examples/bare-hurd.tmpl +++ b/gnu/system/examples/bare-hurd.tmpl @@ -3,23 +3,26 @@ ;; This is an operating system configuration template ;; for a "bare bones" QEMU setup, with no X11 display server. -;; To build a disk image for a virtual machine, do +;; To build a disk image for a virtual machine, do: ;; -;; ./pre-inst-env guix system image --image-type=hurd-raw \ +;; ./pre-inst-env guix system image --image-type=hurd-qcow2 \ ;; gnu/system/examples/bare-hurd.tmpl ;; -;; You may run it like so +;; You may run it like so: ;; -;; guix shell qemu -- qemu-system-i386 -enable-kvm -m 2048 \ -;; -device rtl8139,netdev=net0 -netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \ -;; -snapshot -hda +;; guix shell qemu -- qemu-system-i386 -m 2048 \ +;; --enable-kvm \ +;; --device e1000,netdev=net0 \ +;; --netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \ +;; --snapshot +;; --hda /gnu/store/...-disk-image ;; -;; and use it like +;; and use it like: ;; ;; ssh -p 10022 root@localhost ;; guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)' ;; -;; or even (if you use --image-size=3G) +;; or even, if you build the image with at least --image-size=3G: ;; ;; guix build hello @@ -34,7 +37,7 @@ (bootloader grub-minimal-bootloader) (targets '("/dev/sdX")))) (file-systems (cons (file-system - (device (file-system-label "my-root")) + (device (file-system-label "hurd")) (mount-point "/") (type "ext2")) %base-file-systems)) diff --git a/gnu/system/examples/bare-hurd64.tmpl b/gnu/system/examples/bare-hurd64.tmpl new file mode 100644 index 0000000000..89811e458a --- /dev/null +++ b/gnu/system/examples/bare-hurd64.tmpl @@ -0,0 +1,70 @@ +;; -*-scheme-*- + +;; This is an operating system configuration template +;; for a "bare bones" QEMU setup, with no X11 display server. + +;; To build a disk image for a virtual machine, do: +;; +;; ./pre-inst-env guix system image --image-type=hurd64-qcow2 \ +;; gnu/system/examples/bare-hurd64.tmpl +;; +;; You may run it like so: +;; +;; guix shell qemu@7 -- qemu-system-x86_64 -m 2048 \ +;; --machine q35 \ +;; --enable-kvm \ +;; --device e1000,netdev=net0 \ +;; --netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \ +;; --snapshot +;; --hda /gnu/store/...-disk-image +;; +;; and use it like: +;; +;; ssh -p 10022 root@localhost +;; guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)' +;; +;; or even, if you build the image with at least --image-size=3G: +;; +;; guix build hello + +(use-modules (gnu) (gnu system hurd) (guix utils)) +(use-service-modules ssh) +(use-package-modules ssh) + +(define %hurd64-os + (operating-system + (inherit %hurd64-default-operating-system) + (bootloader (bootloader-configuration + (bootloader grub-minimal-bootloader) + (targets '("/dev/sdX")))) + (kernel-arguments '("noide")) ;use rumpdisk + (file-systems (cons (file-system + (device (file-system-label "hurd")) + (mount-point "/") + (type "ext2")) + %base-file-systems)) + (host-name "guixygnu64") + (timezone "Europe/Amsterdam") + (users (cons (user-account + (name "guix") + (comment "Anonymous Hurd Hacker") + (group "users") + (supplementary-groups '("wheel"))) + %base-user-accounts)) + (packages (cons openssh-sans-x %base-packages/hurd)) + (services (cons (service openssh-service-type + (openssh-configuration + (openssh openssh-sans-x) + (port-number 2222) + (permit-root-login #t) + (allow-empty-passwords? #t) + (password-authentication? #t))) + ;; For installing on a real (non-QEMU) machine, use: + ;; (static-networking-service-type + ;; (list %loopback-static-networking + ;; (static-networking + ;; ...))) + ;; %base-services/hurd + %base-services+qemu-networking/hurd)))) + +%hurd64-os -- 2.46.0