Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd-nspawn: container networking broken with systemd 238 and linux 4.14 #8646

Closed
xeji opened this issue Apr 3, 2018 · 6 comments
Closed

Comments

@xeji
Copy link

xeji commented Apr 3, 2018

Submission type

Bug report

systemd version the issue has been seen with

238

Used distribution

NixOS

In case of bug report: Expected behaviour you didn't see

Container networks created by systemd-nspawn options work as documented in systemd-nspawn(1).

In case of bug report: Unexpected behaviour you saw

systemd-nspawn containers started with -n (or similar options implying private-network) only see a loopback interface, the desired interface to the host is missing. Problem occurs with kernel 4.14 and systemd 238.

Works fine with kernel 4.9 (and reportedly 4.15 as well, but I did not test this myself).
Also works fine with systemd 237 and kernel 4.14.

In case of bug report: Steps to reproduce the problem

Start a container with systemd-nspawn -n, log into container, ip l.

@jiri-one
Copy link

jiri-one commented Apr 4, 2018

I confirm @xeji report. I tested systemd 238 with kernel 4.14 (LTS) and 4.15. With 4.15 networking works inside nspawn virtual hosts, but with kernel 4.14 no. My distribution is Arch Linux.

@filbranden
Copy link
Member

I believe this is the same as issue #8599.

@xeji
Copy link
Author

xeji commented Apr 4, 2018

Maybe, but why does this only happen with kernel 4.14 ?

@filbranden
Copy link
Member

Maybe, but why does this only happen with kernel 4.14 ?

It's a race condition... ?

@xeji
Copy link
Author

xeji commented Apr 4, 2018

I tested #8633 and it seems to fix this on NixOS.

@poettering
Copy link
Member

Let's close this as duplicate of #8633 then.

Duplicate of #8599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants