unprivileged lxc containers fails with custom bridge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Using 15.04 x86_64 with all the updates installed.
I'd like 2 containers to communicate with each other via bridge interface. For that I've created interface as follows:
/etc/systemd/
[NetDev]
Name=ibr1
Kind=bridge
/etc/lxc/
# USERNAME TYPE BRIDGE COUNT
x veth ibr1 8
The 'x' is my username, it's first and only user configured in the system so default id map should work fine.
The container network is configured as follows:
lxc.network.type = veth
lxc.network.link = ibr1
lxc.network.flags = up
lxc.network.name = internal
lxc.network.ipv4 = 10.1.8.2/24
lxc.network.
I've enabled the service and brought the bridge up - showing ok via 'ip a' and 'brctl show'. Also works fine with priviledged containers. However with unpriviledged containers it fails:
lxc-start -n asterisk -l debug -F --logfile lxc-user.log
Does it work if you remove the lxc.network.ipv4 and ipv4.gateway lines?
status: incomplete