SlideShare une entreprise Scribd logo
1  sur  43
Télécharger pour lire hors ligne
Jaime Melis
OpenNebula Engineer // @j_melis //
jmelis@opennebula.org
Hypervisors & Containers
OpenNebulaConf 2016
4th
edition
Agenda
Introduction
KVM
Virtual Infra Management
•Capacity management
•Multi-VM management
•Resource optimization
•HA and business continuity
OpenNebula
Cloud Management
•VDC multi-tenancy
•Simple cloud GUI and interfaces
•Service elasticity/provisioning
•Federation/hybrid
vCenter
VMware
OpenNebula
Reference Architecture
Reference Architecture
Basic Advanced
Operating
System
Supported OS (Ubuntu or CentOS/RHEL) in all machines
Specific OpenNebula packages installed
Hypervisor KVM
Networking VLAN 802.1Q VXLAN
Storage Shared file system
(NFS/GlusterFS) using qcow2
format for Image and
System Datastores
Ceph Cluster for Image
Datastores, and a separated
Shared FS for System
Datastore
Authentication Native authentication or Active Directory
Basic and Advanced Implementations
Reference Architecture
Basic Advanced
Memory 2 GB 4 GB
CPU 1 CPU (2 cores) 2 CPU (4 cores)
Disk size 100 GB 500 GB
Network 2 NICs 2 NICs
Front-end Hardware recommendations
Reference Architecture
Network Implementations
Private
Network
Communication between VMs.
Public Network To serve VMs that need internet access
Service
Network
For front-end and virtualization node communication
-including inter node communication for live migration-, as
well as for storage traffic
Storage
Network
To serve the the shared filesystem or the Ceph pools to the
virtualization nodes
Configuring Drivers
VM_MAD = [
NAME = "kvm",
SUNSTONE_NAME = "KVM",
EXECUTABLE = "one_vmm_exec",
ARGUMENTS = "-t 15 -r 0 kvm",
DEFAULT = "vmm_exec/vmm_exec_kvm.conf",
TYPE = "kvm",
KEEP_SNAPSHOTS = "no",
IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold,
release, suspend, resume, delete, reboot, reboot-hard, resched,
unresched, disk-attach, disk-detach, nic-attach, nic-detach,
snap-create, snap-delete" ]
Monitoring Hosts
Monitoring Hosts
Wed Oct 19 14:43:20 2016 [Z0][InM][D]: Monitoring host host01 (0)
Wed Oct 19 14:43:21 2016 [Z0][InM][D]: Host host01 (0)
successfully monitored.
Wed Oct 19 14:43:31 2016 [Z0][InM][D]: Host host01 (0)
successfully monitored.
Wed Oct 19 14:43:51 2016 [Z0][InM][D]: Host host01 (0)
successfully monitored.
...
Capacity
Attributes
● MEMORY
● CPU
● VCPU
Overcommitment
● RESERVED_CPU
● RESERVED_MEMORY
Cgroups
What is?
● Enforce CPU assigned to a VM
● VM with CPU=0.5 gets half of another VM CPU=1.0
● You can limit the total memory used by the VMs
How?
● Check your distro
● Configuration in the hosts (not in the front-end)
● There is a cgroups service
● Enable in /etc/libvirt/qemu.conf
● Add libvirt to /etc/cgrules.conf
Fast VM Deployments
● Libvirt listens by default on a unix socket
● No concurrent operations
/etc/one/sched.conf
# MAX_HOST: Maximum number of Virtual
Machines dispatched to a given host in
# each scheduling action
#
MAX_HOST = 1
● Enable TCP socket in libvirtd.conf
RAW
If it's supported by Libvirt… it's supported by OpenNebula
RAW = [
type = "kvm",
data = "<devices>
<serial type="pty"><source path="/dev/pts/5"/><target
port="0"/></serial>
<console type="pty" tty="/dev/pts/5"><source
path="/dev/pts/5"/><target port="0"/></console>
</devices>"
]
Libvirt Deployment File (XML)
Improve Performance
● Paravirtualized drivers
● Network
● Storage
Enable it by default:
/etc/one/vmm_exec/vmm_exec_kvm.conf
NIC = [ MODEL = "virtio" ]
/etc/one/oned.conf
DEFAULT_DEVICE_PREFIX = "vd"
virtio
Further Tips
KSM
● Kernel Samepage Merging
● Combines Memory private pages
● Increases VM density
● Enabled by default in CentOS
SPICE
● Native in OpenNebula >= 4.12 (qlx display Driver)
● Redirect printers, USB (mass-storage), Audio
Further Tips
Virsh Capabilities
/usr/share/libvirt/cpu_map.xml
OS = [ MACHINE = "..." ]
Cache
● Writethrough
○ host page on, guest disk write cache off
● Writeback
○ Good overall I/O Performance
○ host page on, disk write cache on
● None
○ Good write performance
○ host page off, disk write cache on
vCenter Approach
KVM
Virtual Infra Management
•Capacity management
•Multi-VM management
•Resource optimization
•HA and business continuity
OpenNebula
Cloud Management
•VDC multi-tenancy
•Simple cloud GUI and interfaces
•Service elasticity/provisioning
•Federation/hybrid
vCenter
VMware
OpenNebula
Reference Architecture
Reference Architecture
Description
Front-end Supported OS (Ubuntu or CentOS/RHEL)
Specific OpenNebula packages installed
Hypervisor VMware vSphere (managed through vCenter)
Networking Standard and Distributed Switches (managed through
vCenter)
Storage Local and Networked (FC, iSCSI, SAS) (managed
through vCenter)
Authentication Native authentication or Active Directory
Summary of the implementation
VM_MAD = [
NAME = "vcenter",
SUNSTONE_NAME = "VMWare vCenter",
EXECUTABLE = "one_vmm_sh",
ARGUMENTS = "-p -t 15 -r 0 vcenter -s sh",
DEFAULT = "vmm_exec/vmm_exec_vcenter.conf",
TYPE = "xml",
KEEP_SNAPSHOTS = "yes",
IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold,
release, suspend, resume, delete, reboot, reboot-hard, resched,
unresched, poweroff, poweroff-hard, disk-attach, disk-detach,
nic-attach, nic-detach, snap-create, snap-delete"
]
Configuring Drivers (Virtualization)
Configuring Drivers (Monitoring)
IM_MAD = [
NAME = "vcenter",
SUNSTONE_NAME = "VMWare vCenter",
EXECUTABLE = "one_im_sh",
ARGUMENTS = "-c -t 15 -r 0 vcenter" ]
vCenter Delegation
VMs
Templates
Networks
Overview
Key Points
● VMware workflows
● Leverages vMotion, HA, DRS
● Templates and Networks must exist
● Each vCenter cluster is a Host
○ OpenNebula chooses the Host (vCenter cluster)
○ VMware DRS chooses the ESX Host
● VMware tools in guest OS
Limitations
● Security Groups
● Files passed in the Context
vCenter
ESX HostESX Host
Connectivity
VNC
OpenNebula Frontend
ESX Hosts
VI API
ESX HostESX HostESX Hosts
VMM Driver
Importing Clusters
● Sunstone to import vCenter Clusters
● CLI Tool also provides that functionality
● Manages subsequent import actions
Importing Templates
● A Template must be already defined in OpenNebula.
● It must contain all the basic information to be deployed
● During instantiation we can add an extra network, but not
remove them.
Importing Templates
● The Template includes the vCenter UUID.
● Keep VM Disks is optional
Importing Templates
● User can be asked about Resource Pool and Datastore
Importing Networks
● The Network must exist in OpenNebula.
● When importing, we can assign an IP range for the
Network
Importing VMs
● Wild VMs can be imported
● After importing, VMs can be managed by OpenNebula
● The following operations cannot be performed:
○ delete --recreate
○ undeploy
○ migrate
○ stop
Importing Datastores and VMDKs
● Available through CLI and Sunstone
● Same mechanism as with VMs, Networks and Templates
Importing Datastores and VMDKs
vCenter datastores supported in OpenNebula
● Monitorization of Datastores and VMDKs
● VMDK Creation
● VMDK Upload
● VMDK Cloning
● VMDK Deletion
Persistent VMDK
VMDK Hotplug supported
● Attach disk
Contextualization
● Two supported Contextualizations methods:
○ vCenter Customizations
○ OpenNebula
● OpenNebula Contextualization works both for Windows
and Linux.
● START_SCRIPT is supported
Scheduling
● OpenNebula chooses a Host (vCenter Cluster)
● The specific ESX is selected by vCenter (DRS)
● The specific Cluster can be forced:
SCHED_REQUIREMENTS = "NAME="<vcenter_cluster>""
Docker
Docker
Machine
Docker-Machine
● Official Docker project
● Deploys transparently your Docker host
● Supports Multiple Backends
● Switch between your Docker hosts
Boot2Docker
Lightweight Linux distribution based on Tiny Core Linux
made specifically to run Docker containers.
http://boot2docker.io
Requirements
● OpenNebula Cloud
● Image for Docker Engine (Boot2Docker) & Network
● Docker Client Tools & Docker Machine
● Docker Machine OpenNebula Plugin
○ github.com/OpenNebula/docker-machine-opennebula
Docker Machine OpenNebula Plugin
docker-machine create 
--driver opennebula 
--opennebula-network-name private 
--opennebula-image-name boot2docker 
--opennebula-b2d-size 18192 
my_docker_host
Docker Swarm
● Native clustering for Docker
● Pool of Docker hosts into a single, virtual Docker host
● Scale to multiple hosts
Rancher
● Complete Platform for Running Containers
● Entire software stack
● Supports Docker Machine provisioning
OpenNebulaConf 2016
4th
edition
Platinum
Gold
Silver
Community
THANKS!

Contenu connexe

Tendances

OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...
OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...
OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...
OpenNebula Project
 
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic UsageOpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebula Project
 
Loadays 2013 OpenNebula Fundamentals
Loadays 2013 OpenNebula FundamentalsLoadays 2013 OpenNebula Fundamentals
Loadays 2013 OpenNebula Fundamentals
OpenNebula Project
 
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and ArchitectureOpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
OpenNebula Project
 

Tendances (19)

OpenNebulaConf 2016 - VTastic: Akamai Innovations for Distributed System Test...
OpenNebulaConf 2016 - VTastic: Akamai Innovations for Distributed System Test...OpenNebulaConf 2016 - VTastic: Akamai Innovations for Distributed System Test...
OpenNebulaConf 2016 - VTastic: Akamai Innovations for Distributed System Test...
 
TechDay - Cambridge 2016 - OpenNebula at Harvard Univerity
TechDay - Cambridge 2016 - OpenNebula at Harvard UniverityTechDay - Cambridge 2016 - OpenNebula at Harvard Univerity
TechDay - Cambridge 2016 - OpenNebula at Harvard Univerity
 
OpenNebulaConf 2016 - Evolution of OpenNebula at Netways by Sebastian Saemann...
OpenNebulaConf 2016 - Evolution of OpenNebula at Netways by Sebastian Saemann...OpenNebulaConf 2016 - Evolution of OpenNebula at Netways by Sebastian Saemann...
OpenNebulaConf 2016 - Evolution of OpenNebula at Netways by Sebastian Saemann...
 
TechDay - Toronto 2016 - Hyperconvergence and OpenNebula
TechDay - Toronto 2016 - Hyperconvergence and OpenNebulaTechDay - Toronto 2016 - Hyperconvergence and OpenNebula
TechDay - Toronto 2016 - Hyperconvergence and OpenNebula
 
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
 
OpenNebulaConf 2016 - Networking, NFVs and SDNs Hands-on Workshop by Rubén S....
OpenNebulaConf 2016 - Networking, NFVs and SDNs Hands-on Workshop by Rubén S....OpenNebulaConf 2016 - Networking, NFVs and SDNs Hands-on Workshop by Rubén S....
OpenNebulaConf 2016 - Networking, NFVs and SDNs Hands-on Workshop by Rubén S....
 
OpenNebulaConf 2016 - OpenNebula 5.0 Highlights and Beyond by Ruben S. Monter...
OpenNebulaConf 2016 - OpenNebula 5.0 Highlights and Beyond by Ruben S. Monter...OpenNebulaConf 2016 - OpenNebula 5.0 Highlights and Beyond by Ruben S. Monter...
OpenNebulaConf 2016 - OpenNebula 5.0 Highlights and Beyond by Ruben S. Monter...
 
OpenNebula 5.4 Enhancements vCenter Integration
OpenNebula 5.4 Enhancements vCenter IntegrationOpenNebula 5.4 Enhancements vCenter Integration
OpenNebula 5.4 Enhancements vCenter Integration
 
OpenNebulaConf2015 2.03 Docker-Machine and OpenNebula - Jaime Melis
OpenNebulaConf2015 2.03 Docker-Machine and OpenNebula - Jaime MelisOpenNebulaConf2015 2.03 Docker-Machine and OpenNebula - Jaime Melis
OpenNebulaConf2015 2.03 Docker-Machine and OpenNebula - Jaime Melis
 
OpenNebula 5.4 Hands-on Tutorial
OpenNebula 5.4 Hands-on TutorialOpenNebula 5.4 Hands-on Tutorial
OpenNebula 5.4 Hands-on Tutorial
 
Optimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_PerformanceOptimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_Performance
 
OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...
OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...
OpenNebulaConf 2016 - The Lightweight Approach to Build Cloud CyberSecurity E...
 
TechDay - Toronto 2016 - OpenNebula @ Fuze
TechDay - Toronto 2016 - OpenNebula @ FuzeTechDay - Toronto 2016 - OpenNebula @ Fuze
TechDay - Toronto 2016 - OpenNebula @ Fuze
 
How Can OpenNebula Fit Your Needs: A European Project Feedback
How Can OpenNebula Fit Your Needs: A European Project FeedbackHow Can OpenNebula Fit Your Needs: A European Project Feedback
How Can OpenNebula Fit Your Needs: A European Project Feedback
 
OpenNebula TechDay Waterloo 2015 - Open nebula hands on workshop
OpenNebula TechDay Waterloo 2015 - Open nebula hands on workshopOpenNebula TechDay Waterloo 2015 - Open nebula hands on workshop
OpenNebula TechDay Waterloo 2015 - Open nebula hands on workshop
 
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic UsageOpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
 
Loadays 2013 OpenNebula Fundamentals
Loadays 2013 OpenNebula FundamentalsLoadays 2013 OpenNebula Fundamentals
Loadays 2013 OpenNebula Fundamentals
 
OpenNebula 4.14 Hands-on Tutorial
OpenNebula 4.14 Hands-on TutorialOpenNebula 4.14 Hands-on Tutorial
OpenNebula 4.14 Hands-on Tutorial
 
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and ArchitectureOpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
 

Similaire à OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime Melis, OpenNebula

Virtualization 101 - DeepDive
Virtualization 101 - DeepDiveVirtualization 101 - DeepDive
Virtualization 101 - DeepDive
Amit Agarwal
 
Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0
guest72e8c1
 
Storage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdf
Storage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdfStorage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdf
Storage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdf
aaajjj4
 
Successfully Deliver and Operate OpenStack in Production with VMware VIO
Successfully Deliver and Operate OpenStack in Production with VMware VIOSuccessfully Deliver and Operate OpenStack in Production with VMware VIO
Successfully Deliver and Operate OpenStack in Production with VMware VIO
Arraya Solutions
 
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Jan Kalcic
 

Similaire à OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime Melis, OpenNebula (20)

Setup guide nos-v3_5
Setup guide nos-v3_5Setup guide nos-v3_5
Setup guide nos-v3_5
 
Proxmox Talk - Linux Fest Northwest 2018
Proxmox Talk - Linux Fest Northwest 2018Proxmox Talk - Linux Fest Northwest 2018
Proxmox Talk - Linux Fest Northwest 2018
 
Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)
 
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
LOAD BALANCING OF APPLICATIONS  USING XEN HYPERVISORLOAD BALANCING OF APPLICATIONS  USING XEN HYPERVISOR
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
 
