summary refs log tree commit diff
path: root/gnu/system/vm.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-09-26 21:10:53 +0200
committerLudovic Courtès <ludo@gnu.org>2013-09-27 00:46:17 +0200
commit59c5c4dee1f95e26f018ba4f88666f7cdf824ff6 (patch)
tree53a3de8912fade514286ad5b52ffac4682c70d5f /gnu/system/vm.scm
parent85e0dc6a6bc84bfb1f752df77e23e4a24bed2625 (diff)
downloadguix-59c5c4dee1f95e26f018ba4f88666f7cdf824ff6.tar.gz
gnu: vm: Set the default networking route.
* gnu/system/dmd.scm (static-networking-service): Add #:gateway
  parameter and honor it.
* gnu/system/vm.scm (system-qemu-image): Pass #:gateway to
  'static-networking-service'.
Diffstat (limited to 'gnu/system/vm.scm')
-rw-r--r--gnu/system/vm.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 0ed805510a..72530e3809 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -459,7 +459,8 @@ Happy birthday, GNU!                                http://www.gnu.org/gnu30
           (nscd-service store)
 
           ;; QEMU networking settings.
-          (static-networking-service store "eth0" "10.0.2.10")))
+          (static-networking-service store "eth0" "10.0.2.10"
+                                     #:gateway "10.0.2.2")))
 
   (define resolv.conf
     ;; Name resolution for default QEMU settings.