: Install QEMU, DPDK, and OVS on Ubuntu
Focus
Focus

Install QEMU, DPDK, and OVS on Ubuntu

Table of Contents

Install QEMU, DPDK, and OVS on Ubuntu

Before you can enable DPDK on OVS, you must install QEMU 2.5.0, DPDK 2.2.0, and OVS 2.5.1. Complete the following procedures to install the components.
  1. Log in to the KVM host CLI.
  2. Install QEMU 2.5.0 by executing the following commands:
    apt-get install build-essential gcc pkg-config glib-2.0 libglib2.0-dev libsdl1.2-dev
    libaio-dev libcap-dev libattr1-dev libpixman-1-dev
    apt-get build-dep qemu
    apt-get install qemu-kvm libvirt-bin
    wget http://wiki.qemu.org/download/qemu-2.5.0.tar.bz2
    tar xjvf qemu-2.5.0.tar.bz2
    cd qemu-2.5.0
    ./configure
    make
    make install
  3. Install dpdk-2.2.0.
    1. Execute the following commands:
      wget http://dpdk.org/browse/dpdk/snapshot/dpdk-2.2.0.tar.gz 
      tar xzvf dpdk-2.2.0.tar.gz 
      cd dpdk-2.2.0 
      vi config/common_linuxapp 
    2. Change CONFIG_RTE_APP_TEST=y to CONFIG_RTE_APP_TEST=n
    3. Change CONFIG_RTE_BUILD_COMBINE_LIBS=n to CONFIG_RTE_BUILD_COMBINE_LIBS=y
    4. Execute the following command:
      vi GNUmakefile
    5. Change ROOTDIRS-y := lib drivers app to ROOTDIRS-y := lib drivers
    6. Execute the following command:
      make install T=x86_64-native-linuxapp-gcc
  4. Install OVS 2.5.1 by executing the following commands:
    wget http://openvswitch.org/releases/openvswitch-2.5.1.tar.gz 
    tar xzvf openvswitch-2.5.1.tar.gz 
    cd openvswitch-2.5.1 
    ./configure –with-dpdk=”/root/dpdk-2.2.0/x86_64-native-linuxapp-gcc/” 
    make  
    make install