- [sysadmin@controller-0 ~(keystone_admin)]$ WORKER=controller-0
-
- [sysadmin@controller-0 ~(keystone_admin)]$
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-label-assign $WORKER sriovdp=enabled
-
- +-------------+--------------------------------------+
- | Property | Value |
- +-------------+--------------------------------------+
- | uuid | 7101010d-1897-4cc8-8c87-7dffaebf848b |
- +-------------+--------------------------------------+
- | host_uuid | 08c23843-afa4-4b80-a285-be126365276e |
- +-------------+--------------------------------------+
- | label_key | sriovdp |
- +-------------+--------------------------------------+
- | label_value | enabled |
- +-------------+--------------------------------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-label-assign $WORKER kube-cpu-mgr-policy=static
-
- +-------------+--------------------------------------+
- | Property | Value |
- +-------------+--------------------------------------+
- | uuid | 4936f32b-6939-4115-b643-846bd50e7738 |
- +-------------+--------------------------------------+
- | host_uuid | 08c23843-afa4-4b80-a285-be126365276e |
- +-------------+--------------------------------------+
- | label_key | kube-cpu-mgr-policy |
- +-------------+--------------------------------------+
- | label_value | static |
- +-------------+--------------------------------------+
-
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-memory-modify $WORKER -1G 7 0
-
- +-------------------------------------+--------------------------------------+
- | Property | Value |
- +-------------------------------------+--------------------------------------+
- | Memory: Usable Total (MiB) | 0 |
- +-------------------------------------+--------------------------------------+
- | Platform (MiB) | 7000 |
- +-------------------------------------+--------------------------------------+
- | Available (MiB) | 0 |
- +-------------------------------------+--------------------------------------+
- | Huge Pages Configured | True |
- +-------------------------------------+--------------------------------------+
- | vSwitch Huge Pages: Size (MiB) | 1024 |
- +-------------------------------------+--------------------------------------+
- | Total | 0 |
- +-------------------------------------+--------------------------------------+
- | Available | 0 |
- +-------------------------------------+--------------------------------------+
- | Required | None |
- +-------------------------------------+--------------------------------------+
- | Application Pages (4K): Total | None |
- +-------------------------------------+--------------------------------------+
- | Application Huge Pages (2M): Total | 0 |
- +-------------------------------------+--------------------------------------+
- | Available | 0 |
- +-------------------------------------+--------------------------------------+
- | Application Huge Pages (1G): Total | 0 |
- +-------------------------------------+--------------------------------------+
- | Total Pending | 7 |
- +-------------------------------------+--------------------------------------+
- | Available | 0 |
- +-------------------------------------+--------------------------------------+
- | uuid | 15702f44-2281-41f3-8c83-a1e9a300ad01 |
- +-------------------------------------+--------------------------------------+
- | ihost_uuid | 08c23843-afa4-4b80-a285-be126365276e |
- +-------------------------------------+--------------------------------------+
- | inode_uuid | d52648bc-dfa6-4214-afa3-5d2148ee4180 |
- +-------------------------------------+--------------------------------------+
- | created_at | 2020-06-03T08:21:27.468357+00:00 |
- +-------------------------------------+--------------------------------------+
- | updated_at | 2020-06-03T10:10:49.159080+00:00 |
- +-------------------------------------+--------------------------------------+
-
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-memory-modify $WORKER -1G 7 1
-
- +-------------------------------------+--------------------------------------+
- | Property | Value |
- +-------------------------------------+--------------------------------------+
- | Memory: Usable Total (MiB) | 0 |
- +-------------------------------------+--------------------------------------+
- | Platform (MiB) | 1000 |
- +-------------------------------------+--------------------------------------+
- | Available (MiB) | 0 |
- +-------------------------------------+--------------------------------------+
- | Huge Pages Configured | True |
- +-------------------------------------+--------------------------------------+
- | vSwitch Huge Pages: Size (MiB) | 1024 |
- +-------------------------------------+--------------------------------------+
- | Total | 0 |
- +-------------------------------------+--------------------------------------+
- | Available | 0 |
- +-------------------------------------+--------------------------------------+
- | Required | None |
- +-------------------------------------+--------------------------------------+
- | Application Pages (4K): Total | None |
- +-------------------------------------+--------------------------------------+
- | Application Huge Pages (2M): Total | 0 |
- +-------------------------------------+--------------------------------------+
- | Available | 0 |
- +-------------------------------------+--------------------------------------+
- | Application Huge Pages (1G): Total | 0 |
- +-------------------------------------+--------------------------------------+
- | Total Pending | 7 |
- +-------------------------------------+--------------------------------------+
- | Available | 0 |
- +-------------------------------------+--------------------------------------+
- | uuid | 544580b9-0f2a-41a1-b4e3-90fdf5c8f7e0 |
- +-------------------------------------+--------------------------------------+
- | ihost_uuid | 08c23843-afa4-4b80-a285-be126365276e |
- +-------------------------------------+--------------------------------------+
- | inode_uuid | e02c3c41-03b7-4f49-8244-bca851fa2d2f |
- +-------------------------------------+--------------------------------------+
- | created_at | 2020-06-03T08:21:27.566279+00:00 |
- +-------------------------------------+--------------------------------------+
- | updated_at | 2020-06-03T10:10:49.220907+00:00 |
- +-------------------------------------+--------------------------------------+
-
-
- [sysadmin@controller-0 ~(keystone_admin)]$ PHYSNET0='physnet0'
-
- [sysadmin@controller-0 ~(keystone_admin)]$ PHYSNET1='physnet1'
-
- [sysadmin@controller-0 ~(keystone_admin)]$ WORKER=controller-0
-
- [sysadmin@controller-0 ~(keystone_admin)]$
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-add ${PHYSNET0} flat
-
- +--------------+--------------------------------------+
- | Property | Value |
- +--------------+--------------------------------------+
- | id | 1 |
- +--------------+--------------------------------------+
- | uuid | 0ffe0b0a-35ff-45b2-9a62-63a494d2d18b |
- +--------------+--------------------------------------+
- | name | physnet0 |
- +--------------+--------------------------------------+
- | network_type | flat |
- +--------------+--------------------------------------+
- | mtu | 1500 |
- +--------------+--------------------------------------+
- | description | None |
- +--------------+--------------------------------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-add ${PHYSNET1} flat
-
- +--------------+--------------------------------------+
- | Property | Value |
- +--------------+--------------------------------------+
- | id | 2 |
- +--------------+--------------------------------------+
- | uuid | 899ca8ba-6800-4d62-aed4-3770878da738 |
- +--------------+--------------------------------------+
- | name | physnet1 |
- +--------------+--------------------------------------+
- | network_type | flat |
- +--------------+--------------------------------------+
- | mtu | 1500 |
- +--------------+--------------------------------------+
- | description | None |
- +--------------+--------------------------------------+
-
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-port-list controller-0
-
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | uuid | name | type | pci address | device | processor | accelerated | device type |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | 7007dfb1-ea55-4355-9d27-3ed4c6696283 | eno1 | ethernet | 0000:02:00.0 | 0 | 0 | False | NetXtreme BCM5719 Gigabit Ethernet PCIe [1657] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | 51f62ecf-7897-43e3-beb8-46ae5550ef05 | eno2 | ethernet | 0000:02:00.1 | 0 | 0 | False | NetXtreme BCM5719 Gigabit Ethernet PCIe [1657] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | e987725e-ab45-4151-b53d-94ba21706eb4 | eno3 | ethernet | 0000:02:00.2 | 0 | 0 | False | NetXtreme BCM5719 Gigabit Ethernet PCIe [1657] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | f4a8115a-ca0b-4336-a634-2cad77c5a88c | eno4 | ethernet | 0000:02:00.3 | 0 | 0 | False | NetXtreme BCM5719 Gigabit Ethernet PCIe [1657] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | 88965882-c816-42e8-ba0e-d3ff6f9f553e | eno49 | ethernet | 0000:04:00.0 | 0 | 0 | False | OneConnect NIC (Skyhawk) [0720] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | 98e2cedc-9ef8-4ca0-b3e0-db3a2bd0273a | eno50 | ethernet | 0000:04:00.1 | 0 | 0 | False | OneConnect NIC (Skyhawk) [0720] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | e75d7aa6-7832-4ec4-9dd4-ea8300773fd8 | ens2f0 | ethernet | 0000:05:00.0 | 0 | 0 | True | 82599ES 10-Gigabit SFI/SFP+ Network Connection [10fb] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
- | 8ac4ffca-4a61-4b47-8e17-171f2e6cea66 | ens2f1 | ethernet | 0000:05:00.1 | 0 | 0 | True | 82599ES 10-Gigabit SFI/SFP+ Network Connection [10fb] |
- +--------------------------------------+--------+----------+--------------+--------+-----------+-------------+-------------------------------------------------------+
-
-
- [sysadmin@controller-0 ~(keystone_admin)]$ INTL_IF=ens2f0
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-if-modify -m 1500 -n sriov0 -c pci-sriov -N 6 --vf-driver=vfio $WORKER $INTL_IF
-
- +-----------------+--------------------------------------+
- | Property | Value |
- +-----------------+--------------------------------------+
- | ifname | sriov0 |
- +-----------------+--------------------------------------+
- | iftype | ethernet |
- +-----------------+--------------------------------------+
- | ports | [u'ens2f0'] |
- +-----------------+--------------------------------------+
- | imac | 00:1b:21:b3:46:2c |
- +-----------------+--------------------------------------+
- | imtu | 1500 |
- +-----------------+--------------------------------------+
- | ifclass | pci-sriov |
- +-----------------+--------------------------------------+
- | aemode | None |
- +-----------------+--------------------------------------+
- | schedpolicy | None |
- +-----------------+--------------------------------------+
- | txhashpolicy | None |
- +-----------------+--------------------------------------+
- | uuid | 9450b1ae-d1a1-4ecb-811a-fa3cb1cdf362 |
- +-----------------+--------------------------------------+
- | ihost_uuid | 08c23843-afa4-4b80-a285-be126365276e |
- +-----------------+--------------------------------------+
- | vlan_id | None |
- +-----------------+--------------------------------------+
- | uses | [] |
- +-----------------+--------------------------------------+
- | used_by | [] |
- +-----------------+--------------------------------------+
- | created_at | 2020-06-03T12:34:11.633254+00:00 |
- +-----------------+--------------------------------------+
- | updated_at | 2020-06-04T02:01:28.168127+00:00 |
- +-----------------+--------------------------------------+
- | sriov_numvfs | 6 |
- +-----------------+--------------------------------------+
- | sriov_vf_driver | vfio |
- +-----------------+--------------------------------------+
- | accelerated | [True] |
- +-----------------+--------------------------------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-assign ${WORKER} sriov0 ${PHYSNET0}
-
- +------------------+--------------------------------------+
- | Property | Value |
- +------------------+--------------------------------------+
- | hostname | controller-0 |
- +------------------+--------------------------------------+
- | uuid | 1d35219d-3258-42e7-8f0e-41d865710d58 |
- +------------------+--------------------------------------+
- | ifname | sriov0 |
- +------------------+--------------------------------------+
- | datanetwork_name | physnet0 |
- +------------------+--------------------------------------+
-
-
-
- [sysadmin@controller-0 ~(keystone_admin)]$ INTL_IF=ens2f1
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-if-modify -m 1500 -n sriov1 -c pci-sriov -N 6 --vf-driver=vfio $WORKER $INTL_IF
-
- +-----------------+--------------------------------------+
- | Property | Value |
- +-----------------+--------------------------------------+
- | ifname | sriov1 |
- +-----------------+--------------------------------------+
- | iftype | ethernet |
- +-----------------+--------------------------------------+
- | ports | [u'ens2f1'] |
- +-----------------+--------------------------------------+
- | imac | 00:1b:21:b3:46:2d |
- +-----------------+--------------------------------------+
- | imtu | 1500 |
- +-----------------+--------------------------------------+
- | ifclass | pci-sriov |
- +-----------------+--------------------------------------+
- | aemode | None |
- +-----------------+--------------------------------------+
- | schedpolicy | None |
- +-----------------+--------------------------------------+
- | txhashpolicy | None |
- +-----------------+--------------------------------------+
- | uuid | 13d5ee99-0399-4b6b-a359-0f96660afdc4 |
- | ihost_uuid | 08c23843-afa4-4b80-a285-be126365276e |
- | vlan_id | None |
- | uses | [] |
- | used_by | [] |
- | created_at | 2020-06-03T12:34:12.072624+00:00 |
- | updated_at | 2020-06-04T02:03:51.405322+00:00 |
- | sriov_numvfs | 6 |
- | sriov_vf_driver | vfio |
- | accelerated | [True] |
- +-----------------+--------------------------------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-assign ${WORKER} sriov1 ${PHYSNET1}
-
- +------------------+--------------------------------------+
- | Property | Value |
- +------------------+--------------------------------------+
- | hostname | controller-0 |
- +------------------+--------------------------------------+
- | uuid | a87c6a5f-0c53-4ebf-9a32-38366700426f |
- +------------------+--------------------------------------+
- | ifname | sriov1 |
- +------------------+--------------------------------------+
- | datanetwork_name | physnet1 |
- +------------------+--------------------------------------+
-
-2.10 Unlock the server
-``````````````````````