[ovs-discuss] Cannot Install Open vSwitch with DKDP

Ramzah Rehman ramzahrehman at gmail.com
Fri Nov 23 11:02:30 UTC 2018

Hi. I Have installed Open vSwitch 2.9.4 with DPDK 17.11.4 on Ubuntu 14.04.5
LTD and kernel version 4.4.0-31-generic following these two links:

These are the steps I performed in detail:

sudo -i
apt-get install git
git clone https://github.com/openvswitch/ovs.git
cd ovs
git checkout remotes/origin/branch-2.9
apt install build-essential libssl1.0.0 libcap-ng-utils
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python2.7 libnuma-dev libtool autoconf automake wget
python-six libvirt-bin
#Edited the file /etc/default/grub and add intel_iommu=on to the existing
GRUB_CMDLINE_LINUX line. (enables VT_D in the BIOS)
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo reboot
#to check if IOMMU is enabled in BIOS
dmesg | grep -e DMAR -e IOMMU
#to check if IOMMU is enabled in kernel
cat /proc/cmdline | grep intel_iommu=on
sudo apt-get install mokutil
mokutil --sb-state # got not supported message
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9 gcc-multilib
cd /usr/src/
wget http://fast.dpdk.org/rel/dpdk-17.11.4.tar.xz
tar xf dpdk-17.11.4.tar.xz
export DPDK_DIR=/usr/src/dpdk-stable-17.11.4
export DPDK_TARGET=x86_64-native-linuxapp-gcc
make install T=$DPDK_TARGET DESTDIR=install
cd ~/ovs
./configure --with-dpdk=$DPDK_BUILD
make install
for module in datapath/linux/*.ko; do
  modname="$(basename ${module})"
  echo "override ${modname%.ko} * extra" >> "$config_file"
  echo "override ${modname%.ko} * weak-updates" >> "$config_file"
depmod -a
/sbin/modprobe openvswitch
/sbin/lsmod | grep openvswitch
#to make huge page persistent but didn't work
echo 'vm.nr_hugepages=2048' > /etc/sysctl.d/hugepages.conf
#Run-time allocation of huge pages
sysctl -w vm.nr_hugepages=2048
grep HugePages_ /proc/meminfo
mkdir /dev/hugepages
#mount huge pages
mount -t hugetlbfs none /dev/hugepages``

modprobe vfio-pci
chmod a+x /dev/vfio
chmod 0666 /dev/vfio/*
$DPDK_DIR/usertools/dpdk-devbind.py --bind=vfio-pci eth0 #did not work
$DPDK_DIR/usertools/dpdk-devbind.py --status

#Starting OVS vSwitch and dbserver

export PATH=$PATH:/usr/local/share/openvswitch/scripts
mkdir -p /usr/local/etc/openvswitch
ovsdb-tool create /usr/local/etc/openvswitch/conf.db

mkdir -p /usr/local/var/run/openvswitch

mkdir -p /usr/local/var/log/openvswitch

#created file /usr/local/var/log/openvswitch/ovsdb-server.log

ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach

ovs-vsctl --no-wait init
ovs-ctl --no-ovs-vswitchd start

export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
ovs-ctl --no-ovsdb-server --db-sock="$DB_SOCK" start

#both oovs-vswitchd and ovsdb-server started correctly


ovs-vsctl get Open_vSwitch . dpdk_initialized
# got message "ovs-vsctl: Open_vSwitch does not contain a column whose name
matches "dpdk_initialized""
ovs-vswitchd --version
# got message "ovs-vswitchd (Open vSwitch) 2.9.4 DPDK 17.11.4"
ovs-vsctl get Open_vSwitch . dpdk_version
# got message "ovs-vsctl: Open_vSwitch does not contain a column whose name
matches "dpdk_version""

Even though I followed all steps, ovs-vsctl get Open_vSwitch .
dpdk_initialized gives  ovs-vsctl: Open_vSwitch does not contain a column
whose name matches "dpdk_initialized"  error. Please help.

Best Regards,
Ramzah Rehman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20181123/fe2d09c2/attachment.html>

More information about the discuss mailing list