From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 16:34:03 2020 Received: (at submit) by debbugs.gnu.org; 10 Jul 2020 20:34:03 +0000 Received: from localhost ([127.0.0.1]:43510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtzid-0004jG-21 for submit@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 ) id 1jtzia-0004ip-Js for submit@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 ) id 1jtzia-0000d0-Cf for bug-guix@gnu.org; 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 ) id 1jtziY-0004iH-72 for bug-guix@gnu.org; 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 ) id 1jtziW-0002O9-PF for bug-guix@gnu.org; Fri, 10 Jul 2020 16:33:56 -0400 Date: Fri, 10 Jul 2020 16:33:56 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: bug-guix@gnu.org Subject: `guix system vm-image` does not produce image with btrfs Message-ID: 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@jackhill.us; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 , 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)))