nixops-vbox icon indicating copy to clipboard operation
nixops-vbox copied to clipboard

Virtualbox: error changing eth{0,1} to enp0s{3,8}

Open ryanartecona opened this issue 10 years ago • 2 comments

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.

ryanartecona avatar Jan 28 '16 14:01 ryanartecona

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.

ryanartecona avatar Feb 04 '16 00:02 ryanartecona

Perhaps somehow dhcpcd and networkd are both enabled on those interfaces?

brrrocking avatar Feb 24 '16 21:02 brrrocking