[systemd-devel] Random "busy" while renaming net interface on KVM

Kay Sievers kay at vrfy.org
Mon Feb 4 13:07:30 PST 2013


On Thu, Jan 31, 2013 at 5:34 PM, Gerardo Exequiel Pozzi
<vmlinuz386 at yahoo.com.ar> wrote:
> Hello
>
> During testing Arch Linux ISO under KVM (1.2.0) (using systemd 197),
> looks like when rename rules must be applied network interface is still
> busy.
>
> You can see on the journal, when things goes bad:
>
> Jan 31 16:27:53 archiso kernel: pci 0000:00:03.0: [10ec:8139] type 00
> class 0x020000
> Jan 31 16:27:53 archiso kernel: 8139cp: 8139cp: 10/100 PCI Ethernet
> driver v1.3 (Mar 22, 2004)
> Jan 31 16:27:53 archiso kernel: 8139cp 0000:00:03.0 eth0: RTL-8139C+ at
> 0xc894e000, 52:54:00:12:34:56, IRQ 11
> Jan 31 16:27:53 archiso kernel: 8139cp 0000:00:03.0: setting latency
> timer to 64
> Jan 31 16:27:53 archiso kernel: 8139too: 8139too Fast Ethernet driver 0.9.28
> Jan 31 16:27:53 archiso kernel: 8139cp 0000:00:03.0 eth0: link up,
> 100Mbps, full-duplex, lpa 0x05E1

Something is bringing up the in interface *before* udev has renamed it.

> Jan 31 16:27:54 archiso systemd-udevd[171]: error changing net interface
> name eth0 to enp0s3: Device or resource busy

And a busy interface cannot be renamed anymore.

It's likely a system-wide dhcp service, which should rather run in the
device context, not listen itself for new devices.

See some details here:
  https://bbs.archlinux.org/viewtopic.php?pid=1219024#p1219024
  https://bugs.freedesktop.org/show_bug.cgi?id=59610#c4

Kay


More information about the systemd-devel mailing list