i [want] to determine ip address of guest os without any cooperation from guest. Thanks for confirming that. This is a fundamentally tricky problem to solve, at least in the general case. The guest chooses how it’s going to assign IP addresses to an interface, and the host has no direct control over that choice. However, there may be an indirect way to do this: Virtualization framework lets you create a network that’s backed by a vmnet network (VZVmnetNetworkDeviceAttachment). vmnet framework lets your configure a network with a specific DHCP mapping (vmnet_network_configuration_add_dhcp_reservation). There are some significant caveats: The guest must default to using DHCP. You can’t support bridged mode (VMNET_BRIDGED_MODE), because in bridged mode the guest isn’t talking to the vmnet DHCP server. This is all new in macOS 26. But otherwise I think it’ll work. So please try it out and let me know how you get along. ps It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten D
Topic:
App & System Services
SubTopic:
Core OS
Tags: