Re: [ovs-discuss] Cannot Install Open vSwitch with DKDP
One more question. I need to use metering feature of ovs. Do I need to add interfaces to VIFO for that? I am asking this because adding interfaces to VIFO gave errors. Best Regards, Ramzah Rehman On Fri, Nov 23, 2018 at 5:08 PM Ramzah Rehman wrote: > Thanks a lot. > > Best Regards, > Ramzah Rehman > > > On Fri, Nov 23, 2018 at 4:50 PM Timothy Redaelli > wrote: > >> On Fri, 23 Nov 2018 16:02:30 +0500 >> Ramzah Rehman wrote: >> >> > 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: >> > http://docs.openvswitch.org/en/latest/intro/install/dpdk/ >> > >> http://docs.openvswitch.org/en/latest/intro/install/general/#general-bootstrapping >> [...] >> > 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. >> >> Hi, >> this is a normal behavior on OVS 2.9.x since "dpdk_initialized" support >> was added in 2.10 (https://github.com/openvswitch/ovs/commit/3e52fa5). >> >> So you can update to OVS 2.10(.1) or you can look for dpdk entries on >> ovs-vswitchd.log >> > ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Cannot Install Open vSwitch with DKDP
Thanks a lot. Best Regards, Ramzah Rehman On Fri, Nov 23, 2018 at 4:50 PM Timothy Redaelli wrote: > On Fri, 23 Nov 2018 16:02:30 +0500 > Ramzah Rehman wrote: > > > 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: > > http://docs.openvswitch.org/en/latest/intro/install/dpdk/ > > > http://docs.openvswitch.org/en/latest/intro/install/general/#general-bootstrapping > [...] > > 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. > > Hi, > this is a normal behavior on OVS 2.9.x since "dpdk_initialized" support > was added in 2.10 (https://github.com/openvswitch/ovs/commit/3e52fa5). > > So you can update to OVS 2.10(.1) or you can look for dpdk entries on > ovs-vswitchd.log > ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Cannot Install Open vSwitch with DKDP
On Fri, 23 Nov 2018 16:02:30 +0500 Ramzah Rehman wrote: > 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: > http://docs.openvswitch.org/en/latest/intro/install/dpdk/ > http://docs.openvswitch.org/en/latest/intro/install/general/#general-bootstrapping [...] > 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. Hi, this is a normal behavior on OVS 2.9.x since "dpdk_initialized" support was added in 2.10 (https://github.com/openvswitch/ovs/commit/3e52fa5). So you can update to OVS 2.10(.1) or you can look for dpdk entries on ovs-vswitchd.log ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Cannot Install Open vSwitch with DKDP
On 11/23/18 12:02 PM, Ramzah Rehman wrote: [...] > #validating > > 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. I believe the docs are not up to date. I was struggling with this too so I would like to suggest you to: - turn the DEBUG on for dpdk related parts of OvS: ovs-appctl vlog/list <- to get the names of modules ovs-appctl vlog/set ...:dbg <- to set debug (e.g. dpdk:file:dbg and netdef_dpdk:file:dbg) I usually turn on file:dbg on all dpdk related modules (that you get from the list) and 'tail -f' ovs-vswitchd.log to see what is going on. You should see something like: 2018-11-23T11:18:02.186Z|00019|dpdk|INFO|DPDK Enabled - initialized when DPDK gets initialized (this is INFO level so you don't have to switch to debug - but I suggest it anyway when you are starting with DPDK). Regards Andrzej ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Cannot Install Open vSwitch with DKDP
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: http://docs.openvswitch.org/en/latest/intro/install/dpdk/ http://docs.openvswitch.org/en/latest/intro/install/general/#general-bootstrapping 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 cd $DPDK_DIR export DPDK_TARGET=x86_64-native-linuxapp-gcc export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET make install T=$DPDK_TARGET DESTDIR=install cd ~/ovs ./boot.sh ./configure --with-dpdk=$DPDK_BUILD make make install config_file="/etc/depmod.d/openvswitch.conf" 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" done 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 #verify 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 vswitchd/vswitch.ovsschema 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 --remote=db:Open_vSwitch,Open_vSwitch,manager_options --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach --log-file 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 #validating 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 ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss