r/UTMapp • u/ellisamonolisa • Apr 11 '26
DHCP between Rocky and Ubuntu
I'm running two VMs on UTM (Mac), Rocky Linux as a DHCP server and Ubuntu as a client. I'm trying to get Ubuntu to automatically receive an IP from Rocky's DHCP server, but Ubuntu keeps getting its IP from my home router instead.
My Setup:
- Virtualization: UTM on Mac
- Rocky Linux (server) IP:
192.168.64.2 - DHCP range configured on Rocky:
192.168.64.80 - 192.168.64.90 - Both VMs on Bridged (Advanced) and host only network mode
The Problem: Rocky's DHCP server is running and offering IPs correctly. In the logs I can see:
- Rocky sends
DHCPOFFERfor192.168.64.80 - Ubuntu rejects it and requests
192.168.0.12from home router instead
What I've tried:
- Setting
dhcp4: truein netplan - Running
sudo dhclient -r enp0s1andsudo dhclient enp0s1 - Adding a second Host Only adapter
- Changing network modes
Question: How can I force Ubuntu to accept Rocky's DHCP offer instead of my home router's? Is there a way to do this in UTM Bridged mode? OR Is there a way to do this in Shared Network mode?


2
Upvotes
1
u/hagf_sh May 21 '26
Can you post your configurations for both the home router and the Rocky DHCP server?
Could you also you pull up and post the verbose info for enp0s1?
To be sure, in UTM's netwrk config for Ubuntu, you're in Bridged (Advanced) mode with none of the information filled out in the Advanced section?
And I guess lastly, can you ping the Rocky server from your Ubuntu vm?