Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@samta

Yes, i have assigned static IP. Below are some details of conf.

  [root@openstackJuno neutron]# grep -E -v '^$|^#' /etc/neutron/plugins/ml2/ml2_conf.ini 
[ml2]
type_drivers = vlan
tenant_network_types = vlan
mechanism_drivers = openvswitch,sriovnicswitch
[ml2_type_flat]
[ml2_type_vlan]
network_vlan_ranges = physnet1:2:100
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
[securitygroup]
firewall_driver = neutron.agent.firewall.NoopFirewallDriver
enable_security_group = True

[root@openstackJuno neutron]# grep -E -v '^$|^#' /etc/neutron/plugins/ml2/ml2_conf_sriov.ini 
[ml2_sriov]
supported_pci_vendor_devs = 8086:1515
agent_required = True
[sriov_nic]
physical_device_mappings = physnet1:enp4s0f1
[root@openstackJuno neutron]# 

(Required section from nova)
    [root@openstackJuno neutron]# grep -E -v '^$|^#' /etc/nova/nova.conf 
    [DEFAULT]
    pci_passthrough_whitelist = {"address":"*:04:10.*","physical_network":"physnet1"}

vm creation steps

neutron net-create --provider:physical_network=physnet1 --provider:network_type=vlan sriovTestNetwork 

neutron subnet-create sriovTestNetwork 192.168.1.0/24 --name sriovSubnet --allocation-pool start=192.168.1.30,end=192.168.1.40

neutron port-create sriovTestNetwork --binding:vnic-type direct --name sriovPort1

nova boot --flavor m1.small --nic port-id=<port id> --image 8d0def3d-8209-42dc-b53d-c00dee8f8856 vm2