nixops-vbox
nixops-vbox copied to clipboard
Virtualbox: error changing eth{0,1} to enp0s{3,8}
On a fresh, barebones virtualbox instance, I get the following in my journal when it boots.
Jan 28 13:34:04 buggy systemd-udevd[2359]: Error changing net interface name 'eth0' to 'enp0s3': Device or resource busy
Jan 28 13:34:04 buggy systemd-udevd[2350]: Error changing net interface name 'eth1' to 'enp0s8': Device or resource busy
Jan 28 13:34:04 buggy systemd-udevd[2359]: could not rename interface '2' from 'eth0' to 'enp0s3': Device or resource busy
Jan 28 13:34:04 buggy systemd-udevd[2350]: could not rename interface '3' from 'eth1' to 'enp0s8': Device or resource busy
For context, full journalctl output can be found in this gist.
This happens pretty consistently when I create a fresh instance, but is fairly unpredictable when I reboot thereafter.
Not sure about a proper fix, but adding networking.useNetworkd = true; to my configuration seems to have resolved the issue for me. Feel free to close if this is not worth fixing for reals.
Perhaps somehow dhcpcd and networkd are both enabled on those interfaces?