IP range of DHCP network is changed very often
Using VMs mostly with shared network I depend on the dynamically retrieved IP address of the DHCP server to access the VM from the host system. However the retrieved IP for one VM changes every now and then.
I did some checks and discovered, that in those situations the value of Shared_Net_Address in the file /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist is changed when starting UTM.
I did the following:
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Shared_Net_Address -string 192.168.64.1
sudo defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Shared_Net_Address
-> 192.168.64.1
Start UTM
sudo defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Shared_Net_Address
-> 192.168.65.1
- UTM Version: 4.5.2 (97)
- macOS Version: 14.6.1
- Mac Chip (Intel, M1, ...): M2 Pro
In addition to that I use Docker Desktop 4.33.0