...
- NIC configuration refer to https://docs.openstack.org/neutron/pike/admin/config-sriov.html
- Create availability zone and host aggregate.
$ nova aggregate-create sriov-aggregate sriov-az
...
- direct
$ nova aggregate-
...
- set-
...
- metadata sriov-
...
- 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"
}
] } ] ],
}
...