Fix Time Sensitive Networking doc
- Correct indentation of nova-tsn-pt.yaml file - Add # to the comment of `openstack flavor` command - Add parameter `--reuse-values` to `helm-override-update` command - Add command to check the correct `product_id` - Minor typos Closes-bug: 1950406 Signed-off-by: Hugo Brito <hugo.brito@windriver.com> Change-Id: Ic442cf49f9415f8aa3e413f6ef3d730153225b59
This commit is contained in:
parent
d7ce28f816
commit
7e85dbdc4b
@ -140,23 +140,29 @@ Edge cloud platform
|
|||||||
openstack image create --container-format bare --disk-format qcow2 --file
|
openstack image create --container-format bare --disk-format qcow2 --file
|
||||||
tsn_ubuntu_19_04.img --public tsn-ubuntu-19-04
|
tsn_ubuntu_19_04.img --public tsn-ubuntu-19-04
|
||||||
# add pci-passthrough property to flavor (for example m1.medium), "h210-1" is the
|
# add pci-passthrough property to flavor (for example m1.medium), "h210-1" is the
|
||||||
alias name of the PCI device configured in nova.config
|
# alias name of the PCI device configured in nova.config
|
||||||
openstack flavor set m1.medium --property pci_passthrough:alias=h210-1:1
|
openstack flavor set m1.medium --property pci_passthrough:alias=h210-1:1
|
||||||
|
|
||||||
#. Configure OpenStack Nova to allow for PCI passthrough. Create the
|
#. Configure OpenStack Nova to allow for PCI passthrough.
|
||||||
``nova-tsn-pt.yaml`` file to allow PCI passthrough for the i210 adapter (for
|
|
||||||
example device id: 8086:1533).
|
Check the correct ``product_id`` of your device with the command:
|
||||||
|
|
||||||
.. code:: sh
|
.. code:: sh
|
||||||
|
|
||||||
|
lspci -nn
|
||||||
|
|
||||||
|
Create the ``nova-tsn-pt.yaml`` file to allow PCI passthrough for the i210
|
||||||
|
adapter (for example device id: 8086:1533):
|
||||||
|
|
||||||
|
.. code:: yaml
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
nova:
|
nova:
|
||||||
pci:
|
pci:
|
||||||
alias:
|
alias:
|
||||||
type: multistring
|
type: multistring
|
||||||
values:
|
values:
|
||||||
- '{"vendor_id": "8086", "product_id": "1533","device_type":
|
- '{"vendor_id": "8086", "product_id": "1533", "device_type": "type-PCI", "name": "h210-1"}'
|
||||||
"type-PCI","name": "h210-1"}'
|
|
||||||
passthrough_whitelist:
|
passthrough_whitelist:
|
||||||
type: multistring
|
type: multistring
|
||||||
values:
|
values:
|
||||||
@ -195,16 +201,14 @@ Edge cloud platform
|
|||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
|
|
||||||
# set pci-passthrough config
|
# set pci-passthrough config
|
||||||
system helm-override-update |prefix|-openstack nova openstack --values
|
system helm-override-update |prefix|-openstack nova openstack --values ./nova-tsn-pt.yaml --reuse-values
|
||||||
nova-tsn-pt.yaml
|
|
||||||
system application-apply |prefix|-openstack
|
system application-apply |prefix|-openstack
|
||||||
|
|
||||||
#. Create VM instance.
|
#. Create VM instance.
|
||||||
|
|
||||||
.. code:: sh
|
.. code:: sh
|
||||||
|
|
||||||
openstack server create --image tsn-ubuntu-19-04 --network ${network_uuid}
|
openstack server create --image tsn-ubuntu-19-04 --network ${network_uuid} --flavor m1.medium tsn
|
||||||
--flavor m1.medium tsn
|
|
||||||
|
|
||||||
#. Install the TSN reference application and other test applications. Follow the
|
#. Install the TSN reference application and other test applications. Follow the
|
||||||
instructions in `TSN Reference Software for Linux`_ to compile and install
|
instructions in `TSN Reference Software for Linux`_ to compile and install
|
||||||
@ -324,7 +328,7 @@ Enable CBS with the commands:
|
|||||||
locredit -97 \
|
locredit -97 \
|
||||||
offload 1
|
offload 1
|
||||||
|
|
||||||
Enable LaunchTime with the commands:
|
Enable LaunchTime with the command:
|
||||||
|
|
||||||
.. code:: sh
|
.. code:: sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user