Creating a Logical Network

For this example scenario, you create a virtual machine network that you then assign to the KVM host added in Adding a KVM Host to the Manager. This network is used as the virtual machine network for the virtual machines created in Creating a New Virtual Machine.

Creating a Virtual Machine Network

To create a virtual machine network:

  1. Go to Network and then click Networks.

  2. On the Networks pane, click New.

    The New Logical Network dialog box opens with the General tab selected on the sidebar.

  3. From the Data Center drop-down list, select the Data Center for the network.

    By default, the Default option is selected in the drop-down list.

    For this step, leave Default selected from the drop-down list because the default data center and cluster are used in this example scenario.

    For the procedures to create new data centers or a new clusters, refer to Data Centers or Clusters tasks in the Oracle Linux Virtualization Manager: Administration Guide.

  4. For the Name field, enter a name for the new network.

  5. Leave the VM Network check box selected.

    Under the Network Parameters section, the VM Network check box is selected by default, which is left selected because a virtual machine network is being created in this example.

  6. (Optional) Configure other settings for the new logical network from the other tabs on the New Logical Network sidebar.

    The default settings are used for this example scenario.

  7. Click OK to create the network.

    The following screenshot shows the General tab of the New Logical Network dialog box completed for the new logical network that is being created in this example:

    • From the Data Center drop-down list, the Default option is selected.

    • For the Name field, vm_pub is entered.

    • Under the Network Parameters section, the VM Network check box is selected.

    Figure 1 New Logical Network Dialog Box: General Tab


Assigning the Virtual Machine Network to a KVM Host

To assign the virtual machine network to a KVM host:

  1. Go to Compute and then click Hosts.

    The Hosts pane opens.

  2. Under the Name column, click the name of the host for which to add the network.

    The following screenshot shows the Hosts pane with the name of the host highlighted in a red rectangular box to emphasize where you need to click to set up a network on a host.


    After clicking the name of the host, the General tab opens with details about the host.

  3. Click the Network Interfaces tab on the horizontal menu.

    The Network Interfaces tab opens with details about the network interfaces on the available host.

  4. Highlight the network interface that you want to use for the network being added by clicking the row for the respective interface.

  5. Click Setup Host Networks.

    The Setup Host Networks dialog box opens for the host. The physical interfaces on the host are listed under the Interfaces column and any logical networks assigned to the interface are displayed under the Assigned Logical Networks column. Unassigned logical networks are displayed under the Unassigned Logical Networks column.

    As shown in the following screenshot, the logical network created in Creating a Logical Network named vm_pub is displayed under the Unassigned Logical Networks column. In the next step, you assign this network to the network interface named eno2, which currently has no network assigned to it.

    Figure 3 Setup Host Dialog Box: Unassigned Logical Networks


  6. Select the network you want to add from the Unassigned Logical Networks column by left-clicking the network and, while holding down the mouse, drag the network over to the box to the right of the available network interface where you want to add the network.

    Alternatively, you can right-click the network and select the available interface from a drop-down list.

    For this example, the logical network named vm_pub is assigned to the available network interface named eno2. As shown in the following screenshot, after dragging the network from Unassigned Logical Networks over to this interface, the network named vm_pub appears under the Assigned Logical Networks column as assigned to the network interface named eno2.

    Figure 4 Setup Host Dialog Box: Assigned Logical Networks


  7. After editing the network settings, click OK to save the settings.

  8. Click OK to add the network.