[lxc-users] Short howto re lxd-container-on-LAN for impatient dummies?
Anders Magnus Andersen
a.m.andersen at me.com
Sat Apr 22 20:30:26 UTC 2017
There are a couple of ways to do this. The easiest way is to create
your own bridge: (you need bridge-utils)
nano /etc/network/interfaces
auto lo
iface lo inet loopback
#Added for lxc bridge
iface enp4s0 inet manual
auto br0
iface br0 inet dhcp
bridge-ifaces enp4s0
bridge-ports enp4s0
up ifconfig enp4s0 up
If you are unsure what your network device is, do: ip addr and find
your adapter.
Configure lxc/lxd to use br0
Vennlig Hilsen / Best Regards
Anders Magnus Andersen
On Sat, 2017-04-22 at 08:52 -0700, Dan Kegel wrote:
> TL;dr:
>
> For Ubuntu 16.04 users who have lxd-2.0.9 from xenial-updates,
> what is the fast path towards simple lxd container-on-the-lan
> happiness?
> (Extra credit: allow ssh between the host and the guest, also part of
> Things Just Working.)
>
> Long version:
>
> The issue
> https://github.com/lxc/lxd/issues/1294
> was closed, but as far as I can tell, is still valid:
> lxc users don't care about bridges, they just Want Things To Work.
> And so the tutorials for setting up lxd containers that act like
> they're on the LAN, e.g.
> https://www.stgraber.org/2016/10/27/network-management-with-lxd-2-3/
> https://www.simpleprecision.com/ubuntu-16-04-lxd-networking-simple-b
> ridge/
> leave them cold, leading to questions like
> http://stackoverflow.com/questions/41826430/how-to-setup-lxd-contain
> ers-that-communicate-over-the-lan
> Note the length of the answer. Users who Just Want Things To Work
> don't want to have to learn about bridges. I know, it's their loss,
> but
> that's the way it is. This hinders adoption.
>
> (Docker probably has similar problems, but has wrappers like weave,
> pipework, flannel, and socketplane to smooth things over for users, I
> hear.)
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list