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

Predictable interface names changed in Qemu VMs #29197

Closed
fpletz opened this issue Sep 10, 2017 · 4 comments
Closed

Predictable interface names changed in Qemu VMs #29197

fpletz opened this issue Sep 10, 2017 · 4 comments
Assignees
Labels
0.kind: regression Something that worked before working no longer 1.severity: blocker 6.topic: nixos
Milestone

Comments

@fpletz
Copy link
Member

fpletz commented Sep 10, 2017

On different machines with different Qemu-based virtualizations (libvirt from nixpkgs, $cloudhosters), the network interfaces namens changed from 17.03 to 17.09. Presumably this has to do with a systemd upgrade. It's due to a kernel config change, see #29197 (comment).

For example: enp0s3 becomes ens3.

This breaks existing networking configs and renders the machine unreachable via the network if a static configuration is used or dhcpcd is configured to run on specific interfaces.

This either needs to be fixed before the release (use old naming by patching system or similar) or we need a big fat warning in the release notes.

@fpletz fpletz added this to the 17.09 milestone Sep 10, 2017
@fpletz fpletz self-assigned this Sep 10, 2017
@fadenb
Copy link
Contributor

fadenb commented Sep 10, 2017

Do interface names starting with "enp" still exist with the newer systemd?
If not we could (in addition to the big fat warning) implement an assertion stopping users from bricking their systems (we all know that not every one studies the release notes as carefully as they should ;) )

@dezgeg
Copy link
Contributor

dezgeg commented Sep 14, 2017

enp* still exist. I think the change is not in systemd but rather in the kernel / firmware presenting some additional information of the device that systemd now prefers. (Given that https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c hasn't seen any major changes).

@groxxda
Copy link
Contributor

groxxda commented Sep 19, 2017

Probably caused by 5ac0026

According to https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L41-L42 the naming is based on hotplug slot index number.

@fpletz
Copy link
Member Author

fpletz commented Sep 28, 2017

It seems only QEMU is affected. The first interface in VirtualBox VMs is still enp0s3.

fpletz added a commit that referenced this issue Sep 28, 2017
@fpletz fpletz closed this as completed in 49f175c Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: regression Something that worked before working no longer 1.severity: blocker 6.topic: nixos
Projects
None yet
Development

No branches or pull requests

4 participants