Commit Graph

5 Commits

Author SHA1 Message Date
Wladimir J. van der Laan
cb718681e9 Set up IPv4 gateway automatically
I need this to get networking inside the LXC container in
a Debian 8.2 VM.
2015-11-19 13:16:17 +01:00
Devrandom
af56f89a6a improved LXC support
fixes #86
2015-05-16 20:48:18 -07:00
Wladimir J. van der Laan
4e90888bcf Make it possible to override bridge if for LXC
For example Ubuntu installs a bridge called `virbr0` by default for LXC.
Using this system-provided bridge avoids having to configure one
specifically before gitian building.

This commits makes it possible to override the bridge used by gitian
using the environment variable LXC_BRIDGE. The default is still to use
`br0` as before.
2014-04-04 09:56:25 +02:00
Wladimir J. van der Laan
5785dfc3ae Un-hardcode host/guest IP
I was running into trouble using gitian LXC INSIDE a VirtualBox VM, because
the 10.0.2.x IP range overlaps with the range that VirtualBox uses for
its internal NAT network.

This commit makes it possible to override the host and guest IP that
is used during LXC image creation and the build, using environment variables:

- `GITIAN_HOST_IP` (default=10.0.2.2, host IP from the viewpoint of the
   VM, can be used for both LXC and KVM)
- `LXC_GUEST_IP` (default=10.0.2.5, guest IP from the viewpoint of the
   host, effective for LXC only)

When these are not defined the behavior remains the same as before.
2014-04-02 16:24:52 +02:00
devrandom
28bb421156 First pass lxc support 2012-04-22 10:26:39 -07:00