7.1 Understanding the Virtual NIC Object

A virtual network interface card (vNIC) represents the configuration of a VM connected to a network. A VM can be configured to have multiple vNICs. When a VM is provisioned, each of its associated vNICs can be attached to a virtual network bridge in order to gain connectivity to a specified network. The vNIC objects are discovered, along with their associated VM, when a Discover VM Images job has been run on a repository.

The vNIC is modeled as a Grid object, located as a subordinate to the VM Grid object in the Explorer tree of the Orchestration Console. A vNIC is given the form of vmname_vnic<n> where <n> is appended to indicate the order of discovery or creation of the vNIC. For example, redhat_vnic1 would be the name of the first NIC discovered for a VM with the Grid ID redhat. Each additional vNIC is incremented by one, so the second vNIC in this example would be named redhat_vnic2.

7.1.1 The Purpose of the Virtual NIC

A vNIC represents the network interface configuration for a virtual machine. A vNIC is linked to a network by connecting to a virtual network bridge (vBridge). A group of vBridge objects is represented as a Network group in the Explorer Tree. By convention, during VM host discovery, any vBridges that are configured with the same name are assumed to be part of the same network.

For more information, see Section 8.0, The Network Group and its Virtual Bridge Objects.

7.1.2 Creating or Deleting a vNIC in the Orchestration Console

Although a vNIC is generally discovered on a VM, you can also manually create or delete a vNIC. This section includes the following information:

Creating a Virtual NIC

You can manually create a vNIC anytime you want to give a VM access to a network configured on the VM host.

To create a vNIC, you can select the VM Grid object in the Explorer tree, then right-click and select Create Virtual NIC. You can also use the following alternate method:

  1. In the Orchestration Console main menu, select Actions > Create > Create Virtual NIC to display the Create a New Virtual NIC dialog.

  2. In the VM drop-down list, select the name of the VM to which you want to add a vNIC, then click Create.

  3. When you have created all of the vNICs you need, click Close.

  4. Select the newly created vNIC object in the Explorer Tree to view the Info/Groups page of the admin view.

  5. On the Info/Groups page, configure the following settings:

    MAC Address: The MAC Address assigned to this vNIC. If this field is left empty, or if it contains an asterisk (*), a MAC address is autogenerated for this vNIC.

    Network: The network (vBridge group) that should be used when provisioning the VM. When a VM is provisioned, any vBridge contained within the specified network group can be used for attaching the VNIC to the network.

    Although the vNIC can be formally created at this point, you can also configure Autoprep or Sysprep facts used to prepare a personalized version of the VM that can be provisioned later.

  6. Click the Save button to save the fact changes you have made.

  7. In the Explorer tree, right-click the VM object to which you added the vNIC, then select Save Config to apply the changes to the VM's configuration.

    IMPORTANT:If you do not run the Save Config action after configuring the vNIC, any vNICs that were added to the grid or vNIC settings that were modified could be lost.

Deleting a Virtual NIC

Although it is uncommon, you might want to manually delete a vNIC when you no longer want the VM to have access to a specified network on the VM host. For example, if the initial need for connecting the VM to a network no longer exists or if the network is going to become private and the VM should not have access, you would delete the virtual NIC that allows connectivity.

To delete a virtual NIC, you can select the vNIC object in the Explorer tree, then right-click and select Delete, or you can use the following procedure:

  1. In the Orchestration Console main menu, select Actions > Delete > Delete Virtual NIC to display the Create a New Virtual NIC dialog.

  2. In the Source Objects list, select the name of the vNIC (hold down the Ctrl key to select multiple vNICs), then click Add to move these objects to the Delete Targets list.

  3. When you have selected all of the vNICs you want to delete, click Delete to display the Delete dialog.

  4. In the dialog, select Apply to all to delete all of the vNIC objects in the Delete Targets list, click OK, then click Close.

  5. In the Explorer tree, right-click the VM object where you deleted the vNIC, then select Save Config to apply the changes to the VM's configuration.

NOTE:You must run the Save Config action to confirm the deletion of the vNIC. If you do not run this action, the vNIC is not deleted from the VM’s configuration.