Virtualization 101 - DeepDive
Virtualization 101 - DeepDiveVirtualization 101 - DeepDive
Virtualization 101 - DeepDive
 
Ansible & Vagrant
Ansible & VagrantAnsible & Vagrant
Ansible & Vagrant
 
RMLL / LSM 2009
RMLL / LSM 2009RMLL / LSM 2009
RMLL / LSM 2009
 
Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0
 
Security of Linux containers in the cloud
Security of Linux containers in the cloudSecurity of Linux containers in the cloud
Security of Linux containers in the cloud
 
Linux container & docker
Linux container & dockerLinux container & docker
Linux container & docker
 
Oracle VM3: Virtuelle Maschinen per Script erstellen
Oracle VM3: Virtuelle Maschinen per Script erstellenOracle VM3: Virtuelle Maschinen per Script erstellen
Oracle VM3: Virtuelle Maschinen per Script erstellen
 
Open nebula froscon
Open nebula frosconOpen nebula froscon
Open nebula froscon
 
Windows Server 2012 Virtualization: Notes from the Field
Windows Server 2012 Virtualization: Notes from the FieldWindows Server 2012 Virtualization: Notes from the Field
Windows Server 2012 Virtualization: Notes from the Field
 
Storage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdf
Storage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdfStorage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdf
Storage-Performance-Tuning-for-FAST-Virtual-Machines_Fam-Zheng.pdf
 
