-
-
Save anuragkh/c356f0a053a367bd579064a1b1d18368 to your computer and use it in GitHub Desktop.
Install OVS from source (Ubuntu 14.04.3 Server) with DPDK support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/bin/bash | |
# Install openvswitch w/DPDK Ubuntu 14.04.3 | |
# Author: Oleg Slavkin ([email protected]) | |
echo "-------------------------------" | |
echo "Step 1. Install git package" | |
echo "-------------------------------" | |
sudo apt-get update | |
sudo apt-get -y install git | |
echo "Step 2. Clone Openvswitch git Repo" | |
sudo git clone https://github.com/openvswitch/ovs.git | |
echo "Step 3. Install tools" | |
sudo apt-get -y install autoconf libtool make | |
echo "Step 4. Build OvS" | |
cd ovs/ | |
sudo ./boot.sh | |
sudo ./configure --with-dpdk=${DPDK_BUILD} | |
sudo make LDFLAGS:=-lz | |
echo "Step 5. Install OpenVswitch" | |
sudo make install | |
sudo make modules_install | |
echo "Step 6. Create OvS Database" | |
sudo ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema | |
echo "Step 7. Run OvS..." | |
export DB_SOCK=/usr/local/var/run/openvswitch/db.sock | |
sudo ovsdb-server --remote=punix:$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 | |
sudo ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true | |
sudo ovs-vswitchd unix:$DB_SOCK --pidfile --detach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment