[lxc-users] Short howto re lxd-container-on-LAN for impatient dummies?

Joe McDonald ideafilter at gmail.com
Sat Apr 22 20:43:29 UTC 2017


This would be great!

I have a kvm machine in the cloud with 5 public IPs, one for the host
and 4 for containers.
(eth0 and eth0:0-3 are the interfaces)
I installed lxd as so:
apt install -t xenial-backports lxd lxd-client
ran lxd init and created a few containers.
all good.
But now I want to assign a public IP to a container and don't find a
succinct way to do it.
lxd init created lxdbr0  I'm not sure if I need to delete that and
create a new bridge, or what.
I'm running ubuntu 16.04 on host and in containers.

On Sat, Apr 22, 2017 at 8:52 AM, Dan Kegel <dank at kegel.com> 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-bridge/
> leave them cold, leading to questions like
>  http://stackoverflow.com/questions/41826430/how-to-setup-lxd-containers-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