From unknown Tue Jun 17 21:53:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#62040 <62040@debbugs.gnu.org> To: bug#62040 <62040@debbugs.gnu.org> Subject: Status: Support for running guix system vm images for different architectures Reply-To: bug#62040 <62040@debbugs.gnu.org> Date: Wed, 18 Jun 2025 04:53:02 +0000 retitle 62040 Support for running guix system vm images for different archi= tectures reassign 62040 guix submitter 62040 Nathan Dehnel severity 62040 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 18:07:55 2023 Received: (at submit) by debbugs.gnu.org; 7 Mar 2023 23:07:56 +0000 Received: from localhost ([127.0.0.1]:47399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZgPT-00018z-Io for submit@debbugs.gnu.org; Tue, 07 Mar 2023 18:07:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:35240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZgPR-00018q-KE for submit@debbugs.gnu.org; Tue, 07 Mar 2023 18:07:54 -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 1pZgPR-0003dR-9t for bug-guix@gnu.org; Tue, 07 Mar 2023 18:07:53 -0500 Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZgPP-0002n1-Py for bug-guix@gnu.org; Tue, 07 Mar 2023 18:07:53 -0500 Received: by mail-yb1-xb2c.google.com with SMTP id n18so13018749ybm.10 for ; Tue, 07 Mar 2023 15:07:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678230470; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=gJ2TSuVvhDsvpdEMPJ9f+/TMS3VOvqcMz2o6pzwJcjI=; b=GnQm3iJkOOaw3sZlBVbSLO8xakmvDzPssYDE/OCRjlzMfwvOdv00zM1meRzMgSFRGb hC3LgOWAuG630qEzhBOkX0g23Hso5upAxvIcIRZyYbVyeVEKcVJpdVBO6yupKSaq8R9S MUBftzLX9vWfkb4/YsAWgfcOijddlgup5IJ6iLfHkpHMRQ+/qKS8WxSoIQn+r+Y9omeM TSANnLRP56z8P8hfQk6fwuULF9RsxktIRA/CzEU0pf45iYyKaarNKLnPdtc10gvd9UUT LvgnvVrzDqFpzxSq79Q7oIK8fsJc+ZMHHKJXe9emYhxqdSIB39PRCCXn+GrQIhCq0kJM ZgeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678230470; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gJ2TSuVvhDsvpdEMPJ9f+/TMS3VOvqcMz2o6pzwJcjI=; b=2ZTNY9Ch+YvpToeqzEDTO0f5rFRhI+MSWCOIcJqqFOv8JTBOvvy8BLu+tY+m0++gQA MRUlPbDh93HwPruPgfTF2EXjFitgd/G2dztB20XEw2F37FYI4E6LyhKEaPTJwk6ong0/ w4umgkPLEdRoI/NF641W5s7IhRYAKdoX7ZPVdwSkQOsxutvEctzDpqxBoJ904O5m9JOM s+f8YPDeeCYjzcn5u+S8kqyDr3olAeStNp5/qIRXS4f8jevumcMa2B+qjYUVtbkfn3kF 9Dv0l7cPkEfKnYymE5Tn+moQ/6EU9CIgjeNsruBmo+DDgrJ/63UIJS/AbK7K/ZSxoIIA X1EQ== X-Gm-Message-State: AO0yUKW/nVAQJKqmKido5m5uTXVYsWNNmNwcikrYHCQnXj1VqVlz0QJT skFeWk7O18hht7irn4r9VhK9FkOvcdpDROl0gZX/rD2wRBc= X-Google-Smtp-Source: AK7set816SCPIhLlJXBrdoF1QBzmA4PSVP5vWa7e3MS9ommwMkDjthgt6Qv0ZvvBG8GYbfELwTBrVrz0ApYoC0Tytyc= X-Received: by 2002:a5b:b91:0:b0:a6f:b653:9f21 with SMTP id l17-20020a5b0b91000000b00a6fb6539f21mr9762490ybq.12.1678230470008; Tue, 07 Mar 2023 15:07:50 -0800 (PST) MIME-Version: 1.0 From: Nathan Dehnel Date: Tue, 7 Mar 2023 17:07:39 -0600 Message-ID: Subject: Support for running guix system vm images for different architectures To: Tobias Geerinckx-Rice via Bug reports for GNU Guix Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=ncdehnel@gmail.com; helo=mail-yb1-xb2c.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URI_NOVOWEL=0.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) 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: -1.8 (-) I tried to build a guix vm for aarch64 on x64: guix system vm --target=aarch64-linux-gnu /home/nathan/guix-config/guixaarch64vm/config.scm I copied the script out of the store and removed -enable-kvm because qemu doesn't support it if the architectures are different: #!/gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/sh exec /gnu/store/wqs83j00b2dd1481qwjw2hk49q7yrgb9-qemu-7.2.0/bin/qemu-system-aarch64 -kernel /gnu/store/yj98lqgxb17i8 pqm4rmj32ix7861fqy0-linux-libre-6.1.14/Image -initrd /gnu/store/9pcg7jskx5ahz2gpnzsl1mim6akr2jly-system/initrd -appe nd "root=/dev/vda1 gnu.system=/gnu/store/xqqq1xq7wwlsafdj104plipm66pwnb5w-system gnu.load=/gnu/store/xqqq1xq7wwlsafd j104plipm66pwnb5w-system/boot modprobe.blacklist=usbmouse,usbkbd quiet" -no-reboot -object rng-random,filename=/dev/ urandom,id=guix-vm-rng -device virtio-rng-pci,rng=guix-vm-rng -virtfs local,path="/gnu/store",security_model=none,mo unt_tag="TAGjoptajej2oynju6yvboauz7pl6uj" -drive file=/gnu/store/h5icgvql06yj4r0fqhkhl4y68wrr7pah-disk-image,format= raw,if=virtio,cache=writeback,werror=report,readonly=on -m 512 "$@" I tried to run it with these options: ./8vigmmi4gll68cb1648q3rwsyjfvzpkm-run-vm.sh -nographic -machine virt,gic-version=max -m 512M -cpu max -smp 4 -netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 -device virtio-net-pci,netdev=vnet GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread GC Warning: Couldn't read /proc/stat Welcome, this is GNU's early boot Guile. Use 'gnu.repl' for an initrd REPL. loading kernel modules... loading '/gnu/store/xqqq1xq7wwlsafdj104plipm66pwnb5w-system/boot'... ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure open-file: No such file or directory: "/gnu/store/xqqq1xq7wwlsafdj104plipm66pwnb5w-system/boot" Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> Can guix system vm support running non-native vms? Or does it?