Could you please also try to pass through SR-IOV capable physical NIC to VM by creating port whose vnic_type is direct-physical? The following commands can be referenced:
1. Use system command to configure interface. One is used for PCI PASSTHROUGH and the other is a normal interface.
export COMPUTE=controller-0
PHYSNET0='physnet0'
PHYSNET1='physnet1'
system host-lock ${COMPUTE}
system datanetwork-add ${PHYSNET0} vlan
system datanetwork-add ${PHYSNET1} vlan
system host-if-list -a ${COMPUTE}
system host-if-modify -m 1500 -n pcipass -c pci-passthrough ${COMPUTE} ${DATA0IFUUID}
system host-if-modify -m 1500 -n data1 -c data ${COMPUTE} ${DATA1IFUUID}
system interface-datanetwork-assign ${COMPUTE} ${DATA0IFUUID} ${PHYSNET0}
system interface-datanetwork-assign ${COMPUTE} ${DATA1IFUUID} ${PHYSNET1}
system interface-datanetwork-list ${COMPUTE}
system host-unlock ${COMPUTE}
# make sure stx-openstack has been re-applied successfully
system application-list
2. Create keypair and security group
mkdir -p /home/sysadmin/.ssh/
vi /home/sysadmin/.ssh/id_rsa
openstack keypair create key1 --private-key /home/sysadmin/.ssh/id_rsa
openstack security group create security1
openstack security group rule create --ingress --protocol icmp --remote-ip 0.0.0.0/0 security1
openstack security group rule create --ingress --protocol tcp --remote-ip 0.0.0.0/0 security1
openstack security group rule create --ingress --protocol udp --remote-ip 0.0.0.0/0 security1
5. Create VM with one PF port and one normal port which is used to ssh to the VM
openstack server create --image ubuntu --flavor m1.small --nic port-id=$port_id --network ${PUBLICNET1}
--security-group security1 --key-name key1 test-pci
Hi Sathish,
Could you please also try to pass through SR-IOV capable physical NIC to VM by creating port whose vnic_type is direct-physical? The following commands can be referenced:
1. Use system command to configure interface. One is used for PCI PASSTHROUGH and the other is a normal interface. controller- 0 'physnet0' 'physnet1' datanetwork- assign ${COMPUTE} ${DATA0IFUUID} ${PHYSNET0} datanetwork- assign ${COMPUTE} ${DATA1IFUUID} ${PHYSNET1} datanetwork- list ${COMPUTE}
export COMPUTE=
PHYSNET0=
PHYSNET1=
system host-lock ${COMPUTE}
system datanetwork-add ${PHYSNET0} vlan
system datanetwork-add ${PHYSNET1} vlan
system host-if-list -a ${COMPUTE}
system host-if-modify -m 1500 -n pcipass -c pci-passthrough ${COMPUTE} ${DATA0IFUUID}
system host-if-modify -m 1500 -n data1 -c data ${COMPUTE} ${DATA1IFUUID}
system interface-
system interface-
system interface-
system host-unlock ${COMPUTE}
# make sure stx-openstack has been re-applied successfully
system application-list
2. Create keypair and security group .ssh/ .ssh/id_ rsa .ssh/id_ rsa
mkdir -p /home/sysadmin/
vi /home/sysadmin/
openstack keypair create key1 --private-key /home/sysadmin/
openstack security group create security1
openstack security group rule create --ingress --protocol icmp --remote-ip 0.0.0.0/0 security1
openstack security group rule create --ingress --protocol tcp --remote-ip 0.0.0.0/0 security1
openstack security group rule create --ingress --protocol udp --remote-ip 0.0.0.0/0 security1
3. Create networks and subnets. Upload the ubuntu image. openstack_ helm `openstack project list | grep admin | awk '{print $2}'` 'physnet0' 'physnet1' 'public- net0' 'public- net1' 0='public- subnet0' 1='public- subnet1' network- type=vlan --provider- physical- network= ${PHYSNET0} --provider- segment= 400 ${PUBLICNET0} network- type=vlan --provider- physical- network= ${PHYSNET1} --provider- segment= 500 ${PUBLICNET1} cloud-images. ubuntu. com/xenial/ current/ xenial- server- cloudimg- amd64-disk1. img server- cloudimg- amd64-disk1. img ubuntu
export OS_CLOUD=
ADMINID=
PHYSNET0=
PHYSNET1=
PUBLICNET0=
PUBLICNET1=
PUBLICSUBNET
PUBLICSUBNET
openstack network segment range create ${PHYSNET0}-a --network-type vlan --physical-network ${PHYSNET0} --minimum 400 --maximum 499 --private --project ${ADMINID}
openstack network segment range create ${PHYSNET1}-a --network-type vlan --physical-network ${PHYSNET1} --minimum 500 --maximum 599 --private --project ${ADMINID}
openstack network create --project ${ADMINID} --provider-
openstack network create --project ${ADMINID} --provider-
openstack subnet create --project ${ADMINID} ${PUBLICSUBNET0} --network ${PUBLICNET0} --subnet-range 192.168.101.0/24
openstack subnet create --project ${ADMINID} ${PUBLICSUBNET1} --network ${PUBLICNET1} --subnet-range 192.168.102.0/24
wget http://
openstack image create --container-format bare --disk-format qcow2 --file xenial-
openstack image list
4. Create PF port whose vnic_type is direct-physical
net_id=`neutron net-show ${PUBLICNET0} | grep "\ id\ " | awk '{ print $4 }'`
port_id=`neutron port-create $net_id --name pf-port --binding:vnic_type direct-physical | grep "\ id\ " | awk '{ print $4 }'`
5. Create VM with one PF port and one normal port which is used to ssh to the VM
openstack server create --image ubuntu --flavor m1.small --nic port-id=$port_id --network ${PUBLICNET1}
--security-group security1 --key-name key1 test-pci