-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cidata: Use mac address as dhcpd identifier #3123
Conversation
On macOS the DHCP server use the DUID+IAID for both hw_address and identifier, which makes it harder to discover the machine mac address by looking up leases in /var/db/dhcpd_leases. It seems that this issue started in macOS 15. % cat /var/db/dhcpd_leases { name=lima-test ip_address=192.168.105.4 hw_address=ff,5c:bb:eb:5e:0:2:0:0:ab:11:72:3e:92:23:14:1d:a7:ba identifier=ff,5c:bb:eb:5e:0:2:0:0:ab:11:72:3e:92:23:14:1d:a7:ba lease=0x678b8aee } With this change the record is created using the mac address: % cat /var/db/dhcpd_leases { name=lima-test ip_address=192.168.105.4 hw_address=1,52:55:55:ba:82:85 identifier=1,52:55:55:ba:82:85 lease=0x678b90c6 } The fix is based on: cirruslabs/linux-image-templates#39. Minikube have the similar (networkd specific) fix: kubernetes/minikube#3572 Signed-off-by: Nir Soffer <nirsof@gmail.com>
The option is documented here:
The solution is mentioned as a fixf for Windows based DHCP server: |
Failed test seems unrelated: time="2025-01-18T11:12:48Z" level=error msg="[failed to satisfy the optional requirement 1 of 2 "systemd must be available": systemd is required to run containerd, but does not seem to be available.\nMake sure that you use an image that supports systemd. If you do not want to run\ncontainerd, please make sure that both 'container.system' and 'containerd.user'\nare set to 'false' in the config file.\n; skipping further checks: stdout="", stderr="": failed to execute script "systemd must be available": stdout="", stderr="": fork/exec /usr/bin/ssh: bad file descriptor]" time="2025-01-18T11:12:48Z" level=warning msg="DEGRADED. The VM seems running, but file sharing and port forwarding may not work. (hint: see "/Users/runner/.lima/fedora/ha.stderr.log")"
|
Here is the breakage: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
On macOS the DHCP server use the DUID+IAID for both hw_address and identifier, which makes it harder to discover the machine mac address by looking up leases in /var/db/dhcpd_leases. It seems that this issue started in macOS 15.
With this change the record is created using the mac address:
The fix is based on:
cirruslabs/linux-image-templates#39.
Minikube have the similar (networkd specific) fix: kubernetes/minikube#3572