You can use VMware Integrated OpenStack to create OpenStack instances that use network physical functions with the SR-IOV or DirectPath I/O technology from VMware.

Consumption of passthrough devices is achieved by using the appropriate flavor. Modify the metadata parameters of the flavor to create the instance.

Prerequisites

  • Ensure VMware Integrated OpenStack 4.0 or later is running.

Procedure

  1. Log in to the OpenStack Management Server.
  2. Create custom.yml file if it does not exist.
    sudo mkdir -p /opt/vmware/vio/custom
         sudo cp /var/lib/vio/ansible/custom/custom.yml.sample 
         /opt/vmware/vio/custom/custom.yml
  3. Open the /opt/vmware/vio/custom/custom.yml file in a text editor.
  4. Create PCI alias using VMware Integrated OpenStack customization by editing the custom.yml file according to your configuration.
    1. Edit nova_pci_alias value to create PCI alias based on device_type, vendor_id, and product_id and name the alias, for example:
      nova_pci_alias: [{"device_type": "type-VF", "name": "sriov"}, {"vendor_id":"15b3", "product_id":"1013", "device_type": "type-PF", "name":"fpt"}]
    2. Save the custom.yml file.
  5. Push the new configuration to your VMware Integrated OpenStack deployment.

    Refresh of the configuration briefly interrupts the OpenStack services.

    viocli deployment configure --tags nova_api_config

What to do next

Update Flavor Metadata to Enable Passthrough.