[systemd-devel] How to add a second bridge to a nspawn container?

Mantas Mikulėnas grawity at gmail.com
Fri Jan 4 05:50:57 UTC 2019


On Thu, Jan 3, 2019 at 6:26 PM Wojtek Swiatek <w at swtk.info> wrote:

> Hello everyone,
>
> I have an nspawn container which is currently connected to a bridge on the
> host:
>
> root at srv /e/s/nspawn# cat domotique.nspawn
> [Exec]
> Boot=yes
> [Network]
> Bridge=br0
> #Bridge=wlx00c0ca384bd9
>
> This results in a host0 interface being present in the container.
> Everything works.
>
> I now would like to add another interface in the container, which would be
> bridged with a wireless card on the host. The commented out line above is
> my attempt to add another bridge but it failed with
>
> -- Subject: Unit systemd-nspawn at domotique.service has begun start-up
> -- Defined-By: systemd
> -- Support: http://www.ubuntu.com/support
> --
> -- Unit systemd-nspawn at domotique.service has begun starting up.
> Jan 03 17:02:17 srv systemd-nspawn[17264]: Selected user namespace base
> 119472128 and range 65536.
> Jan 03 17:02:17 srv systemd-nspawn[17264]: Failed to add interface
> vb-domotique to bridge wlx00c0ca384bd9: Operation not supported
>

That's because the specified interface is not a bridge...

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190104/2ba49f34/attachment.html>


More information about the systemd-devel mailing list