[systemd-devel] failed to change interface name (systemd-networkd)
Kay Sievers
kay at vrfy.org
Thu Oct 1 11:31:40 PDT 2015
On Thu, Oct 1, 2015 at 7:21 PM, James <jameszee13 at gmail.com> wrote:
> Hello, just following up to see if there were any ideas on what may be
> causing this.
>
> Any thoughts appreciated.
>
> On Wed, Sep 23, 2015 at 10:17 PM, 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?
Most likely you have some other daemon running, or a script executed
by udev, or the interface is found by some init script, something that
brings the interface up before the attempt to rename it by
udev/networkd.
Kay
More information about the systemd-devel
mailing list