Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
@klausenbusk
Hm, this keeps being strange (and kinda random). If for example i run systemctl status time-sync.target directly after booting the vm, then different hangs/timeouts happen.
After removing the following packages the 60s(+) waits are gone:
netplan
cloud-init
Is there a way to use cloud-init here without netplan on arch linux? I know that cloud-init can be run with plain systemd-networkd (we're using it this way w/ our customized debian vms). Why would anybody include yet another abstraction layer, but puh, hey, that's not my war…
arch-boxes predates the systemd-networkd render. Could you try removing netplan from a not-booted cloud image with pacman -Rdd netplan and see if the systemd-networkd render works? Perhaps I can then convince the cloud-init maintainer to make it a optional dependency.
arch-boxes predates the systemd-networkd render. Could you try removing netplan from a not-booted cloud image with pacman -Rdd netplan and see if the systemd-networkd render works?
As stated in #156 (comment 83818), this seems to work fine here. Now a file per interface is generated in /etc/systemd/network, so works as expected.
Perhaps I can then convince the cloud-init maintainer to make it a optional dependency.
Yes please. In my optinion netplan is a useless dependency, so making it optional would be great ;)
@klausenbusk i am working with @boris64 and was able to create an image without netplan, as you suggested.
as i am using proxmox (pve 7.3-3 for that matter), i was only able to check a subset of available cloud-init networking settings.
see these screenshots for clarification:
i can confirm that:
search domain in /etc/resolv.conf ist correctly set to "thisis.mydomin" (yep, it's a typo).
the requested ipv4 address, mask and gateway route have been set.
the requested ipv6 address, mask and gateway route have been set.
resolvectl also lists the fd00:1023::5 (and ::1) dns servers.
cloud-init.service, cloud-init-local.service, systemd-network-generator.service are all enabled and ran without throwing an error.
the dreaded 60s wait for the timeout is gone, too. systemctl daemon-reload now completes in less than 250ms.
For older systems which are using netplan after upgrading to cloud-init 22.4.2-2 which netplan is an optional dependency, this command can be used to switch to systemd-networkd.
@klausenbusk after remove netplan and install the latest cloud-init 22.4.2-2, re-generating the new profile and the new network config file for systemd-networkd is something like