Successfully Deliver and Operate OpenStack in Production with VMware VIO
Successfully Deliver and Operate OpenStack in Production with VMware VIOSuccessfully Deliver and Operate OpenStack in Production with VMware VIO
Successfully Deliver and Operate OpenStack in Production with VMware VIO
 
Proxmox for DevOps
Proxmox for DevOpsProxmox for DevOps
Proxmox for DevOps
 
Automating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with PuppetAutomating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with Puppet
 
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
 
Demystifying openvswitch
Demystifying openvswitchDemystifying openvswitch
Demystifying openvswitch
 
OpenVZ Linux containers
OpenVZ Linux containersOpenVZ Linux containers
OpenVZ Linux containers
 

Plus de OpenNebula Project

OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebula Project
 

Plus de OpenNebula Project (20)

OpenNebulaConf2019 - Welcome and Project Update - Ignacio M. Llorente, Rubén ...
OpenNebulaConf2019 - Welcome and Project Update - Ignacio M. Llorente, Rubén ...OpenNebulaConf2019 - Welcome and Project Update - Ignacio M. Llorente, Rubén ...
OpenNebulaConf2019 - Welcome and Project Update - Ignacio M. Llorente, Rubén ...
 
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
 
OpenNebulaConf2019 - CORD and Edge computing with OpenNebula - Alfonso Aureli...
OpenNebulaConf2019 - CORD and Edge computing with OpenNebula - Alfonso Aureli...OpenNebulaConf2019 - CORD and Edge computing with OpenNebula - Alfonso Aureli...
OpenNebulaConf2019 - CORD and Edge computing with OpenNebula - Alfonso Aureli...
 
