C.3 Configure Networking for OpenStack Instance

Perform the following steps to verify or configure Networking for OpenStack Instance.
  1. Check if the interface is configured automatically.
  2. If DHCP is enabled on Neutron subnet, VM configures the VNIC with the IP address. To verify, ping the XMI IP address provided with the nova boot command:
    $ ping <XMI-IP-Provided-During-Nova-Boot>

    If the ping is successful, ignore the next part to configure the interface manually.

    Manually configure the interface, if not already done (optional).

    1. Log in to the Horizon GUI as the DSR tenant user.
    2. Go to the Compute/Instances section.
    3. Click on the Name field of the newly created instance.
    4. Select the Console tab.
    5. Log in as the admusr user.
    6. Configure the network interfaces, conforming with the interface-to-network mappings defined in DSR Cloud Benchmarking Guide.
      $ sudo netAdm add --onboot=yes --device=eth0 --address=<xmi ip> --netmask=<xmi net mask>
      $ sudo netAdm add --route=default --device=eth0 --gateway=<xmi gateway ip>

      Under some circumstances, it may be necessary to configure as many as 6 or more interfaces.

  3. Reboot the VM. It takes approximately 5 minutes for the VM to complete rebooting.
    $ sudo init 6

    The new VM should now be accessible using both network and Horizon console.