Hello,
I am setting up a Linux virtual machine with Virtualization framework. It works fine. Here is how i am creating a network interface:
let network_device = VZVirtioNetworkDeviceConfiguration()
network_device.attachment = VZNATNetworkDeviceAttachment()
vm_config.networkDevices = [network_device]
As you can see, this is a NAT network. I would like to know the IP address assigned to this interface. macOS emulates a DHCP server and i would like to know the IP in my Xcode program.
How can i do that ?
Thanks