Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,21 @@ Avoid ten-second hangs by enabling Ubuntu to resolve the local hostname:
echo "127.0.1.1 $(hostname)" | sudo tee -a /etc/hosts
```

Avoid another class of ten-second hangs by telling Ubuntu to ignore the DNS search domains it gets over DHCP. The host's `vmnet` DHCP server relays the Mac's own resolver search domains (e.g. leftover `*.cmu.edu` entries from a network the laptop was once on) into the VM, and Ubuntu appends them to public names like `github.com`; if any of those domains points at an unreachable resolver, every lookup stalls for ten seconds. Drop them:

```sh
sudo tee /etc/netplan/60-no-search-domains.yaml <<'EOF' >/dev/null
network:
version: 2
ethernets:
all:
dhcp4-overrides:
use-domains: false
EOF
sudo chmod 600 /etc/netplan/60-no-search-domains.yaml
sudo netplan apply
```

Next, install Nix:

```sh
Expand Down