[lxc-users] Broken on Gentoo linux-4.8.17-hardened-r2, LXD 2.11, and lxc 1.0.8
Ron Kelley
rkelleyrtp at gmail.com
Thu Jun 1 16:44:26 UTC 2017
Mike,
I don’t know anything about Gentoo Linux, but can you consider using Ubuntu 16 or 17 as your LXD host? These OS installs definitely support LXD out of the box.
As for the network bridge question; You don’t have to connect any network interface to the container. You can simply remove the network interface from the LXD profile (or via the “lxc network detach” command)
-Ron
> On May 18, 2017, at 6:29 PM, Michael Johnson <johnson at cognitech-ut.com> wrote:
>
> Hi All.
>
> I'm very new to lxd and having very little success.
>
> What is the absolute bare minimum required to get a container up?
>
> I've installed lxd.
>
> I've started lxd.
>
> When I run: lxd init, if I answer all the question with default, I get this:
>
> error: Failed to run: iptables -w -t mangle -I POSTROUTING -o lxdbr0 -p
> udp --dport 68 -j CHECKSUM --checksum-fill -m comment --comment
> generated for LXD network lxdbr0: iptables: No chain/target/match by
> that name.
>
> When I run: lxc launch images:centos/7/amd64 centos
>
> I get this:
>
> error: Failed to run: /usr/sbin/lxd forkstart centos
> /var/lib/lxd/containers /var/log/lxd/centos/lxc.conf
>
> and the exact failure seems to be:
>
> lxc_container 1495144728.829 ERROR lxc_start - start.c:lxc_spawn:975
> - failed to set up id mapping
>
> What am I doing wrong? Or is this a bug? I've seen some bug report about
> failure to set up id mapping but that was in an older version and
> presumably was fixed.
>
> Additionally, is it a rigid requirement to configure a network bridge or
> macvlan just to bring up a container?
>
> Thanks for any direction or help!
> Regards,
> Mike
> _______________________________________________
> 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