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

[Libguestfs] [PATCH] Fix networking in the appliance



Change 4963be85 re-introduced networking to the appliance, but didn't configure
the custom network the appliance expects since we switched to link local
addressing. This patch configures QEMU to use the custom network again.
---
 src/launch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/launch.c b/src/launch.c
index 02704a1..e5bca56 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -490,7 +490,7 @@ guestfs__launch (guestfs_h *g)
     /* Enable user networking. */
     if (g->enable_network) {
       add_cmdline (g, "-netdev");
-      add_cmdline (g, "user,id=usernet");
+      add_cmdline (g, "user,id=usernet,net=169.254.0.0/16");
       add_cmdline (g, "-device");
       add_cmdline (g, NET_IF ",netdev=usernet");
     }

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