Hi Sheroo, On Wed, Jun 1, 2016 at 10:47 AM, Sheroo Pratap < sheroopratapresea...@gmail.com> wrote:
> Hi All, > > I am trying to start OVS with DPDK but it is failing with below error. > > root@osboxes:/home/osboxes/ovs# ovs-vswitchd unix:$DB_SOCK --pidfile > --detach > 2016-06-01T08:25:32Z|00001|ovs_numa|INFO|Discovered 1 CPU cores on NUMA > node 0 > 2016-06-01T08:25:32Z|00002|ovs_numa|INFO|Discovered 1 NUMA nodes and 1 CPU > cores > > 2016-06-01T08:25:32Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connecting... > > 2016-06-01T08:25:32Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connected > *2016-06-01T08:25:32Z|00005|dpdk|ERR|DPDK not supported in this copy of > Open vSwitch.* > root@osboxes:/home/osboxes/ovs# > > Below is the steps is have followed so far. > > 1) My OVS version is master ovs i.e. 2.5.90, ubuntu 15.10 and kernel > version is 4.6 > 2) DPDK version is 16.04 (as recommended in INSTALL.DPDK.md of master > ovs) > 3) Following are the steps as have executed as mentioned in > INSTALL.DPDK.md > 1) export DPDK_DIR=/usr/src/dpdk-16.04 > 2) cd $DPDK_DIR > 3) make install T=x86_64-native-linuxapp-gcc DESTDIR=install > 4) export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc/ > 5) cd $(OVS_DIR)/ > 6) ./boot.sh > The problem you have is that OvS is not been built with DPDK support, I suggest you to verify that DPDK_BUILD is set to the correct location before invoking this command, when you execute the command you should see something like: checking whether dpdk datapath is enabled... yes checking for [...]/x86_64-ivshmem-linuxapp-gcc/include/rte_config.h... yes Also pay attention to the file permissions, maybe the configure script is not able to access to the DPDK location. 7) ./configure --with-dpdk=$DPDK_BUILD CFLAGS="-g -O2 -Wno-cast-align" > 8) make CFLAGS='-O3 -march=native > 9) added below line in /etc/default/grub > default_hugepagesz=1GB hugepagesz=1G hugepages=1 > Snapshot of grub > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo > Debian` > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash > default_hugepagesz=1GB hugepagesz=1G hugepages=1" > GRUB_CMDLINE_LINUX="" > 10) modprobe uio > 11) insmod $DPDK_BUILD/kmod/igb_uio.ko > 12) $DPDK_DIR/tools/dpdk_nic_bind.py --bind=igb_uio eth0 > 13) mount -t hugetlbfs -o pagesize=2MB none /dev/hugepages > 14) mkdir -p /usr/local/etc/openvswitch > 15) mkdir -p /usr/local/var/run/openvswitch > 16) rm /usr/local/etc/openvswitch/conf.db > 17) ovsdb-tool create /usr/local/etc/openvswitch/conf.db \ > /usr/local/share/openvswitch/vswitch.ovsschema > > 18) removed SSL certificates while configuraing ovsdb : > ovsdb-server > --remote=punix:/usr/local/var/run/openvswitch/db.sock > --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach > 19) ovs-vsctl --no-wait init > 20) export DB_SOCK=/usr/local/var/run/openvswitch/db.sock > 21) ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true > > > > > > > > * 22) faling here : ovs-vswitchd unix:$DB_SOCK --pidfile > --detach root@osboxes:/home/osboxes/ovs# ovs-vswitchd > unix:$DB_SOCK --pidfile --detach > 2016-06-01T08:25:32Z|00001|ovs_numa|INFO|Discovered 1 CPU cores on NUMA > node 0 2016-06-01T08:25:32Z|00002|ovs_numa|INFO|Discovered 1 > NUMA nodes and 1 CPU cores > > 2016-06-01T08:25:32Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connecting... > > 2016-06-01T08:25:32Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connected 2016-06-01T08:25:32Z|00005|dpdk|ERR|DPDK not supported > in this copy of Open vSwitch.* > > Please anyone can help, after executing step 22 getting error "DPDK not > supported in this copy of Open vSwitch" > > Thanks and Regards > S Pratap > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev > Mauricio V, _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev