SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
LXC Linux Containers over Open vSwitch
Gilbert Standen, Orabuntu-LXC Project, Principal Solution Architect
November 16-17, 2017 | San Jose, CA
Acknowledgements
l OVS
l Ben Pfaff
l LXC
l Stéphane Graber
l Christian Brauner
l SCST
l Vladislav Bolkhovitin
l Bart Vanassche
l AV SERVICES
l Timothy Arthur
l Ethan Hill
Presenter Information
l Gilbert Standen
l Presenter at AUSOUG, RMOUG, NYOUG, OOW many years
l Author of nandydandyoracle blog
l Creator of Orabuntu-LXC github project
l 20+ years hands-on build lead a number of major Oracle projects including:
l Largest EPA superfund project in US history Oracle industrial-controls system
l T-bill day trading and FX currency trading backend systems delivery
l Massachusetts Health Insurance Exchange 4-node RAC (M-HIX)
l Major projects for Pharmaceutical and Financial industry
What is Orabuntu-LXC ?
l Purpose-built to run Oracle Enterprise software on any linux at physical speed
l Deploys Oracle Linux 5, 6 and 7 LXC containers on OpenvSwitch
l Built on a high-performance stack (LXC on OpenvSwitch), NO hypervisor
l Builds and installs OpenvSwitch RPMs on Oracle Linux/RedHat Linux
l Builds and installs LXC RPMs on Oracle Linux/RedHat Linux
l Deploys containerized DNS/DHCP and optional Linux SAN
l Can be used to build flexible OpenvSwitch development environment
l Supports Oracle Linux, Ubuntu Linux, CentOS Linux, RedHat Linux
l Provides standard VLAN tagging with OpenvSwitch
l Installs with a single command from a simple configuration file in minutes
l Used to install 6-node Oracle RAC on Ubuntu kernel using LXC containers
l World-leader in running Oracle Enterprise products directly on Ubuntu kernels
l The scst-files.tar #1 for building SCST DKMS-deb pkgs Ubuntu & Debian
Using Orabuntu-LXC to Install OpenvSwitch (OVS)
l Orabuntu-LXC builds Open vSwitch RPM’s and installs any OVS version
l This is available for RedHat-family linuxes. Oracle Linux is the dev platform
l You configure that in anylinux-services.sh as shown below (ovs 2.5.3 shown)
LXC 2.1.0+ Adds Explicit OpenvSwitch Support
l LXC versions prior to 2.1.0+ also supported OpenvSwitch but indirectly.
LXC 2.1.0+ Adds Explicit OpenvSwitch Support
l You can do one-off config edits per container or reconfigure lxc
l Set USE_LXC_BRIDGE="false" in file: /etc/default/lxc-net
l Change lxc.net.0.link in the /etc/lxc/default.conf file as shown below.
ubuntu@athens:~$ cat /etc/lxc/default.conf
lxc.net.0.type = veth
lxc.net.0.link = ovsbr1 ←
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
ubuntu@athens:~$
LXC 2.1.0+ Can Still Use lxc.network.script.up
But it’s been renamed to:
lxc.net.0.script.up
lxc.net.0.script.down
LXC 2.1.0+ Adds Explicit OpenvSwitch Support
l Using lxc.net.0.link together with lxc.net.0.script.up is optional
l You can still specify the OVS switch name in lxc.net.0.script.up
l Connecting multiple OVS switches is done as shown below.
# OpenvSwitch Networking
lxc.net.0.script.up = /etc/network/if-up.d/openvswitch/olive-pub-ifup-sw1
lxc.net.0.script.down = /etc/network/if-down.d/openvswitch/olive-pub-ifdown-sw1
lxc.net.0.veth.pair = olivew
lxc.net.1.script.up = /etc/network/if-up.d/openvswitch/olive-pub-ifup-sx1
lxc.net.1.script.down = /etc/network/if-down.d/openvswitch/olive-pub-ifdown-sx1
lxc.net.1.veth.pair = olivex
OpenvSwitch as a systemd service on Linux
[Unit]
Description=sw1 Service
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
User=root
RemainAfterExit=yes
ExecStart=/etc/network/openvswitch/crt_ovs_sw1.sh
ExecStop=/usr/bin/ovs-vsctl del-br sw1
[Install]
WantedBy=multi-user.target
Ubuntu 16.04+
Oracle Linux 7.x+
LXC Containers are
Also setup as systemd
services
Orabuntu-LXC Open vSwitch sw1: The "Brain"
Bridge "sw1"
Port "ora73c10"
tag: 10
Interface "ora73c10"
Port olivew
tag: 10
Interface olivew
Port "sw1"
Interface "sw1"
type: internal
Port "ora73c11"
tag: 10
Interface "ora73c11"
Detects Internet
Connected Interface
Detects IP Address
Checks if
NetworkManager
Installed
Checks if
Systemd-Resolved
Installed
Detects Linux Flavor Detects Wired or
Wireless
Edits
Ifcfg-$ESSID ifcfg-
$EXTIF
Sets iptables rules for
sw1 internet
access
Builds GRE tunnels
Sets routes
Sets MTU
Cleans up iptables
Orabuntu-LXC 4.0: Containerized DNS/DHCP
DNS/DHCP SW1
LXC
Containers
WAN via
iptables
VLAN tags
By standardizing
DNS/DHCP by
containerization for all
deployments of Open
vSwitch we have better
control of the
deployment and also
only need to point
customer environment to
the containerized
DNS/DHCP
OpenvSwitch Containerized DNS/DHCP
NetworkManager
systemd-resolved
dnsmasq
NetworkManager on desktops
Add "dns=dnsmasq" in NetworkManager.conf
Systemd-resolved on server editions.
Add "DNS=<ip of DNS container on sw1>
in /etc/systemd/resolved.conf
dnsmasq used by LXC
lxcbr0 default bridge.
Open vSwitch sw1 detects and
helps with DNS setup
OpenvSwitch DNS DHCP Implementations
l NetworkManager
root@athens:# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
OpenvSwitch DNS DHCP Implementations
l NetworkManager
l The “server” parameter is well-suited to container networks over
OVS
l Used with the dns=dnsmasq add-on to NetworkManager
root@athens:/etc/network/openvswitch# cat /etc/NetworkManager/dnsmasq.d/local
server=/urdomain1.com/10.207.39.2
server=/39.207.10.in-addr.arpa/10.207.39.2
server=/urdomain2.com/10.207.29.2
server=/29.207.10.in-addr.arpa/10.207.29.2
server=/gns1.urdomain1.com/10.207.39.3
A good way to handle large numbers of container networks over OvS.
OpenvSwitch DNS DHCP Implementations
l NetworkManager
l The “server” parameter is well-suited to container networks over
OVS
l Used with the dns=dnsmasq add-on to NetworkManager
l Explicit support of OpenvSwitch is in but not yet out in linux distros
Highlights of latest NetworkManager 1.10 include OpenvSwitch support
OpenvSwitch DNS DHCP Implementations
l Systemd-Resolved
l Gaining widespread deployment, reception by community is
mixed
l For containers over OVS it’s actually well-suited.
[Resolve]
DNS=10.207.39.2 10.207.29.2
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=no
#Cache=yes
#DNSStubListener=udp
root@athens:/etc/network/openvswitch#
OpenvSwitch GRE endpoints VM-DHCP setups
l Problem with VM snapshots they sometimes have DHCP “IP drift”
l When using GRE tunnels to connect containers on OVS
networks
l If endpoints drift they must be reset somehow
l When snapshots are restored IP addresses sometimes drift after
awhile, breaking GRE endpoint. What is needed is some kind of
daemon (?) or dynamic rebuild of the GRE port, but the problem
is how to reset on the good end from the broken end.
OvS: Sending all switch traffic over 1 GRE tunnel
Bridge "sw1" 10.207.39.4
Port "s1"
tag: 11
Interface "s1"
type: patch
options: {peer="a1"}
Bridge "sx1" 10.207.29.4
Port "a1"
tag: 11
Interface "a1"
type: patch
options: {peer="s1"}
Bridge "sw1" 10.207.39.1
Port "s1"
tag: 11
Interface "s1"
type: patch
options: {peer="a1"}
Bridge "sx1" 10.207.29.1
Port "a1"
tag: 11
Interface "a1"
type: patch
options: {peer="s1"}
GRE
Patch ports with
VLANs are used
References and Contact Information
l References, Contact Info, etc.
l https://github.com/gstanden/orabuntu-lxc
l https://sites.google.com/site/nandydandyoracle
l http://www.consultingcommandos.us
l gilbert@orabuntu-lxc.com
l youtube videos (search “orabuntu-lxc” at youtube)
l PLEASE “WATCH” THE
l ORABUNTU-LXC PROJECT AT GITHUB !
l Twitter: #LXC4Oracle
.

Weitere Àhnliche Inhalte

Was ist angesagt?

LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OpenvSwitch
 
Open vSwitch Implementation Options
Open vSwitch Implementation Options Open vSwitch Implementation Options
Open vSwitch Implementation Options Netronome
 
LF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress SchedulingLF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress SchedulingLF_OpenvSwitch
 
Open vSwitch Offload: Conntrack and the Upstream Kernel
Open vSwitch Offload: Conntrack and the Upstream KernelOpen vSwitch Offload: Conntrack and the Upstream Kernel
Open vSwitch Offload: Conntrack and the Upstream KernelNetronome
 
Understanding Open vSwitch
Understanding Open vSwitch Understanding Open vSwitch
Understanding Open vSwitch YongKi Kim
 
TC Flower Offload
TC Flower OffloadTC Flower Offload
TC Flower OffloadNetronome
 
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)Thomas Graf
 
DPDK Support for New HW Offloads
DPDK Support for New HW OffloadsDPDK Support for New HW Offloads
DPDK Support for New HW OffloadsNetronome
 
2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful Services2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful ServicesThomas Graf
 
Sdnds tw-meetup-2
Sdnds tw-meetup-2Sdnds tw-meetup-2
Sdnds tw-meetup-2Fei Ji Siao
 
