OpenNebula / one-apps

Toolchain to build OpenNebula appliances
Apache License 2.0
12 stars 13 forks source link

Disable `systemd-networkd-wait-online.service` in ubuntu appliances #134

Open alvarocurt opened 3 weeks ago

alvarocurt commented 3 weeks ago

Deployments of ubuntu VMs take over 2 minutes to boot because of the step: "A start job is running for Wait for Network to be Configured" Looks like systemd service systemd-networkd-wait-online.service takes around 2 minutes to wait until some network interfaces are configured, but in a volatile and flexible environment as a VM, the checked interfaces aren't correctly updated and so, the check always fails.

The fix is to reduce its timeout time o to simply disable the service https://www.reddit.com/r/Ubuntu/comments/16xi5h0/how_do_i_fix_systemdnetworkdwaitonlineservice/

Does this service serve any purpose in VMs? or does it just slow down boot process for no reason. Regards!