Closed barkingfoodog closed 1 month ago
Looks like a bug in the macOS DHCP server:
It uses the client ID not just in the identifier=
field, but also in hw_address=
field, yet this field's name hints that it should only contain a MAC-address.
I've created https://github.com/cirruslabs/linux-image-templates/pull/38 to address this in our Linux VM images.
Thank you! I'll watch for the next Linux VM build and confirm the fix before closing this.
@edigaryev I saw new builds come through a couple days ago at https://github.com/cirruslabs/linux-image-templates/pkgs/container/ubuntu. I pulled a fresh copy of the 22.04 image and I'm still not getting an IP from tart ip ubuntu
.
Should those images have the fix from https://github.com/cirruslabs/linux-image-templates/pull/38?
@barkingfoodog my bad, I was testing the fix on the initial boot, which still used the network-config
provided to the Cloud Init.
I've created https://github.com/cirruslabs/linux-image-templates/pull/39 to fix this and will initiate a re-build of base images once it gets merged 🙌
Should work now, tested with the latest versions of:
ghcr.io/cirruslabs/ubuntu:latest
ghcr.io/cirruslabs/ubuntu:24.04
ghcr.io/cirruslabs/debian:latest
ghcr.io/cirruslabs/fedora:latest
(AFAIR this one worked before the fix)@edigaryev I can confirm this works now with ghcr.io/cirruslabs/ubuntu:latest
using Tart 2.18.4 on macOS Sequoia 15.0.1. Thank you!
I'm running tart 2.18.4 on macOS Sequoia 15.0. Tart works fine with a macOS image, and I'm trying to get an Ubuntu VM going for the first time.
I followed the basic steps from https://tart.run/quick-start/:
The VM downloads, boots up, and I can log into through the tart GUI. However, I'm unable to get the VM IP using
tart ip ubuntu
. Instead I get:I found #632 and tried the workaround from #657 but that doesn't help. After clearing
/var/db/dhcpd_leases
and restarting the VM I get output that looks legit in/var/db/dhcpd_leases
:This matches the IP inside the VM (confirmed using
ifconfig
).I have an OpenVPN Connect VPN running, but disabling it doesn't seem to make any difference. I don't have any issues getting the IP address from a macOS VM running under tart.
Any compatibility issues with macOS 15 or other troubleshooting ideas for how to get
tart ip ubuntu
returning the VM's IP address?