OpenNebulaConf2019 - 6 years (+) OpenNebula - Lessons learned - Sebastian Man...
OpenNebulaConf2019 - 6 years (+) OpenNebula - Lessons learned - Sebastian Man...OpenNebulaConf2019 - 6 years (+) OpenNebula - Lessons learned - Sebastian Man...
OpenNebulaConf2019 - 6 years (+) OpenNebula - Lessons learned - Sebastian Man...
 
OpenNebulaConf2019 - Performant and Resilient Storage the Open Source & Linux...
OpenNebulaConf2019 - Performant and Resilient Storage the Open Source & Linux...OpenNebulaConf2019 - Performant and Resilient Storage the Open Source & Linux...
OpenNebulaConf2019 - Performant and Resilient Storage the Open Source & Linux...
 
OpenNebulaConf2019 - Image Backups in OpenNebula - Momčilo Medić - ITAF
OpenNebulaConf2019 - Image Backups in OpenNebula - Momčilo Medić - ITAFOpenNebulaConf2019 - Image Backups in OpenNebula - Momčilo Medić - ITAF
OpenNebulaConf2019 - Image Backups in OpenNebula - Momčilo Medić - ITAF
 
OpenNebulaConf2019 - How We Use GOCA to Manage our OpenNebula Cloud - Jean-Ph...
OpenNebulaConf2019 - How We Use GOCA to Manage our OpenNebula Cloud - Jean-Ph...OpenNebulaConf2019 - How We Use GOCA to Manage our OpenNebula Cloud - Jean-Ph...
OpenNebulaConf2019 - How We Use GOCA to Manage our OpenNebula Cloud - Jean-Ph...
 
