Jack Hill <jackhill@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.
Received: (at submit) by debbugs.gnu.org; 10 Jul 2020 20:34:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 10 16:34:03 2020
Received: from localhost ([127.0.0.1]:43510 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1jtzid-0004jG-21
for submit <at> debbugs.gnu.org; Fri, 10 Jul 2020 16:34:03 -0400
Received: from lists.gnu.org ([209.51.188.17]:50370)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <jackhill@HIDDEN>) id 1jtzia-0004ip-Js
for submit <at> debbugs.gnu.org; Fri, 10 Jul 2020 16:34:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43218)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <jackhill@HIDDEN>)
id 1jtzia-0000d0-Cf
for bug-guix@HIDDEN; Fri, 10 Jul 2020 16:34:00 -0400
Received: from minsky.hcoop.net ([104.248.1.95]:41072)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <jackhill@HIDDEN>)
id 1jtziY-0004iH-72
for bug-guix@HIDDEN; Fri, 10 Jul 2020 16:34:00 -0400
Received: from marsh.hcoop.net ([45.55.52.66])
by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from <jackhill@HIDDEN>)
id 1jtziW-0002O9-PF
for bug-guix@HIDDEN; Fri, 10 Jul 2020 16:33:56 -0400
Date: Fri, 10 Jul 2020 16:33:56 -0400 (EDT)
From: Jack Hill <jackhill@HIDDEN>
X-X-Sender: jackhill@HIDDEN
To: bug-guix@HIDDEN
Subject: `guix system vm-image` does not produce image with btrfs
Message-ID: <alpine.DEB.2.20.2007101623530.5735@HIDDEN>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset=US-ASCII
Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@HIDDEN;
helo=minsky.hcoop.net
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/10 16:33:56
X-ACL-Warn: Detected OS = Linux 3.11 and newer
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, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
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: -2.4 (--)
Hi Guix,
I'm using guix from commit: ec4c404c0575b340a04b3922fb828ac5417832dd
I want to create a vm-image with a btrfs filesystem. Following the manual
for Invoking guix system
<https://guix.gnu.org/manual/en/html_node/Invoking-guix-system.html>, I
ran:
`guix system vm-image --image-size=120GB -t btrfs vm-config.scm`
with the operating system config below.
It produced a working vm image. However, the root file system was ext4.
Is this supposed to work, or did I misunderstand the documentation?
In an ideal world, I hope that this would work, but if we don't support it
yet, I think that we should clarify the documentation, and make guix
system vm-image error when passed a file system type it doesn't support.
Best,
Jack
(use-modules (gnu) (guix))
(use-service-modules networking ssh)
(use-package-modules bootloaders certs
package-management)
(operating-system
(host-name "guix")
(timezone "America/New_York")
(locale "en_US.utf8")
(initrd-modules (cons "virtio_scsi" %base-initrd-modules))
;; Label for the GRUB boot menu.
(label (string-append "GNU Guix " (package-version guix)))
(firmware '())
;; Below we assume /dev/vda is the VM's hard disk.
;; Adjust as needed.
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/vda")
(terminal-outputs '(console))))
(file-systems (cons (file-system
(mount-point "/")
(device "/dev/vda1")
(type "btrfs")
(flags '(no-atime))
(options "compress=zstd"))
%base-file-systems))
(users (cons (user-account
(name "jackhill")
(comment "Jack Hill")
(group "users")
(supplementary-groups '("wheel" "netdev"
%base-user-accounts))
;; password-less sudo.
(sudoers-file (plain-file "sudoers" "\
root ALL=(ALL) ALL
%wheel ALL=NOPASSWD: ALL\n"))
(packages (append (list nss-certs)
%base-packages))
(services
(append (list (service openssh-service-type
(openssh-configuration
(password-authentication? #f)
(authorized-keys
`(("jackhill" ,(local-file
"/home/jackhill/.ssh/id_ed25519.pub"))))))
;; Use the DHCP client service rather than NetworkManager.
(service dhcp-client-service-type))
%base-services)))
Jack Hill <jackhill@HIDDEN>:bug-guix@HIDDEN.
Full text available.bug-guix@HIDDEN:bug#42315; Package guix.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.