mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Use link-local addresses between appliance and host (RHBZ#588763).
This commit is contained in:
@@ -52,8 +52,8 @@ hwclock -u -s
|
||||
|
||||
# Set up the network.
|
||||
ifconfig lo 127.0.0.1
|
||||
ifconfig eth0 10.0.2.10
|
||||
route add default gw 10.0.2.2
|
||||
ifconfig eth0 169.254.2.10
|
||||
route add default gw 169.254.2.2
|
||||
|
||||
# Scan for LVM.
|
||||
modprobe dm_mod ||:
|
||||
|
||||
@@ -128,9 +128,9 @@ static int qemu_supports (guestfs_h *g, const char *option);
|
||||
* typical Linux configurations of libguestfs, guestfwd is not
|
||||
* actually used any more.
|
||||
*/
|
||||
#define NETWORK "10.0.2.0/8"
|
||||
#define ROUTER "10.0.2.2"
|
||||
#define GUESTFWD_ADDR "10.0.2.4"
|
||||
#define NETWORK "169.254.0.0/16"
|
||||
#define ROUTER "169.254.2.2"
|
||||
#define GUESTFWD_ADDR "169.254.2.4"
|
||||
#define GUESTFWD_PORT "6666"
|
||||
|
||||
/* GuestFS handle and connection. */
|
||||
|
||||
Reference in New Issue
Block a user