Open vSwitch - Stateful Connection Tracking & Stateful NAT
Open vSwitch - Stateful Connection Tracking & Stateful NATOpen vSwitch - Stateful Connection Tracking & Stateful NAT
Open vSwitch - Stateful Connection Tracking & Stateful NATThomas Graf
 
Open vSwitch Introduction
Open vSwitch IntroductionOpen vSwitch Introduction
Open vSwitch IntroductionHungWei Chiu
 
Anatomy of neutron from the eagle eyes of troubelshoorters
Anatomy of neutron from the eagle eyes of troubelshoortersAnatomy of neutron from the eagle eyes of troubelshoorters
Anatomy of neutron from the eagle eyes of troubelshoortersSadique Puthen
 
OVN - Basics and deep dive
OVN - Basics and deep diveOVN - Basics and deep dive
OVN - Basics and deep diveTrinath Somanchi
 
Open VSwitch .. Use it for your day to day needs
Open VSwitch .. Use it for your day to day needsOpen VSwitch .. Use it for your day to day needs
Open VSwitch .. Use it for your day to day needsrranjithrajaram
 
OpenvSwitch Deep Dive
OpenvSwitch Deep DiveOpenvSwitch Deep Dive
OpenvSwitch Deep Diverajdeep
 
Accelerating Neutron with Intel DPDK
Accelerating Neutron with Intel DPDKAccelerating Neutron with Intel DPDK
Accelerating Neutron with Intel DPDKAlexander Shalimov
 
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.LF_OpenvSwitch
 
Open stack networking vlan, gre
Open stack networking   vlan, greOpen stack networking   vlan, gre
Open stack networking vlan, greSim Janghoon
 

Was ist angesagt? (20)

LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
 
Open vSwitch Implementation Options
Open vSwitch Implementation Options Open vSwitch Implementation Options
Open vSwitch Implementation Options
 
LF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress SchedulingLF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress Scheduling
 
Open vSwitch Offload: Conntrack and the Upstream Kernel
Open vSwitch Offload: Conntrack and the Upstream KernelOpen vSwitch Offload: Conntrack and the Upstream Kernel
Open vSwitch Offload: Conntrack and the Upstream Kernel
 
Understanding Open vSwitch
Understanding Open vSwitch Understanding Open vSwitch
Understanding Open vSwitch
 
