From ec3f5756d4673aa9c3e4ce50b49d379a2c234ea8 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Thu, 21 Nov 2024 18:43:18 +0100 Subject: [PATCH] FAQ: document /var/db/dhcpd_leases and its removal --- docs/faq.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 972a5619..1a126c8b 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -57,7 +57,15 @@ This issue is worked around automatically [when using Softnet](http://github.com sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.InternetSharing.default.plist bootpd -dict DHCPLeaseTimeSecs -int 600 ``` -Note that this tweak persists across reboots, so normally you'll only need to do it once per new host. +This tweak persists across reboots, so normally you'll only need to do it once per new host. + +If that doesn't help after starting a new VM, it's possible that the `/var/db/dhcpd_leases` file is already overfilled with 86,400-second leases. You can remove it with the following command and try starting a new VM again: + +```shell +sudo rm /var/db/dhcpd_leases +``` + +And no worries, this file will be re-created on the next `tart run`. ## Running login/clone/pull/push commands over SSH