diff mbox

[2/6] vm: Honor 'QEMU_FLAGS' and 'QEMU_NET_FLAGS'.

Message ID 20160709125011.24587-3-david@craven.ch
State New
Headers show

Commit Message

David Craven July 9, 2016, 12:50 p.m. UTC
* gnu/system/vm.scm (common-qemu-options): Add 'QEMU_FLAGS' and 'QEMU_NET_FLAGS'.
* gnu/system/vm.scm (common-qemu-options): Enable virtio gpu by default.
---
 gnu/system/vm.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 676e89d..5252d02 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -468,11 +468,11 @@  with '-virtfs' options for the host file systems listed in SHARED-FS."
            "")
      " -no-reboot -net nic,model=virtio \
   " #$@(map virtfs-option shared-fs) " \
-  -net user \
-  -vga std \
+  -net user,$QEMU_NET_FLAGS \
+  -vga virtio \
   -drive file=" #$image
   ",if=virtio,cache=writeback,werror=report,readonly \
-  -m 256"))
+  -m 256 $QEMU_FLAGS"))
 
 (define* (system-qemu-image/shared-store-script os
                                                 #:key