Skip to content

Switch to OVS with DPDK support if required on Debian#882

Open
dahoat-sprecher wants to merge 3 commits intoseapath:mainfrom
dahoat-sprecher:daho-optional-dpdk-debian13
Open

Switch to OVS with DPDK support if required on Debian#882
dahoat-sprecher wants to merge 3 commits intoseapath:mainfrom
dahoat-sprecher:daho-optional-dpdk-debian13

Conversation

@dahoat-sprecher
Copy link
Contributor

Hello to All,

As discussed in #872, this PR makes sure that:

  • The directory for the DPDK socket is present
  • Permissions for the directory are set correctly (Owner: Debian: libvirt-qemu, All others: qemu)
  • The OVS binary with DPDK support is used if a virtual switch using DPDK is present on the machine (only Debian)

Additionally:

  • The module vfio-pci is loaded on startup

Best regards,
Daniel

dahoat-sprecher and others added 3 commits March 2, 2026 14:18
On VM startup, the directory /var/run/openvswitch/vm-sockets is expected to exist. However, it is located on a temporary file system. Therefore, the seapath-config_ovs service unit is modified to create it before service startup.

Signed-off-by: Daniel Hofer <daniel.hofer@sprecher-automation.com>
Ansible detects the usage of DPDK in the Open vSwitch config per node
and switches between the ovs binary with or without DPDK support
accordings using the update-alternatives command. This is only done on
Debian.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Daniel Hofer <daniel.hofer@sprecher-automation.com>
The fix for the socket directoriy's permissions only works for Debian.
Therefore, the systemd unit file was converted into a template and the
target user defined using a variable.
Additionally, the module vfio-pci is loaded on startup.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Daniel Hofer <daniel.hofer@sprecher-automation.com>
@dahoat-sprecher dahoat-sprecher force-pushed the daho-optional-dpdk-debian13 branch from 80a78cb to 2494865 Compare March 2, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant