Saya sedang mengerjakan projek riset yang membutuhkan Open vSwitch. Jadi saya install Open vSwitch v2.11.1 pada Ubuntu 18.04.

Installation

  • Update dan upgrade package Ubuntu.
    sudo apt update && sudo apt upgrade -y

  • Install minimal build requirement.
    sudo apt install build-essential libssl-dev clang automake autoconf libtool python-pyftpdlib python-six python-dev python-tftpy graphviz unbound

  • Download Open vSwitch 2.11.1.
    wget https://www.openvswitch.org/releases/openvswitch-2.11.1.tar.gz
    tar xzf openvswitch-2.11.1.tar.gz
    cd openvswitch-2.11.1

  • Configure Open vSwitch Package.
    ./configure

  • Build Open vSwitch.
    sudo make
    sudo make check
    sudo make install

  • Load Open vSwitch kernel.
    sudo modprobe openvswitch

  • Start Open vSwitch.
    export PATH=$PATH:/usr/local/share/openvswitch/scripts
    sudo ovs-ctl start

  • Configure database.
    mkdir -p /usr/local/etc/openvswitch
    sudo ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema

  • Configure ovsdb-server.
    mkdir -p /usr/local/var/run/openvswitch
    sudo 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

  • Initialize database.
    ovs-vsctl --no-wait init

  • Start Open vSwitch daemon.
    ovs-vswitchd --pidfile --detach --log-file

    Expected output:
    2019-10-01T10:54:12Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: connecting…
    2019-10-01T10:54:12Z|00005|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: connected

  • Check Open vSwitch version.
    ovs-vsctl --version

Last modified: October 2, 2019

Author

Comments

Write a Reply or Comment

Your email address will not be published.