summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2010-10-27 10:55:24 +0100
committerRichard W.M. Jones <rjones@redhat.com>2010-10-27 10:59:44 +0100
commit61da709722ec244da1c3c7d4f1a8706f76687cb3 (patch)
treec476b495fe279a596193db6f40cf8b357a947b12 /src
parent9332031543563fd2ae6e0e8731fc770f5a5931db (diff)
downloadlibguestfs-61da709722ec244da1c3c7d4f1a8706f76687cb3.tar.gz
libguestfs-61da709722ec244da1c3c7d4f1a8706f76687cb3.tar.xz
libguestfs-61da709722ec244da1c3c7d4f1a8706f76687cb3.zip
Fix networking in the appliance.
Commit 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. Note that you still need to use guestfs_set_network (g, 1) to enable user networking.
Diffstat (limited to 'src')
-rw-r--r--src/launch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/launch.c b/src/launch.c
index 7f2f74ca..047a1e15 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -491,7 +491,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");
}