You can add a network adapter (NIC) to a virtual machine to connect to a network, to enhance communications, or to replace an older adapter. When you add a NIC to a virtual machine, you select the adapter type, network connection, whether the device should connect when the virtual machine is turned on, and the bandwidth allocation.

For details about configuring the networking for virtual machine network adapters, see the vSphere Networking documentation

Prerequisites

  • Required privilege: Network.Assign network on a network.
  • To add an SR-IOV Passthrough adapter, ensure that the virtual machine is of hardware version 10 and later.
  • To add an SR-IOV Passthrough adapter, power off the virtual machine.

Procedure

  1. Right-click a virtual machine in the inventory and select Edit Settings.
  2. On the Virtual Hardware tab, add a new network adapter.
    Client Steps
    vSphere Client Click the Add New Device button and select Network Adapter from the drop-down menu.
    vSphere Web Client
    1. Select Network from the New device drop-down menu at the bottom of the wizard.
    2. Click Add.
    The new network adapter appears at the bottom of the device list.
  3. Expand New Network and select the standard or distributed port group to connect to.

    The menu lists all standard and distributed port groups that are available for virtual machine use on the host.

    If you want to provision bandwidth to the network adapter from a reserved quota by using vSphere Network I/O Control version 3, select a port group that is associated with the network resource pool that provides the quota.

  4. (Optional) Review and optionally change the Status settings.
    Option Description
    Connected Select this option while the virtual machine is running to connect or disconnect the virtual network adapter. This check box is not available when the virtual machine is turned off.
    Connect at power on Select this option for the virtual network adapter to connect to the network when the virtual machine turns on. If you do not check this option, you must manually connect the adapter for the virtual machine to access the network.
  5. Select the network adapter type to use from the Adapter Type drop-down menu.
  6. Deactivate DirectPath I/O if that seems appropriate in your environment.
    DirectPath I/O allows virtual machine access to physical PCI functions on platforms with an I/O Memory Management Unit. Some features become unavailable with DirectPath I/O enabled, others become available. See the vSphere Networking documentation for details.
  7. If the network adapter is connected to a distributed port group of a distributed switch that has vSphere Network I/O Control version 3 enabled, allocate bandwidth to the adapter.
    Note: You cannot allocate bandwidth to SR-IOV passthrough network adapters.
    1. From the Shares drop-down menu, set the relative priority of the traffic from this virtual machine as shares from the capacity of the connected physical adapter.
    2. In the Reservation text box, reserve a minimum bandwidth that must be available to the VM network adapter when the virtual machine is powered on.
    3. In the Limit text box, set a limit on the bandwidth that the VM network adapter can consume.
  8. (Optional) Select how to assign the MAC address from the drop-down menu.
    • Select Automatic to assign a MAC address automatically.
    • Select Manual to enter manually the MAC address that you want.
  9. Click OK.