OpenNebulaConf2019 - Crytek: A Video gaming Edge Implementation "on the shoul...
OpenNebulaConf2019 - Crytek: A Video gaming Edge Implementation "on the shoul...OpenNebulaConf2019 - Crytek: A Video gaming Edge Implementation "on the shoul...
OpenNebulaConf2019 - Crytek: A Video gaming Edge Implementation "on the shoul...
 
Replacing vCloud with OpenNebula
Replacing vCloud with OpenNebulaReplacing vCloud with OpenNebula
Replacing vCloud with OpenNebula
 
NTS: What We Do With OpenNebula - and Why We Do It
NTS: What We Do With OpenNebula - and Why We Do ItNTS: What We Do With OpenNebula - and Why We Do It
NTS: What We Do With OpenNebula - and Why We Do It
 
OpenNebula from the Perspective of an ISP
OpenNebula from the Perspective of an ISPOpenNebula from the Perspective of an ISP
OpenNebula from the Perspective of an ISP
 
NTS CAPTAIN / OpenNebula at Julius Blum GmbH
NTS CAPTAIN / OpenNebula at Julius Blum GmbHNTS CAPTAIN / OpenNebula at Julius Blum GmbH
NTS CAPTAIN / OpenNebula at Julius Blum GmbH
 
Performant and Resilient Storage: The Open Source & Linux Way
Performant and Resilient Storage: The Open Source & Linux WayPerformant and Resilient Storage: The Open Source & Linux Way
Performant and Resilient Storage: The Open Source & Linux Way
 
NetApp Hybrid Cloud with OpenNebula
NetApp Hybrid Cloud with OpenNebulaNetApp Hybrid Cloud with OpenNebula
NetApp Hybrid Cloud with OpenNebula
 
NSX with OpenNebula - upcoming 5.10
NSX with OpenNebula - upcoming 5.10NSX with OpenNebula - upcoming 5.10
NSX with OpenNebula - upcoming 5.10
 
Security for Private Cloud Environments
Security for Private Cloud EnvironmentsSecurity for Private Cloud Environments
Security for Private Cloud Environments
 
CheckPoint R80.30 Installation on OpenNebula
CheckPoint R80.30 Installation on OpenNebulaCheckPoint R80.30 Installation on OpenNebula
CheckPoint R80.30 Installation on OpenNebula
 
DE-CIX: CloudConnectivity
DE-CIX: CloudConnectivityDE-CIX: CloudConnectivity
DE-CIX: CloudConnectivity
 
DDC Demo
DDC DemoDDC Demo
DDC Demo
 
Cloud Disaggregation with OpenNebula
Cloud Disaggregation with OpenNebulaCloud Disaggregation with OpenNebula
Cloud Disaggregation with OpenNebula
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime Melis, OpenNebula

  • 1. Jaime Melis OpenNebula Engineer // @j_melis // jmelis@opennebula.org Hypervisors & Containers OpenNebulaConf 2016 4th edition
  • 3. Introduction KVM Virtual Infra Management •Capacity management •Multi-VM management •Resource optimization •HA and business continuity OpenNebula Cloud Management •VDC multi-tenancy •Simple cloud GUI and interfaces •Service elasticity/provisioning •Federation/hybrid vCenter VMware OpenNebula
  • 5. Reference Architecture Basic Advanced Operating System Supported OS (Ubuntu or CentOS/RHEL) in all machines Specific OpenNebula packages installed Hypervisor KVM Networking VLAN 802.1Q VXLAN Storage Shared file system (NFS/GlusterFS) using qcow2 format for Image and System Datastores Ceph Cluster for Image Datastores, and a separated Shared FS for System Datastore Authentication Native authentication or Active Directory Basic and Advanced Implementations
  • 6. Reference Architecture Basic Advanced Memory 2 GB 4 GB CPU 1 CPU (2 cores) 2 CPU (4 cores) Disk size 100 GB 500 GB Network 2 NICs 2 NICs Front-end Hardware recommendations
  • 7. Reference Architecture Network Implementations Private Network Communication between VMs. Public Network To serve VMs that need internet access Service Network For front-end and virtualization node communication -including inter node communication for live migration-, as well as for storage traffic Storage Network To serve the the shared filesystem or the Ceph pools to the virtualization nodes
  • 8. Configuring Drivers VM_MAD = [ NAME = "kvm", SUNSTONE_NAME = "KVM", EXECUTABLE = "one_vmm_exec", ARGUMENTS = "-t 15 -r 0 kvm", DEFAULT = "vmm_exec/vmm_exec_kvm.conf", TYPE = "kvm", KEEP_SNAPSHOTS = "no", IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend, resume, delete, reboot, reboot-hard, resched, unresched, disk-attach, disk-detach, nic-attach, nic-detach, snap-create, snap-delete" ]
  • 10. Monitoring Hosts Wed Oct 19 14:43:20 2016 [Z0][InM][D]: Monitoring host host01 (0) Wed Oct 19 14:43:21 2016 [Z0][InM][D]: Host host01 (0) successfully monitored. Wed Oct 19 14:43:31 2016 [Z0][InM][D]: Host host01 (0) successfully monitored. Wed Oct 19 14:43:51 2016 [Z0][InM][D]: Host host01 (0) successfully monitored. ...
  • 11. Capacity Attributes ● MEMORY ● CPU ● VCPU Overcommitment ● RESERVED_CPU ● RESERVED_MEMORY
  • 12. Cgroups What is? ● Enforce CPU assigned to a VM ● VM with CPU=0.5 gets half of another VM CPU=1.0 ● You can limit the total memory used by the VMs How? ● Check your distro ● Configuration in the hosts (not in the front-end) ● There is a cgroups service ● Enable in /etc/libvirt/qemu.conf ● Add libvirt to /etc/cgrules.conf
  • 13. Fast VM Deployments ● Libvirt listens by default on a unix socket ● No concurrent operations /etc/one/sched.conf # MAX_HOST: Maximum number of Virtual Machines dispatched to a given host in # each scheduling action # MAX_HOST = 1 ● Enable TCP socket in libvirtd.conf
  • 14. RAW If it's supported by Libvirt… it's supported by OpenNebula RAW = [ type = "kvm", data = "<devices> <serial type="pty"><source path="/dev/pts/5"/><target port="0"/></serial> <console type="pty" tty="/dev/pts/5"><source path="/dev/pts/5"/><target port="0"/></console> </devices>" ] Libvirt Deployment File (XML)
  • 15. Improve Performance ● Paravirtualized drivers ● Network ● Storage Enable it by default: /etc/one/vmm_exec/vmm_exec_kvm.conf NIC = [ MODEL = "virtio" ] /etc/one/oned.conf DEFAULT_DEVICE_PREFIX = "vd" virtio
  • 16. Further Tips KSM ● Kernel Samepage Merging ● Combines Memory private pages ● Increases VM density ● Enabled by default in CentOS SPICE ● Native in OpenNebula >= 4.12 (qlx display Driver) ● Redirect printers, USB (mass-storage), Audio
  • 17. Further Tips Virsh Capabilities /usr/share/libvirt/cpu_map.xml OS = [ MACHINE = "..." ] Cache ● Writethrough ○ host page on, guest disk write cache off ● Writeback ○ Good overall I/O Performance ○ host page on, disk write cache on ● None ○ Good write performance ○ host page off, disk write cache on
  • 18. vCenter Approach KVM Virtual Infra Management •Capacity management •Multi-VM management •Resource optimization •HA and business continuity OpenNebula Cloud Management •VDC multi-tenancy •Simple cloud GUI and interfaces •Service elasticity/provisioning •Federation/hybrid vCenter VMware OpenNebula
  • 20. Reference Architecture Description Front-end Supported OS (Ubuntu or CentOS/RHEL) Specific OpenNebula packages installed Hypervisor VMware vSphere (managed through vCenter) Networking Standard and Distributed Switches (managed through vCenter) Storage Local and Networked (FC, iSCSI, SAS) (managed through vCenter) Authentication Native authentication or Active Directory Summary of the implementation
  • 21. VM_MAD = [ NAME = "vcenter", SUNSTONE_NAME = "VMWare vCenter", EXECUTABLE = "one_vmm_sh", ARGUMENTS = "-p -t 15 -r 0 vcenter -s sh", DEFAULT = "vmm_exec/vmm_exec_vcenter.conf", TYPE = "xml", KEEP_SNAPSHOTS = "yes", IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend, resume, delete, reboot, reboot-hard, resched, unresched, poweroff, poweroff-hard, disk-attach, disk-detach, nic-attach, nic-detach, snap-create, snap-delete" ] Configuring Drivers (Virtualization)
  • 22. Configuring Drivers (Monitoring) IM_MAD = [ NAME = "vcenter", SUNSTONE_NAME = "VMWare vCenter", EXECUTABLE = "one_im_sh", ARGUMENTS = "-c -t 15 -r 0 vcenter" ]
  • 24. Overview Key Points ● VMware workflows ● Leverages vMotion, HA, DRS ● Templates and Networks must exist ● Each vCenter cluster is a Host ○ OpenNebula chooses the Host (vCenter cluster) ○ VMware DRS chooses the ESX Host ● VMware tools in guest OS Limitations ● Security Groups ● Files passed in the Context
  • 25. vCenter ESX HostESX Host Connectivity VNC OpenNebula Frontend ESX Hosts VI API ESX HostESX HostESX Hosts VMM Driver
  • 26. Importing Clusters ● Sunstone to import vCenter Clusters ● CLI Tool also provides that functionality ● Manages subsequent import actions
  • 27. Importing Templates ● A Template must be already defined in OpenNebula. ● It must contain all the basic information to be deployed ● During instantiation we can add an extra network, but not remove them.
  • 28. Importing Templates ● The Template includes the vCenter UUID. ● Keep VM Disks is optional
  • 29. Importing Templates ● User can be asked about Resource Pool and Datastore
  • 30. Importing Networks ● The Network must exist in OpenNebula. ● When importing, we can assign an IP range for the Network
  • 31. Importing VMs ● Wild VMs can be imported ● After importing, VMs can be managed by OpenNebula ● The following operations cannot be performed: ○ delete --recreate ○ undeploy ○ migrate ○ stop
  • 32. Importing Datastores and VMDKs ● Available through CLI and Sunstone ● Same mechanism as with VMs, Networks and Templates
  • 33. Importing Datastores and VMDKs vCenter datastores supported in OpenNebula ● Monitorization of Datastores and VMDKs ● VMDK Creation ● VMDK Upload ● VMDK Cloning ● VMDK Deletion Persistent VMDK VMDK Hotplug supported ● Attach disk
  • 34. Contextualization ● Two supported Contextualizations methods: ○ vCenter Customizations ○ OpenNebula ● OpenNebula Contextualization works both for Windows and Linux. ● START_SCRIPT is supported
  • 35. Scheduling ● OpenNebula chooses a Host (vCenter Cluster) ● The specific ESX is selected by vCenter (DRS) ● The specific Cluster can be forced: SCHED_REQUIREMENTS = "NAME="<vcenter_cluster>""
  • 37. Docker-Machine ● Official Docker project ● Deploys transparently your Docker host ● Supports Multiple Backends ● Switch between your Docker hosts
  • 38. Boot2Docker Lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. http://boot2docker.io
  • 39. Requirements ● OpenNebula Cloud ● Image for Docker Engine (Boot2Docker) & Network ● Docker Client Tools & Docker Machine ● Docker Machine OpenNebula Plugin ○ github.com/OpenNebula/docker-machine-opennebula
  • 40. Docker Machine OpenNebula Plugin docker-machine create --driver opennebula --opennebula-network-name private --opennebula-image-name boot2docker --opennebula-b2d-size 18192 my_docker_host
  • 41. Docker Swarm ● Native clustering for Docker ● Pool of Docker hosts into a single, virtual Docker host ● Scale to multiple hosts
  • 42. Rancher ● Complete Platform for Running Containers ● Entire software stack ● Supports Docker Machine provisioning