TC Flower Offload
TC Flower OffloadTC Flower Offload
TC Flower Offload
 
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
 
DPDK Support for New HW Offloads
DPDK Support for New HW OffloadsDPDK Support for New HW Offloads
DPDK Support for New HW Offloads
 
2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful Services2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful Services
 
Sdnds tw-meetup-2
Sdnds tw-meetup-2Sdnds tw-meetup-2
Sdnds tw-meetup-2
 
Open vSwitch - Stateful Connection Tracking & Stateful NAT
Open vSwitch - Stateful Connection Tracking & Stateful NATOpen vSwitch - Stateful Connection Tracking & Stateful NAT
Open vSwitch - Stateful Connection Tracking & Stateful NAT
 
Open vSwitch Introduction
Open vSwitch IntroductionOpen vSwitch Introduction
Open vSwitch Introduction
 
Anatomy of neutron from the eagle eyes of troubelshoorters
Anatomy of neutron from the eagle eyes of troubelshoortersAnatomy of neutron from the eagle eyes of troubelshoorters
Anatomy of neutron from the eagle eyes of troubelshoorters
 
OVN - Basics and deep dive
OVN - Basics and deep diveOVN - Basics and deep dive
OVN - Basics and deep dive
 
Open VSwitch .. Use it for your day to day needs
Open VSwitch .. Use it for your day to day needsOpen VSwitch .. Use it for your day to day needs
Open VSwitch .. Use it for your day to day needs
 
QUIC
QUICQUIC
QUIC
 
OpenvSwitch Deep Dive
OpenvSwitch Deep DiveOpenvSwitch Deep Dive
OpenvSwitch Deep Dive
 
Accelerating Neutron with Intel DPDK
Accelerating Neutron with Intel DPDKAccelerating Neutron with Intel DPDK
Accelerating Neutron with Intel DPDK
 
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
 
Open stack networking vlan, gre
Open stack networking   vlan, greOpen stack networking   vlan, gre
Open stack networking vlan, gre
 

Andere mochten auch

LF_OVS_17_OVN and Kelda
LF_OVS_17_OVN and KeldaLF_OVS_17_OVN and Kelda
LF_OVS_17_OVN and KeldaLF_OpenvSwitch
 
LF_OVS_17_Red Hat's perspective on OVS HW Offload Status
LF_OVS_17_Red Hat's perspective on OVS HW Offload StatusLF_OVS_17_Red Hat's perspective on OVS HW Offload Status
LF_OVS_17_Red Hat's perspective on OVS HW Offload StatusLF_OpenvSwitch
 
LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.
LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.
LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.LF_OpenvSwitch
 
LF_OVS_17_OvS Hardware Offload with TC Flower
LF_OVS_17_OvS Hardware Offload with TC FlowerLF_OVS_17_OvS Hardware Offload with TC Flower
LF_OVS_17_OvS Hardware Offload with TC FlowerLF_OpenvSwitch
 
LF_OVS_17_Day 2 Closing Remarks
LF_OVS_17_Day 2 Closing RemarksLF_OVS_17_Day 2 Closing Remarks
LF_OVS_17_Day 2 Closing RemarksLF_OpenvSwitch
 
LF_OVS_17_OVS-DPDK for NFV: go live feedback!
LF_OVS_17_OVS-DPDK for NFV: go live feedback!LF_OVS_17_OVS-DPDK for NFV: go live feedback!
LF_OVS_17_OVS-DPDK for NFV: go live feedback!LF_OpenvSwitch
 
LF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...software
LF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...softwareLF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...software
LF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...softwareLF_OpenvSwitch
 
LF_OVS_17_CORD: An open source platform to reinvent the network edge
LF_OVS_17_CORD: An open source platform to reinvent the network edgeLF_OVS_17_CORD: An open source platform to reinvent the network edge
LF_OVS_17_CORD: An open source platform to reinvent the network edgeLF_OpenvSwitch
 
LF_OVS_17_OVN at Nutanix
LF_OVS_17_OVN at NutanixLF_OVS_17_OVN at Nutanix
LF_OVS_17_OVN at NutanixLF_OpenvSwitch
 
LF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OpenvSwitch
 
LF_OVS_17_Day 2 Opening Remarks
LF_OVS_17_Day 2 Opening RemarksLF_OVS_17_Day 2 Opening Remarks
LF_OVS_17_Day 2 Opening RemarksLF_OpenvSwitch
 
LF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrack
LF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrackLF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrack
LF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrackLF_OpenvSwitch
 

Andere mochten auch (12)

LF_OVS_17_OVN and Kelda
LF_OVS_17_OVN and KeldaLF_OVS_17_OVN and Kelda
LF_OVS_17_OVN and Kelda
 
LF_OVS_17_Red Hat's perspective on OVS HW Offload Status
LF_OVS_17_Red Hat's perspective on OVS HW Offload StatusLF_OVS_17_Red Hat's perspective on OVS HW Offload Status
LF_OVS_17_Red Hat's perspective on OVS HW Offload Status
 
LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.
LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.
LF_OVS_17_Enabling hardware acceleration in OVS-DPDK using DPDK Framework.
 
LF_OVS_17_OvS Hardware Offload with TC Flower
LF_OVS_17_OvS Hardware Offload with TC FlowerLF_OVS_17_OvS Hardware Offload with TC Flower
LF_OVS_17_OvS Hardware Offload with TC Flower
 
LF_OVS_17_Day 2 Closing Remarks
LF_OVS_17_Day 2 Closing RemarksLF_OVS_17_Day 2 Closing Remarks
LF_OVS_17_Day 2 Closing Remarks
 
LF_OVS_17_OVS-DPDK for NFV: go live feedback!
LF_OVS_17_OVS-DPDK for NFV: go live feedback!LF_OVS_17_OVS-DPDK for NFV: go live feedback!
LF_OVS_17_OVS-DPDK for NFV: go live feedback!
 
LF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...software
LF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...softwareLF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...software
LF_OVS_17_The birth of SmartNICs -- offloading dataplane traffic to...software
 
LF_OVS_17_CORD: An open source platform to reinvent the network edge
LF_OVS_17_CORD: An open source platform to reinvent the network edgeLF_OVS_17_CORD: An open source platform to reinvent the network edge
LF_OVS_17_CORD: An open source platform to reinvent the network edge
 
LF_OVS_17_OVN at Nutanix
LF_OVS_17_OVN at NutanixLF_OVS_17_OVN at Nutanix
LF_OVS_17_OVN at Nutanix
 
LF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDK
 
LF_OVS_17_Day 2 Opening Remarks
LF_OVS_17_Day 2 Opening RemarksLF_OVS_17_Day 2 Opening Remarks
LF_OVS_17_Day 2 Opening Remarks
 
LF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrack
LF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrackLF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrack
LF_OVS_17_DigitalOcean Cloud Firewalls: powered by OvS and conntrack
 

Ähnlich wie LF_OVS_17_LXC Linux Containers over Open vSwitch

Ovn vancouver
Ovn vancouverOvn vancouver
Ovn vancouverMason Mei
 
Demystifying openvswitch
Demystifying openvswitchDemystifying openvswitch
Demystifying openvswitchPrasad Mukhedkar
 
The Glue is the Hard Part: Making a Production-Ready PaaS
The Glue is the Hard Part: Making a Production-Ready PaaSThe Glue is the Hard Part: Making a Production-Ready PaaS
The Glue is the Hard Part: Making a Production-Ready PaaSEvanKrall
 
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaS
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaSDockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaS
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaSDocker, Inc.
 
Beyond static configuration
Beyond static configurationBeyond static configuration
Beyond static configurationStefan Schimanski
 
OpenShift Anywhere given at Infrastructure.Next Talk at #Scale12X
OpenShift Anywhere given at Infrastructure.Next Talk at #Scale12XOpenShift Anywhere given at Infrastructure.Next Talk at #Scale12X
OpenShift Anywhere given at Infrastructure.Next Talk at #Scale12XOpenShift Origin
 
Docker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBMDocker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBMNeependra Khare
 
Openvpn
OpenvpnOpenvpn
Openvpnmato2012
 
Docker at Flux7
Docker at Flux7Docker at Flux7
Docker at Flux7Aater Suleman
 
Develop with linux containers and docker
Develop with linux containers and dockerDevelop with linux containers and docker
Develop with linux containers and dockerFabio Fumarola
 
Isolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersIsolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersVenkat Raman
 
BKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP Integration
BKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP IntegrationBKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP Integration
BKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP IntegrationLinaro
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Arun prasath
 
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker ContainersDocker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker ContainersHugo Henley
 
OpenStack and Windows - What's new in Ocata
OpenStack and Windows - What's new in OcataOpenStack and Windows - What's new in Ocata
OpenStack and Windows - What's new in OcataAlessandro Pilotti
 
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: IntroductionAgile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: IntroductionAgile Partner S.A.
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and DockerFabio Fumarola
 
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller OpenShift Origin
 
Building Your Docker Tech Stack
Building Your Docker Tech StackBuilding Your Docker Tech Stack
Building Your Docker Tech StackBret Fisher
 
Building your production tech stack for docker container platform
Building your production tech stack for docker container platformBuilding your production tech stack for docker container platform
Building your production tech stack for docker container platformDocker, Inc.
 

Ähnlich wie LF_OVS_17_LXC Linux Containers over Open vSwitch (20)

Ovn vancouver
Ovn vancouverOvn vancouver
Ovn vancouver
 
Demystifying openvswitch
Demystifying openvswitchDemystifying openvswitch
Demystifying openvswitch
 
The Glue is the Hard Part: Making a Production-Ready PaaS
The Glue is the Hard Part: Making a Production-Ready PaaSThe Glue is the Hard Part: Making a Production-Ready PaaS
The Glue is the Hard Part: Making a Production-Ready PaaS
 
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaS
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaSDockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaS
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaS
 
Beyond static configuration
Beyond static configurationBeyond static configuration
Beyond static configuration
 
OpenShift Anywhere given at Infrastructure.Next Talk at #Scale12X
OpenShift Anywhere given at Infrastructure.Next Talk at #Scale12XOpenShift Anywhere given at Infrastructure.Next Talk at #Scale12X
OpenShift Anywhere given at Infrastructure.Next Talk at #Scale12X
 
Docker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBMDocker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBM
 
Openvpn
OpenvpnOpenvpn
Openvpn
 
Docker at Flux7
Docker at Flux7Docker at Flux7
Docker at Flux7
 
Develop with linux containers and docker
Develop with linux containers and dockerDevelop with linux containers and docker
Develop with linux containers and docker
 
Isolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersIsolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux Containers
 
BKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP Integration
BKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP IntegrationBKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP Integration
BKK16-409 VOSY Switch Port to ARMv8 Platforms and ODP Integration
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
 
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker ContainersDocker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
 
OpenStack and Windows - What's new in Ocata
OpenStack and Windows - What's new in OcataOpenStack and Windows - What's new in Ocata
OpenStack and Windows - What's new in Ocata
 
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: IntroductionAgile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: Introduction
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and Docker
 
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller
 
Building Your Docker Tech Stack
Building Your Docker Tech StackBuilding Your Docker Tech Stack
Building Your Docker Tech Stack
 
Building your production tech stack for docker container platform
Building your production tech stack for docker container platformBuilding your production tech stack for docker container platform
Building your production tech stack for docker container platform
 

KĂŒrzlich hochgeladen

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

