Skip to content
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

Router and DNS not set in Network settings #657

Closed
simonbs opened this issue Nov 15, 2023 · 4 comments
Closed

Router and DNS not set in Network settings #657

simonbs opened this issue Nov 15, 2023 · 4 comments

Comments

@simonbs
Copy link
Contributor

simonbs commented Nov 15, 2023

After performing the upgrades as outlined in the table below, I'm seeing an issue where 9/10 times my virtual machines will fail to configure the networking settings correctly. The values for DNS and router are missing.

Upgrade From Upgrade To
Host Machine macOS Ventura macOS Sonoma 14.1.1
Virtual Machine macOS Ventura 14.0 macOS Sonoma 14.1.1
tart Unknown, but likely 1.21.1 2.3.0

The images below compares how the networking settings are expected to look and how they often end up when the virtual machine is booted.

Expected Actual (Often, at least)
good bad

In the case where the network settings are incorrect, the virtual machine is unable to make any network calls.

Have anyone seen anything similar or have an idea as to what might be causing this? These virtual machines have been running fine for months but we only started seeing this issue within the past 24 hours after upgrading the software.

@edigaryev
Copy link
Collaborator

Hello Simon,

  1. Does this behavior persists after the guest machine reboots?

  2. Are you passing any additional command-line variables to tart run <VM_NAME>?

@simonbs
Copy link
Contributor Author

simonbs commented Nov 15, 2023

@edigaryev Thanks for your quick reply.

The problem persists even when rebooting the virtual machine and the host machine. It only happens sometimes when booting the virtual machine but it seems to happen most of the times. I have a suspicion that it also happens more often when running two virtual machines in parallel but I have been unable to confirm this.

I'm doing tart run <VM_NAME> --dir=<DIR>.

@edigaryev
Copy link
Collaborator

I've just looked at the screenshot one more and realized that it's not just the router address that is missing, your VM is not getting any address from the DHCP server at all. Instead, it's self-assigning a link-local address.

We've seen this behavior before, when the macOS DHCP server exhausts it's IP address pool.

You can try to tweak the default DHCP lease time and if that doesn't help, move/remove the /var/db/dhcpd_leases file and boot the VM again to see if that helps.

@simonbs
Copy link
Contributor Author

simonbs commented Nov 15, 2023

@edigaryev We had quite a lot of leases in /var/db/dhcpd_leases and recently had quite a few reboots of our virtual machines over a short period of time so this sounds very plausible.

I have removed the /var/db/dhcpd_leases file and decreased our DHCP lease time to two hours. This seems to have fixed the issue for now.

Thank you so much for your prompt reply. You're a lifesaver! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants