guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29409] [PATCH 1/4] build: vm: Use netdev qemu parameter.


From: m . othacehe
Subject: [bug#29409] [PATCH 1/4] build: vm: Use netdev qemu parameter.
Date: Wed, 6 Dec 2017 13:59:50 +0100

From: Mathieu Othacehe <address@hidden>

* gnu/build/vm.scm (load-in-linux-vm): "-net nic" option is
deprecated, replace it with "-netdev" and "-device" options.

See https://wiki.qemu.org/Documentation/Networking.
---
 gnu/build/vm.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 20ee127..9e868f6 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -113,7 +113,8 @@ the #:references-graphs parameter of 'derivation'."
   (unless (zero?
            (apply system* qemu "-nographic" "-no-reboot"
                   "-m" (number->string memory-size)
-                  "-net" "nic,model=virtio"
+                  "-device" "virtio-net-pci,netdev=mynet"
+                  "-netdev" "user,id=mynet"
                   "-virtfs"
                   (string-append "local,id=store_dev,path="
                                  (%store-directory)
-- 
2.7.4






reply via email to

[Prev in Thread] Current Thread [Next in Thread]