From: Richard Jones Date: Thu, 6 Aug 2009 11:52:49 +0000 (+0100) Subject: Make user network numbering explicit. X-Git-Tag: 1.0.66~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=fbb3482a48b46f2ae51fb7600926fc04dc2c5ef1;p=libguestfs.git Make user network numbering explicit. Use: -net user,vlan=0,net=10.0.2.0/8 just to make the (already implicit) 10.0.2.x network explicit. --- diff --git a/src/guestfs.c b/src/guestfs.c index 64c327b..edff8eb 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -1081,7 +1081,7 @@ guestfs_launch (guestfs_h *g) * http://git.savannah.gnu.org/cgit/qemu.git/commit/?id=c92ef6a22d3c71538fcc48fb61ad353f7ba03b62 */ snprintf (vmchannel, sizeof vmchannel, - "user,vlan=0,guestfwd=tcp:%s:%d-unix:%s,server,nowait", + "user,vlan=0,net=10.0.2.0/8,guestfwd=tcp:%s:%d-unix:%s,server,nowait", VMCHANNEL_ADDR, VMCHANNEL_PORT, unixsock); add_cmdline (g, "-net"); @@ -1098,7 +1098,7 @@ guestfs_launch (guestfs_h *g) add_cmdline (g, "-net"); add_cmdline (g, vmchannel); add_cmdline (g, "-net"); - add_cmdline (g, "user,vlan=0"); + add_cmdline (g, "user,vlan=0,net=10.0.2.0/8"); #if 0 } #endif