Comment 18 for bug 1836682

Revision history for this message
ChenjieXu (midone) wrote :

Hi Sathish,

We need to configure interface(eno1) with pci-passthrough by following command:
   system host-if-modify -m 1500 -n pcipass -c pci-passthrough ${COMPUTE} ${ENO1UUID}
   system interface-datanetwork-assign ${COMPUTE} pcipass ${PHYSNET2}

Some steps are wrong in scenario-1 and scenario-2. To test pci passthrough, you need to do following things:
1. Configure interface(eno1) with pci-passthrough and don't create VF.
2. Update nova helm chart
3. Do not create network, subnet on physnet2 which is bound to eno1. Because this physical NIC will be passed to VM and you should not use this physical NIC as a provider network which will be used by multiple VMs.
4. Create flavor and set property "pci_passthrough:alias". When you create VM using flavor with property "pci_passthrough:alias", Nova will know this VM shall be passed a physical NIC selected by the alias. PCI passthrough is configured by this way not creating network.
4. Create VM by following command:
   openstack server create --image ${NET}-image --flavor m1.medium.pci_passthrough --network public-net0 --security-group security1 --key-name key1 ${NET}-vm0
   Please make sure public-net0 are used instead of ${NET}-net. In scenario-2, I guess you use ${NET}-net to create VM which makes VM fail to launch. (Though the network in your command is public-net0). The created VM will have 2 NICs. One is created from public-net0 and is used for ssh. The other one is the passed NIC eno1.

It's strange to get no route to host Error. Please collect the outputs of following commands:
   ifconfig
   route -n
   ping 192.168.101.234
   Please also try to create a normal VM using image ubuntu, security group security1 and keypair key1. By doing this, we can check whether no route error is not related to pci passthrough or not.