Support for running guix system vm images for different architectures

  • Open
  • quality assurance status badge
One participant
  • Nathan Dehnel
Submitted by
Nathan Dehnel
Nathan Dehnel wrote on 8 Mar 2023 00:07
(name . Tobias Geerinckx-Rice via Bug reports for GNU Guix)(address .
I tried to build a guix vm for aarch64 on x64:

guix system vm --target=aarch64-linux-gnu

I copied the script out of the store and removed -enable-kvm because
qemu doesn't support it if the architectures are different:

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
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
unt_tag="TAGjoptajej2oynju6yvboauz7pl6uj" -drive
raw,if=virtio,cache=writeback,werror=report,readonly=on -m 512 "$@"

I tried to run it with these options:

./ -nographic -machine
virt,gic-version=max -m 512M -cpu max -smp 4 -netdev
user,id=vnet,hostfwd=: -device
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:

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.

Can guix system vm support running non-native vms? Or does it?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to

To respond to this issue using the mumi CLI, first switch to it
mumi current 62040
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch