Cloud/Openstack_K8s_Docker
OVS(Open Virtual Switch) installation on Ubuntu 16.04.7LTS
양된백성
2021. 2. 24. 15:42
<Purpose>
To connect Docker containers by OvS
<How>
- installation : $ sudo apt install -y openvswitch-switch
- verification : $ sudo ovs-vsctl show
terry@ubuntu:~$ sudo apt install -y openvswitch-switch [sudo] password for terry: Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libpython-stdlib libpython2.7-minimal libpython2.7-stdlib openvswitch-common python python-minimal python-six python2.7 python2.7-minimal Suggested packages: python-doc python-tk python2.7-doc binutils binfmt-support The following NEW packages will be installed: libpython-stdlib libpython2.7-minimal libpython2.7-stdlib openvswitch-common openvswitch-switch python python-minimal python-six python2.7 python2.7-minimal 0 upgraded, 10 newly installed, 0 to remove and 85 not upgraded. Need to get 5,705 kB of archives. After this operation, 24.7 MB of additional disk space will be used. ..... ... .. . Setting up python-six (1.10.0-3) ... Setting up openvswitch-common (2.5.9-0ubuntu0.16.04.3) ... Setting up openvswitch-switch (2.5.9-0ubuntu0.16.04.3) ... update-alternatives: using /usr/lib/openvswitch-switch/ovs-vswitchd to provide /usr/sbin/ovs-vswitchd (ovs-vswitchd) openvswitch-nonetwork.service is a disabled or a static unit, not starting it. Processing triggers for ureadahead (0.100.0-19.1) ... Processing triggers for systemd (229-4ubuntu21.28) ... terry@ubuntu:~$ terry@ubuntu:~$ sudo ovs-vsctl show d6db2e9b-397a-40f3-b842-bb66874d6f7e ovs_version: "2.5.9" terry@ubuntu:~$ |
<Installing ovs-docker command utility>
it is good tool to command ovs and docker.
terry@ubuntu:/usr/bin$ cd /usr/bin terry@ubuntu:/usr/bin$ sudo wget https://github.com/openvswitch/ovs/raw/master/utilities/ovs-docker --2021-02-24 15:44:35-- https://github.com/openvswitch/ovs/raw/master/utilities/ovs-docker .... ... .. . Saving to: ‘ovs-docker.1’ ovs-docker.1 100%[==============================================>] 7.88K --.-KB/s in 0s 2021-02-24 15:44:36 (90.2 MB/s) - ‘ovs-docker.1’ saved [8064/8064] terry@ubuntu:/usr/bin$ |