lavabit / robox

The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
630 stars 140 forks source link

Ubuntu 22.04 initial up - systemd-networkd timeout (additional networks) #289

Open ryan-ronnander opened 10 months ago

ryan-ronnander commented 10 months ago

When running the initial vagrant up for the first time while having an additional network configured, the Vagrant box's systemd-networkd service encounters a Timeout occurred while waiting for network connectivity.

network_start_ubuntu_generic_2204

root@ubuntu2204:/home/vagrant# journalctl | grep systemd-network
Nov 30 21:32:51 ubuntu2204.localdomain systemd-networkd[529]: lo: Link UP
Nov 30 21:32:51 ubuntu2204.localdomain systemd-networkd[529]: lo: Gained carrier
Nov 30 21:32:51 ubuntu2204.localdomain systemd-networkd[529]: Enumeration completed
Nov 30 21:32:51 ubuntu2204.localdomain systemd-networkd[529]: eth0: Link UP
Nov 30 21:32:51 ubuntu2204.localdomain systemd-networkd[529]: eth0: Gained carrier
Nov 30 21:32:51 ubuntu2204.localdomain systemd[1]: Starting Dispatcher daemon for systemd-networkd...
Nov 30 21:32:51 ubuntu2204.localdomain systemd[1]: Started Dispatcher daemon for systemd-networkd.
Nov 30 21:32:53 ubuntu2204.localdomain systemd-networkd[529]: eth0: Gained IPv6LL
Nov 30 21:32:54 ubuntu2204.localdomain systemd-networkd[529]: eth0: DHCPv4 address 192.168.121.254/24 via 192.168.121.1
Nov 30 21:32:54 ubuntu2204.localdomain dbus-daemon[636]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.2' (uid=101 pid=529 comm="/lib/systemd/systemd-networkd " label="unconfined")
Nov 30 21:34:52 ubuntu2204.localdomain systemd-networkd-wait-online[616]: Timeout occurred while waiting for network connectivity.
Nov 30 21:34:52 ubuntu2204.localdomain systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Nov 30 21:34:52 ubuntu2204.localdomain systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Nov 30 21:35:00 ubuntu2204.localdomain systemd-networkd[529]: eth0: Re-configuring with /run/systemd/network/10-netplan-eth0.network
Nov 30 21:35:00 ubuntu2204.localdomain systemd-networkd[529]: eth0: DHCP lease lost
Nov 30 21:35:00 ubuntu2204.localdomain dbus-daemon[636]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.2' (uid=101 pid=529 comm="/lib/systemd/systemd-networkd " label="unconfined")

Vagrant file:

Vagrant.configure("2") do |config|
  config.vm.box = "generic/ubuntu2204"
  config.vm.network "private_network", ip: "192.168.222.234", network_name: "replication", created: false
end

This issue occurs on both libvirt and VirtualBox and only occurs with the generic/ubuntu2204 Vagrant box. Neither ubuntu/jammy64 or generic/ubuntu2004 have any issues with extra network adapters and they both boot as expected.

dereknola commented 6 months ago

This is still present on the latest version