[systemd-devel] failed to change interface name (systemd-networkd)
Lennart Poettering
lennart at poettering.net
Wed Oct 14 09:15:51 PDT 2015
On Wed, 23.09.15 22:17, James (jameszee13 at gmail.com) wrote:
> Hello,
>
> Hoping someone can point me in the right direction. I'm attempting to
> change the interface name (eth0 -> wired) on one of my servers.
>
> Here's the output from the journal:
>
> ~# journalctl --no-pager | grep -i wired
> Sep 23 17:11:15 vivid systemd-udevd[399]: error changing net interface
> name 'eth0' to 'wired0': Device or resource busy
> Sep 23 17:11:15 vivid systemd-udevd[399]: could not rename interface
> '2' from 'eth0' to 'wired0': Device or resource busy
> Sep 23 17:11:17 vivid sh[566]: Unknown interface wired0
> Sep 23 17:11:17 vivid systemd[1]: Started ifup for wired0.
> Sep 23 17:11:17 vivid systemd[1]: Starting ifup for wired0...
>
> Here's what the .link contains:
>
> # cat 10-ethernet.link
> [Match]
> MACAddress=fa:16:3e:31:7a:4b
> [Link]
> Name=wired0
> MACAddress=fa:15:33:55:33:44
>
> And the .network:
>
> # cat 20-ethernet.network
> [Match]
> Name=wired*
> [Network]
> DNS=8.8.8.8
> DNS=8.8.4.4
> [Address]
> Address=10.1.1.190/24
> [Route]
> Destination=0.0.0.0/0
> Gateway=10.1.1.1
>
> The MAC address of the interface changes properly, so I know that the
> unit is at least being read and parsed.
>
> As an aside, this is happening on Ubuntu 15.04. I've disabled
> NetworkManager and am relying, obviously, on systemd-networkd and
> systemd-resolved. I've also temporarily disabled dhcpd thinking that
> may have had something to do with the interface being busy, to no
> avail.
>
> Any thoughts on why the interface is busy resulting in the name change failing?
My educated guess is that DEbian's ifupdown scripts are responsible for
this... IIRC they install a unit file that is pulled in on hotplug,
and might keep the device busy...
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list