FS#30235 - [dhcpcd][systemd] dhcpcd.service fails randomly
Attached to Project:
Arch Linux
Opened by solsTiCe (zebul666) - Sunday, 10 June 2012, 12:30 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 10 November 2012, 21:14 GMT
Opened by solsTiCe (zebul666) - Sunday, 10 June 2012, 12:30 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 10 November 2012, 21:14 GMT
|
Details
I was running an archlinux guest in virtualbox
and dhcpcd.service failed half of the time because dhcpcd.service was called sometimes before (sometimes after) the module was finished being loaded and the interface was not up. so dhcpcd failed randomly I have found that adding Requires=systemd-udev-settle.service in the [Unit] section fixes the problem I am a newbie systemd user |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 10 November 2012, 21:14 GMT
Reason for closing: Fixed
Additional comments about closing: testing/dhcpcd-5.6.2-2
Saturday, 10 November 2012, 21:14 GMT
Reason for closing: Fixed
Additional comments about closing: testing/dhcpcd-5.6.2-2
Note: We're talking about a very specific setup so may be it's not worth the effort ?
It may be that it triggers that bug of initialisation order more easily that with real hardware ??
And yes adding the driver module in a .conf file in /etc/modules-load.d/ fixes the problem
dhcpcd reported (in log) "eth0 interface not found or invalid", but all OK, when dhcpcd for eth0 started manually.
What driver did you mean? VB provide Ethernet connection, custom drivers or modules are not needed.
Add 'e1000' to /etc/modules-load.d/e1000.conf, then problem solved.
virtualbox 4.2. arch 64 installed.
There's a reason this isn't closed yet.
Edit:
I don't want to annoy anyone, but it works for me with two additional lines:
BindTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device