diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-07-13 16:07:26 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-07-13 16:37:11 +0200 |
commit | 66670cf39c2f3d294edf3596d8a9173e5289f3a0 (patch) | |
tree | cf6cd0500da4a5bf9ce1187ecec7a45e07f09b87 /gnu | |
parent | ae9cb418dfe864d8b4383770662fc79484244240 (diff) | |
download | guix-66670cf39c2f3d294edf3596d8a9173e5289f3a0.tar.gz |
vm: Add support for i686.
Partially fixes <http://bugs.gnu.org/18002>. Reported by David Thompson <dthompson2@worcester.edu>. * guix/build/vm.scm (qemu-command): Add optional 'system' parameter. Special-case "^i[3456]86$". * gnu/system/vm.scm (system-qemu-image/shared-store-script): Use it.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/system/vm.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index a90b24305d..ab3997bd5d 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -23,6 +23,8 @@ #:use-module (guix derivations) #:use-module (guix packages) #:use-module (guix monads) + #:use-module ((guix build vm) + #:select (qemu-command)) #:use-module ((gnu packages base) #:select (%final-inputs)) #:use-module (gnu packages guile) @@ -414,7 +416,8 @@ OS that shares its store with the host." (lambda (port) (display (string-append "#!" #$bash "/bin/sh -exec " #$qemu "/bin/qemu-system-x86_64 -enable-kvm -no-reboot -net nic,model=virtio \ +exec " #$qemu "/bin/" #$(qemu-command (%current-system)) +" -enable-kvm -no-reboot -net nic,model=virtio \ -virtfs local,path=" #$(%store-prefix) ",security_model=none,mount_tag=store \ -net user \ -kernel " #$(operating-system-kernel os) "/bzImage \ |