VZNATNetworkDeviceAttachment
A device that routes network requests through the host computer and performs network address translation on the resulting packets.
Declaration
class VZNATNetworkDeviceAttachmentOverview
A VZNATNetworkDeviceAttachment works with the host computer to perform network address translation (NAT) on the guest system’s network packets, and then route those packets to outside networks. Use this attachment to give the guest system indirect access to external networks, instead of direct access through a shared physical network interface.
To configure a network device with a NAT attachment:
Create the VZNATNetworkDeviceAttachment object.
Assign the attachment object to the attachment property of a VZVirtioNetworkDeviceConfiguration object.
Add the VZVirtioNetworkDeviceConfiguration object to the networkDevices property of your VZVirtualMachineConfiguration.
This attachment doesn’t require your app to have the com.apple.vm.networking entitlement.