On step #2, “--type” should be “vlan”.

 

On step #3, “-nt”  option was removed for a while, you might use “-c” (meaning “The class of the interface”), as follows:

 

$ system host-if-modify -c pci-passthrough -p providernet-b compute-0 ens513f1

 

Using “Horizon” is another convenient way to perform these operations.

 

 

 

From: Himanshu Goyal <himanshugoyal500@gmail.com>
Date: Tuesday, 29 January 2019 at 1:14 PM
To: "starlingx-discuss@lists.starlingx.io" <starlingx-discuss@lists.starlingx.io>
Subject: [Starlingx-discuss] PCI - Passthrough Interafce on VM

 

Hi,

 

I built a setup with controller & compute machine. Able to spawn VM with flat network, But I need one PCI-Passthrough interface also on VM.

Please suggest the steps to create vm with PCI-Passthrough NIC.

 

Currently I'm following the below steps for creating pci-passthrough network:

 

Step1: system host-lock compute-0

step2: neutron providernet-create pci_net --type flat

step3: system host-if-modify -m 1500 -n pci_0 -p "pci_net" -nt pci-passthrough compute-0 ens513f1

 

step3 is giving wrong command error, can you please provide me the correct commands for the same. or if there is any other way to configure that.

 

Regards.

Himanshu Goyal