Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. NIC configuration  refer to https://docs.openstack.org/neutron/pike/admin/config-sriov.html
  2. Create availability zone and host aggregate.
     $ nova aggregate-create sriov-aggregate sriov-az

...

  1. direct
     $ nova aggregate-

...

  1. set-

...

  1. metadata sriov-

...

  1. direct sriov-nic=true 
     $ openstack flavor create m1.tiny --id auto --ram 512 --disk 20 --vcpus 2
     $ openstack flavor set m1.tiny --property pci_passthrough:alias=intel-15B3-1003:2
     $ openstack flavor set m1.tiny --property aggregate_instance_extra_specs:sriov-nic=true

After Openstack configs SR-IOV NIC, we will have a provider network.

...

$ openstack network create --privider-network-type vlan --provider-physical-network physnet physnet --provider-segmatation_id 101 tenant_netnet 

$ openstack subnet create --network tenant_net --subnet-range 192.168.100.0/24 subnet

...

4. Create the VM. For the nic we specify the SR-IOV port created in step 2:

$ nova boot --flavor m1.large tiny --image ubuntu_14.04 --nic port-id=$port_id test-sriov

...

                        "vnicType": "direct",                        "availabilityZone": "sriov-zone"

                      }
               ] } ] ],
                  }

...