Contents

VZNATNetworkDeviceAttachment

A device that routes network requests through the host computer and performs network address translation on the resulting packets.

Declaration

class VZNATNetworkDeviceAttachment

Overview

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:

  1. Create the VZNATNetworkDeviceAttachment object.

  2. Assign the attachment object to the attachment property of a VZVirtioNetworkDeviceConfiguration object.

  3. 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.

Topics

Creating the Attachment Point

See Also

Attachment points