diff options
author | aaron conole <aconole@redhat.com> | 2017-08-04 13:00:57 -0400 |
---|---|---|
committer | Russell Bryant <russell@ovn.org> | 2017-08-08 13:41:01 -0400 |
commit | e3e738a3d0580a9a7178adfc9300a193b8df4ae5 (patch) | |
tree | a8494627ce91aa18129321ee15e2db73c3743185 /Documentation | |
parent | 491a9d3b6b2298f741d01d4398f80f388f1588a7 (diff) | |
download | openvswitch-e3e738a3d0580a9a7178adfc9300a193b8df4ae5.tar.gz |
redhat: allow dpdk to also run as non-root user
After this commit, users may start a dpdk-enabled ovs setup as a
non-root user. This is accomplished by exporting the $HOME directory,
which dpdk uses to fill in it's semi-persistent RTE configuration.
This change may be a bit controversial since it modifies /dev/hugepages
as part of starting the ovs-vswitchd to set a hugetlbfs group
ownership. This is used to enable writing to /dev/hugepages so that the
dpdk_init will successfully complete. There is an alternate way of
accomplishing this - namely to initialize DPDK before dropping
privileges. However, this would mean that if DPDK ever grows an uninit
/ reinit function, non-root ovs likely could never use it.
This does not change OvS+DPDK's SELinux requirements. It still must be
disabled.
Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/intro/install/dpdk.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/intro/install/dpdk.rst b/Documentation/intro/install/dpdk.rst index 842cf1a33..26fe0fe7c 100644 --- a/Documentation/intro/install/dpdk.rst +++ b/Documentation/intro/install/dpdk.rst @@ -138,6 +138,13 @@ has to be configured with DPDK support (``--with-dpdk``). Additional information can be found in :doc:`general`. +.. note:: + If you are running using the Fedora or Red Hat package, the Open vSwitch + daemon will run as a non-root user. This implies that you must have a + working IOMMU. Visit the `RHEL README`__ for additional information. + +__ https://github.com/openvswitch/ovs/blob/master/rhel/README.RHEL.rst + Setup ----- |