diff options
author | Marius Bakke <mbakke@fastmail.com> | 2019-12-18 23:07:40 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2019-12-18 23:07:40 +0100 |
commit | 7ba6d70e4528201151195e1ed2175ee4828bdb2f (patch) | |
tree | 3a95b7f107763f959c31187d394d3fabbf1501c5 /gnu/build | |
parent | 94c7f70faa0ba0409099b423df6534718d7518cc (diff) | |
parent | 6afea7489b76c8db58d4f389fdbedc7c2b8992bd (diff) | |
download | guix-7ba6d70e4528201151195e1ed2175ee4828bdb2f.tar guix-7ba6d70e4528201151195e1ed2175ee4828bdb2f.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/build')
-rw-r--r-- | gnu/build/vm.scm | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm index 89d685b352..9a9e5bd001 100644 --- a/gnu/build/vm.scm +++ b/gnu/build/vm.scm @@ -131,14 +131,7 @@ the #:references-graphs parameter of 'derivation'." ;; The serial port name differs between emulated ;; architectures/machines. " console=" - (if target-arm? "ttyAMA0" "ttyS0")) - - ;; NIC is not supported on ARM "virt" machine, so use a user mode - ;; network stack instead. - ,@(if target-arm? - '("-device" "virtio-net-pci,netdev=mynet" - "-netdev" "user,id=mynet") - '("-net" "nic,model=virtio")))) + (if target-arm? "ttyAMA0" "ttyS0")))) (when make-disk-image? (format #t "creating ~a image of ~,2f MiB...~%" @@ -163,6 +156,7 @@ the #:references-graphs parameter of 'derivation'." ;; CPU with the maximum possible feature set otherwise. "-cpu" "max" "-m" (number->string memory-size) + "-nic" "user,model=virtio-net-pci" "-object" "rng-random,filename=/dev/urandom,id=guixsd-vm-rng" "-device" "virtio-rng-pci,rng=guixsd-vm-rng" "-virtfs" |