cidata: skip set-name for slirp NIC to fix ubuntu-26.04 first-boot delay#5070
Draft
itsme-ranger wants to merge 2 commits into
Draft
cidata: skip set-name for slirp NIC to fix ubuntu-26.04 first-boot delay#5070itsme-ranger wants to merge 2 commits into
itsme-ranger wants to merge 2 commits into
Conversation
86d75ec to
feffcf5
Compare
AkihiroSuda
reviewed
Jun 2, 2026
| match: | ||
| macaddress: '{{$nw.MACAddress}}' | ||
| dhcp4: true | ||
| {{- if ne $nw.Interface $.SlirpNICName }} |
Member
There was a problem hiding this comment.
Please add comment line to explain the reason
Member
|
Apparently breaking several tests including Colima https://github.com/lima-vm/lima/actions/runs/26789894308/job/78973801469?pr=5070 |
On ubuntu-26.04, systemd-networkd-wait-online is configured by netplan to wait for eth0 before it exists. On first boot the NIC is still enp0s1 — the udev rename hasn't happened yet — causing a 120s timeout. Marking the slirp NIC as optional (netplan optional: true -> RequiredForOnline=no in systemd-networkd) tells wait-online to not block on eth0, so boot completes immediately. The interface is still renamed to eth0 after boot, preserving existing behaviour for all other tools. Fixes: lima-vm#4792 Signed-off-by: Ramadhan Gerry Akbar <ramadhan.gerry@gmail.com>
feffcf5 to
c719ef8
Compare
…boot delay" optional: true causes systemd-networkd-wait-online to complete before DHCP assigns an IP on some distro/driver combinations (observed: ubuntu-25.10 on vz), breaking Lima's SSH connectivity to the VM. Both approaches tried so far (removing set-name, adding optional: true) are too broad — they affect all distros since network-config has no per-distro awareness. Reverting until a targeted fix is found. Signed-off-by: Ramadhan Gerry Akbar <ramadhan.gerry@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What This PR Changes
Skips
set-namefor Lima's built-in slirp NIC in thenetwork-configcloud-init template. Also removes a hardcodedeth0interface name from the proxy-settings check inhack/test-templates.sh.Linked Issue
Closes #4792
How I Tested This
Verified the template renders correctly (unit tests pass). End-to-end boot test on a fresh
template:ubuntu-26.04instance is required to confirm the 2-minute delay is gone — I don't have an environment to run that locally