KĂŒrzlich hochgeladen (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

LF_OVS_17_LXC Linux Containers over Open vSwitch

  • 1. LXC Linux Containers over Open vSwitch Gilbert Standen, Orabuntu-LXC Project, Principal Solution Architect November 16-17, 2017 | San Jose, CA
  • 2. Acknowledgements l OVS l Ben Pfaff l LXC l StĂ©phane Graber l Christian Brauner l SCST l Vladislav Bolkhovitin l Bart Vanassche l AV SERVICES l Timothy Arthur l Ethan Hill
  • 3. Presenter Information l Gilbert Standen l Presenter at AUSOUG, RMOUG, NYOUG, OOW many years l Author of nandydandyoracle blog l Creator of Orabuntu-LXC github project l 20+ years hands-on build lead a number of major Oracle projects including: l Largest EPA superfund project in US history Oracle industrial-controls system l T-bill day trading and FX currency trading backend systems delivery l Massachusetts Health Insurance Exchange 4-node RAC (M-HIX) l Major projects for Pharmaceutical and Financial industry
  • 4. What is Orabuntu-LXC ? l Purpose-built to run Oracle Enterprise software on any linux at physical speed l Deploys Oracle Linux 5, 6 and 7 LXC containers on OpenvSwitch l Built on a high-performance stack (LXC on OpenvSwitch), NO hypervisor l Builds and installs OpenvSwitch RPMs on Oracle Linux/RedHat Linux l Builds and installs LXC RPMs on Oracle Linux/RedHat Linux l Deploys containerized DNS/DHCP and optional Linux SAN l Can be used to build flexible OpenvSwitch development environment l Supports Oracle Linux, Ubuntu Linux, CentOS Linux, RedHat Linux l Provides standard VLAN tagging with OpenvSwitch l Installs with a single command from a simple configuration file in minutes l Used to install 6-node Oracle RAC on Ubuntu kernel using LXC containers l World-leader in running Oracle Enterprise products directly on Ubuntu kernels l The scst-files.tar #1 for building SCST DKMS-deb pkgs Ubuntu & Debian
  • 5. Using Orabuntu-LXC to Install OpenvSwitch (OVS) l Orabuntu-LXC builds Open vSwitch RPM’s and installs any OVS version l This is available for RedHat-family linuxes. Oracle Linux is the dev platform l You configure that in anylinux-services.sh as shown below (ovs 2.5.3 shown)
  • 6. LXC 2.1.0+ Adds Explicit OpenvSwitch Support l LXC versions prior to 2.1.0+ also supported OpenvSwitch but indirectly.
  • 7. LXC 2.1.0+ Adds Explicit OpenvSwitch Support l You can do one-off config edits per container or reconfigure lxc l Set USE_LXC_BRIDGE="false" in file: /etc/default/lxc-net l Change lxc.net.0.link in the /etc/lxc/default.conf file as shown below. ubuntu@athens:~$ cat /etc/lxc/default.conf lxc.net.0.type = veth lxc.net.0.link = ovsbr1 ← lxc.net.0.flags = up lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx ubuntu@athens:~$
  • 8. LXC 2.1.0+ Can Still Use lxc.network.script.up But it’s been renamed to: lxc.net.0.script.up lxc.net.0.script.down
  • 9. LXC 2.1.0+ Adds Explicit OpenvSwitch Support l Using lxc.net.0.link together with lxc.net.0.script.up is optional l You can still specify the OVS switch name in lxc.net.0.script.up l Connecting multiple OVS switches is done as shown below. # OpenvSwitch Networking lxc.net.0.script.up = /etc/network/if-up.d/openvswitch/olive-pub-ifup-sw1 lxc.net.0.script.down = /etc/network/if-down.d/openvswitch/olive-pub-ifdown-sw1 lxc.net.0.veth.pair = olivew lxc.net.1.script.up = /etc/network/if-up.d/openvswitch/olive-pub-ifup-sx1 lxc.net.1.script.down = /etc/network/if-down.d/openvswitch/olive-pub-ifdown-sx1 lxc.net.1.veth.pair = olivex
  • 10. OpenvSwitch as a systemd service on Linux [Unit] Description=sw1 Service Wants=network-online.target After=network-online.target [Service] Type=oneshot User=root RemainAfterExit=yes ExecStart=/etc/network/openvswitch/crt_ovs_sw1.sh ExecStop=/usr/bin/ovs-vsctl del-br sw1 [Install] WantedBy=multi-user.target Ubuntu 16.04+ Oracle Linux 7.x+ LXC Containers are Also setup as systemd services
  • 11. Orabuntu-LXC Open vSwitch sw1: The "Brain" Bridge "sw1" Port "ora73c10" tag: 10 Interface "ora73c10" Port olivew tag: 10 Interface olivew Port "sw1" Interface "sw1" type: internal Port "ora73c11" tag: 10 Interface "ora73c11" Detects Internet Connected Interface Detects IP Address Checks if NetworkManager Installed Checks if Systemd-Resolved Installed Detects Linux Flavor Detects Wired or Wireless Edits Ifcfg-$ESSID ifcfg- $EXTIF Sets iptables rules for sw1 internet access Builds GRE tunnels Sets routes Sets MTU Cleans up iptables
  • 12. Orabuntu-LXC 4.0: Containerized DNS/DHCP DNS/DHCP SW1 LXC Containers WAN via iptables VLAN tags By standardizing DNS/DHCP by containerization for all deployments of Open vSwitch we have better control of the deployment and also only need to point customer environment to the containerized DNS/DHCP
  • 13. OpenvSwitch Containerized DNS/DHCP NetworkManager systemd-resolved dnsmasq NetworkManager on desktops Add "dns=dnsmasq" in NetworkManager.conf Systemd-resolved on server editions. Add "DNS=<ip of DNS container on sw1> in /etc/systemd/resolved.conf dnsmasq used by LXC lxcbr0 default bridge. Open vSwitch sw1 detects and helps with DNS setup
  • 14. OpenvSwitch DNS DHCP Implementations l NetworkManager root@athens:# cat /etc/NetworkManager/NetworkManager.conf [main] plugins=ifupdown,keyfile dns=dnsmasq [ifupdown] managed=false [device] wifi.scan-rand-mac-address=no
  • 15. OpenvSwitch DNS DHCP Implementations l NetworkManager l The “server” parameter is well-suited to container networks over OVS l Used with the dns=dnsmasq add-on to NetworkManager root@athens:/etc/network/openvswitch# cat /etc/NetworkManager/dnsmasq.d/local server=/urdomain1.com/10.207.39.2 server=/39.207.10.in-addr.arpa/10.207.39.2 server=/urdomain2.com/10.207.29.2 server=/29.207.10.in-addr.arpa/10.207.29.2 server=/gns1.urdomain1.com/10.207.39.3 A good way to handle large numbers of container networks over OvS.
  • 16. OpenvSwitch DNS DHCP Implementations l NetworkManager l The “server” parameter is well-suited to container networks over OVS l Used with the dns=dnsmasq add-on to NetworkManager l Explicit support of OpenvSwitch is in but not yet out in linux distros Highlights of latest NetworkManager 1.10 include OpenvSwitch support
  • 17. OpenvSwitch DNS DHCP Implementations l Systemd-Resolved l Gaining widespread deployment, reception by community is mixed l For containers over OVS it’s actually well-suited. [Resolve] DNS=10.207.39.2 10.207.29.2 #FallbackDNS= #Domains= #LLMNR=yes #MulticastDNS=yes #DNSSEC=no #Cache=yes #DNSStubListener=udp root@athens:/etc/network/openvswitch#
  • 18. OpenvSwitch GRE endpoints VM-DHCP setups l Problem with VM snapshots they sometimes have DHCP “IP drift” l When using GRE tunnels to connect containers on OVS networks l If endpoints drift they must be reset somehow l When snapshots are restored IP addresses sometimes drift after awhile, breaking GRE endpoint. What is needed is some kind of daemon (?) or dynamic rebuild of the GRE port, but the problem is how to reset on the good end from the broken end.
  • 19. OvS: Sending all switch traffic over 1 GRE tunnel Bridge "sw1" 10.207.39.4 Port "s1" tag: 11 Interface "s1" type: patch options: {peer="a1"} Bridge "sx1" 10.207.29.4 Port "a1" tag: 11 Interface "a1" type: patch options: {peer="s1"} Bridge "sw1" 10.207.39.1 Port "s1" tag: 11 Interface "s1" type: patch options: {peer="a1"} Bridge "sx1" 10.207.29.1 Port "a1" tag: 11 Interface "a1" type: patch options: {peer="s1"} GRE Patch ports with VLANs are used
  • 20. References and Contact Information l References, Contact Info, etc. l https://github.com/gstanden/orabuntu-lxc l https://sites.google.com/site/nandydandyoracle l http://www.consultingcommandos.us l gilbert@orabuntu-lxc.com l youtube videos (search “orabuntu-lxc” at youtube) l PLEASE “WATCH” THE l ORABUNTU-LXC PROJECT AT GITHUB ! l Twitter: #LXC4Oracle .