SlideShare uma empresa Scribd logo
1 de 44
Baixar para ler offline
OpenNebula
Tutorial
© OpenNebula Project. Creative Commons Attribution-NonCommercial-ShareAlike License
A Typical OpenNebula Environment
Planning the Installation
• Repository of VM images
• Multiple Backends (LVM, Ceph)
Monitoring,Virtualization,
Storage and Network
• Provides physical resources for the VMs
• Must have a hypervisor installed
Virtual Lab
Planning the Installation
NODE 1 NODE 2
4Installing and Basic Usage
Installation node 1 - Frontend
Installing
Hands on (node1)
Install Packages
# yum install opennebula-server opennebula-sunstone
opennebula-node-kvm opennebula-flow opennebula-gate
# /var/local/tutorial/configure_tutorial.sh
# echo oneadmin:opennebula > /var/lib/one/.one/one_auth
5Installing and Basic Usage
Installation node 1 - Frontend
Installing
Hands on (node1)
Start the services
# service opennebula start
# service opennebula-sunstone start
# service libvirtd restart
Switch to oneadmin
# su - oneadmin
$ oneflow-server start
$ onegate-server start
6Installing and Basic Usage
Installation node 1 - Frontend
Installing
Hands on (node1)
Overview of the CLI (as oneadmin)
# su - oneadmin
$ oneuser show
$ oneuser –h
$ one[TAB]
7Installing and Basic Usage
Installation node 1 - Frontend
Installing
Hands on (node1) !
OpenNebula CLI Commands
$ one[TAB]
oneuser Manage Users oneimage Manage Images
onegroup Manage Groups onetemplate Manage Templates
oneacl Manage ACLs onevm Manage VMs
onehost Manage Hosts oneacct Accounting Tool
onecluster Manage Clusters onemarket Marketplace Tool
onevnet Manage Networks onedb DB Tool
onedatastore Manage Datastores
8Installing and Basic Usage
Installation node 1 - Frontend
Installing
Hands on (node2)
Configure the hypervisor node
# ssh root@node2
# yum install opennebula-node-kvm
# service libvirtd restart
9Installing and Basic Usage
Configure Password-less SSH
Installing
Hands on! (always node1 from now on)
OpenNebula needs passwordless ssh access to all the nodes
from all the nodes
# (as oneadmin)
$ ssh-keyscan node1 node2 > ~/.ssh/known_hosts
# test it!
$ ssh node2
$ exit
$ ssh node1
$ exit
10Installing and Basic Usage
Get User Information - Sunstone
Installing
Try out Sunstone!
http://localhost:9869
Login: oneadmin
Password: opennebula
11Installing and Basic Usage
Adding Hosts - Sunstone
Basic Usage – Hosts
Hands on! (Sunstone)
●Create one host in Sunstone: node1
●Type: KVM
●Network: Default (dummy)
●Cluster: Default (none)
●Hostname: node1
●Watch transition INIT => ON
●Click on the row for more information
●Automatic gathering of monitoring data
●Take a look at the graphs
12Installing and Basic Usage
Adding Hosts - CLI
Basic Usage – Hosts
Hands on! (CLI)
(always as oneadmin in the Frontend – node 1)
$ onehost -help
$ onehost create –help
$ onehost create node2 –i kvm -v kvm -n dummy
$ onehost list
$ onehost top
# Wait for ON ... and then CTRL-C
$ onehost show node2
$ onehost show 1
$ onehost show -x 1
13Installing and Basic Usage
Adding Images
Basic Usage – Images
Hands on! (Sunstone)
●Create a new Image
● Name: ttylinux
● Path: /var/local/tutorial/ttyvd-context.qcow2
● Device Prefix: vd
● Driver: qcow2
14Installing and Basic Usage
Overview
Basic Usage - Datastores
Hands on! (Sunstone)
15Installing and Basic Usage
Adding Networks
Basic Usage – Networks
Hands on! (Sunstone)
br1
VM VM
Node 1
eth1
br1
Node 2
eth1
VM VM
16Installing and Basic Usage
Adding Networks
Basic Usage – Networks
Hands on! (Sunstone)
General
● Name: private
Configuration
● Bridge: br1
Addresses
● IP start: 192.168.0.100
● Size: 100
17Installing and Basic Usage
Adding Templates
Basic Usage – Template
Hands on! (Sunstone)
●A template is a Virtual Machine definition ready to be instantiated
●It has CPU, Memory, Disks, NIC, Graphical Ports, etc...
General
● Name: ttylinux
● Logo: Linux
● Description: Testing VM
● CPU: 0.1
● Memory: 64
Storage
● Click ttylinux
Network
● Click private
Input/Output
● Click VNC and add Keymap
Context
● Add OneGate token
18Installing and Basic Usage
Instantiating
Basic Usage – VMs
Hands on! (Sunstone)
●VNC ( root / password )
●ifconfig: configured using context
●migrate
●live-migrate
●ping the other machine
●Instantiate the template
●Deploy 2 VMs
●Leave the name blank
●Open Virtual Machines
●Watch the transition
PENDING => RUNNING
●Deployed in different hosts
19Installing and Basic Usage
Contextualization
Basic Usage – VMs
Hands on!
Login to the first VM and look at contextualization
Take a look at the contextualization files:
20Installing and Basic Usage
Main VM actions
Basic Usage – VMs
suspend VM state saved. Kept in the host.
power off (--hard) Powers off a VM. Kept in the host.
stop VM state saved. Taken to the system datastore.
undeploy (--hard) Powers off a VM. Taken to the system datastore.
reboot (--hard) Reboots the VM.
delete --recreate Cleans the VM and moves it to PENDING.
shutdown (--hard) Powers off a VM, cleans host and VM is removed
from OpenNebula.
delete VM is immediately destroyed regardless of state.
Recommended only for oneadmin.
21Installing and Basic Usage
Other VM actions
Basic Usage – VMs
Hands on! (Sunstone)
●Storage: Attach new disk
● Create new Image => Type: “Datablock”; “Empty Datablock”; Size: 100;
FS Type: “qcow2” ; Device Prefix: “vd”; Driver: “qcow2”
●Snapshot
●Take (system) snapshot
●Modify the VM
●Revert
●Capacity: Resize VM capacity
# bash
# echo 1 > /sys/bus/pci/rescan
22Installing and Basic Usage
Chmod and Chown, UNIX Style!
Permissions
Hands on! (Sunstone)
Make the all the resources previously created usable by everybody
Apply to all the images, templates and virtual networks.
Owner could be changed too => chown and chmod.
23Installing and Basic Usage
Creating Groups
Groups
Hands on!
Admin: Click Create an administrator user
Username: students-admin
Password: …
Check the Permissions tab (no modifications)
24Installing and Basic Usage
Associated ACLs
Groups
Hands on!
When a group is created, a new set of ACLs are introduced
25Installing and Basic Usage
VDCs
The Power of VDCs
26Installing and Basic Usage
Three Views
OpenNebula Views
OpenNebula
Admin Group Admin
Cloud User
27Installing and Basic Usage
The Admin View
OpenNebula Views
OpenNebula
Admin Group Admin
Cloud User
28Installing and Basic Usage
OpenNebula Views
Configure your Cloud from the Admin perspective
OpenNebula
Admin Group Admin
Cloud User
29Installing and Basic Usage
Group Admin View
Using Groups
Hands on!
Login as students-admin
●Create a student
●Assign Quotas
30Installing and Basic Usage
User the Cloud as a Cloud User
OpenNebula Views
OpenNebula
Admin Group Admin
Cloud User
31Installing and Basic Usage
Cloud View
OpenNebula Views
Hands on!
Login as the student and instantiate a new VM
●Select the ttylinux template
●Network private
●Explore the VM actions. Power Off and Save VM
●With the oneadmin account see the new template and image
●Other options: SSH Key, Quotas, Settings
32Installing and Basic Usage
Group Admin View
Using Groups
Hands on!
Login as students-admin
33Installing and Basic Usage
Explore
Federation
OpenNebula can scale by federation many OpenNebula instances.
Scheduler
The OpenNebula Scheduler is extremely flexible. Write your own rules
you want to guarantee that your vms end up wherever you need them.
OneGate
Send custom Metrics to OpenNebula
AppMarket
Deliver appliances ready to be consumed
CloudBursting
Scale out your private resources to EC2
vOneCloud
vCloud Director Replacement with al the OpenNebula Cloud benefits
Other Features
34Installing and Basic Usage
OneFlow Overview
Managing Multi-tier services
● OneFlow allows users and administrators
to define, execute and manage multi-tiered
applications
● services composed of interconnected
VMs with dependencies between them.
● each group of VMs is deployed and
managed as a single entity -> so group
and ACL management apply
35Installing and Basic Usage
Service Life-Cycle
Strategies
Deployment Strategies
• none: All roles are deployed at the same time
• straight: Each Role is deployed when all its parent Roles are
RUNNING
Service is running when all the Roles are RUNNING.
Running State
A role will not be considered to be running unless all the VMs in that role
report to OpenNebula that thy are running, if this checkbox is enabled:
To report it, the VM will use a very simple HTTP request (curl, wget, …)
and the OneGate token to authenticate.
36Installing and Basic Usage
Managing Services
Hands On – Template Creation
37Installing and Basic Usage
Managing Services
Hands On – Service Template and Frontend Role
38Installing and Basic Usage
Managing Services
Hands On – Service Template Database Master Role
39Installing and Basic Usage
Managing Services
Hands On – Instantiate the Template
40Installing and Basic Usage
Managing Services
Hands On – Service Information
worker role will not be deployed until the parent role (frontend) reports
that it’s ready.
Update the frontend role using ONEGATE or updating the template
curl -X "PUT" http://<onegate>/vm 
--header "X-ONEGATE-TOKEN: ..." 
--header "X-ONEGATE-VMID: ..." 
-d "READY = YES"
$ onevm update <id>
READY=YES
...
Repeat for the worker role
41Installing and Basic Usage
Managing Services
Hands On – Manual Scaling
Scale the worker node to 3
42Installing and Basic Usage
Service Scaling
Auto-Scaling based on Metrics
Each role can have an array of elasticity_policies
• Define an expression that will trigger a cardinality adjustment
These expressions can use performance data from
• The VM guest. Using the OneGate server, applications can
send custom monitoring metrics to OpenNebula.
• The VM, at hypervisor level (CPU, MEMORY, NET_{TX,RX})
43Installing and Basic Usage
Service Scaling
Auto-Scaling based on Schedule
Combined with the elasticity policies, each role can have an array of
scheduled_policies. These policies define a time, or a time recurrence,
and a cardinality adjustment
44Installing and Basic Usage
We Will Be Happy to Clarify Any Question
Questions?

Mais conteúdo relacionado

Mais procurados

What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
Simplilearn
 

Mais procurados (20)

Developing with Docker for the Arm Architecture
Developing with Docker for the Arm ArchitectureDeveloping with Docker for the Arm Architecture
Developing with Docker for the Arm Architecture
 
AWS Black Belt Online Seminar 2017 EC2 Windows
AWS Black Belt Online Seminar 2017 EC2 WindowsAWS Black Belt Online Seminar 2017 EC2 Windows
AWS Black Belt Online Seminar 2017 EC2 Windows
 
VPC Reachability Analyzer 使って人生が変わった話
VPC Reachability Analyzer 使って人生が変わった話VPC Reachability Analyzer 使って人生が変わった話
VPC Reachability Analyzer 使って人生が変わった話
 
AWS Code Services
AWS Code ServicesAWS Code Services
AWS Code Services
 
20170725 black belt_monitoring_on_aws
20170725 black belt_monitoring_on_aws20170725 black belt_monitoring_on_aws
20170725 black belt_monitoring_on_aws
 
Pushing Packets - How do the ML2 Mechanism Drivers Stack Up
Pushing Packets - How do the ML2 Mechanism Drivers Stack UpPushing Packets - How do the ML2 Mechanism Drivers Stack Up
Pushing Packets - How do the ML2 Mechanism Drivers Stack Up
 
Building virtualised CloudStack test environments
Building virtualised CloudStack test environmentsBuilding virtualised CloudStack test environments
Building virtualised CloudStack test environments
 
Learning how AWS implement AWS VPC CNI
Learning how AWS implement AWS VPC CNILearning how AWS implement AWS VPC CNI
Learning how AWS implement AWS VPC CNI
 
Architecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesArchitecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-Practices
 
Network automation (NetDevOps) with Ansible
Network automation (NetDevOps) with AnsibleNetwork automation (NetDevOps) with Ansible
Network automation (NetDevOps) with Ansible
 
virtual hosting and configuration
virtual hosting and configurationvirtual hosting and configuration
virtual hosting and configuration
 
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
 
02 terraform core concepts
02 terraform core concepts02 terraform core concepts
02 terraform core concepts
 
Using Virtual Private Cloud (vpc)
Using Virtual Private Cloud (vpc)Using Virtual Private Cloud (vpc)
Using Virtual Private Cloud (vpc)
 
自宅vSphereからニフクラに引っ越ししてみた
自宅vSphereからニフクラに引っ越ししてみた自宅vSphereからニフクラに引っ越ししてみた
自宅vSphereからニフクラに引っ越ししてみた
 
Cloud Computing and Amazon Web Services
Cloud Computing and Amazon Web ServicesCloud Computing and Amazon Web Services
Cloud Computing and Amazon Web Services
 
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
 
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
 
VMware NSX 101: What, Why & How
VMware NSX 101: What, Why & HowVMware NSX 101: What, Why & How
VMware NSX 101: What, Why & How
 
NFV Open Source projects
NFV Open Source projectsNFV Open Source projects
NFV Open Source projects
 

Semelhante a OpenNebula 4.14 Hands-on Tutorial

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
 
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
 
How To: Patch Off-line and Dormant Desktops, Servers and VMs
How To: Patch Off-line and Dormant Desktops, Servers and VMsHow To: Patch Off-line and Dormant Desktops, Servers and VMs
How To: Patch Off-line and Dormant Desktops, Servers and VMs
SolarWinds
 

Semelhante a OpenNebula 4.14 Hands-on Tutorial (20)

OpenNebula TechDay Boston 2015 - installing and basic usage
OpenNebula TechDay Boston 2015 - installing and basic usageOpenNebula TechDay Boston 2015 - installing and basic usage
OpenNebula TechDay Boston 2015 - installing and basic usage
 
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
 
OpenNebula 5.4 Hands-on Tutorial
OpenNebula 5.4 Hands-on TutorialOpenNebula 5.4 Hands-on Tutorial
OpenNebula 5.4 Hands-on Tutorial
 
Locally run a FIWARE Lab Instance In another Hypervisors
Locally run a FIWARE Lab Instance In another HypervisorsLocally run a FIWARE Lab Instance In another Hypervisors
Locally run a FIWARE Lab Instance In another Hypervisors
 
openQRM how-to: Setup UEC and openQRM cloud
openQRM how-to: Setup UEC and openQRM cloudopenQRM how-to: Setup UEC and openQRM cloud
openQRM how-to: Setup UEC and openQRM cloud
 
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
 
OpenNebula - OpenNebula and tips for CentOS 7
OpenNebula - OpenNebula and tips for CentOS 7OpenNebula - OpenNebula and tips for CentOS 7
OpenNebula - OpenNebula and tips for CentOS 7
 
TechMentor 2012: Deploying Windows Server 2012 Server Core
TechMentor 2012: Deploying Windows Server 2012 Server CoreTechMentor 2012: Deploying Windows Server 2012 Server Core
TechMentor 2012: Deploying Windows Server 2012 Server Core
 
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesDeploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab Facilities
 
Deploy MediaWiki usgin Fiware Lab Facilities
Deploy MediaWiki usgin Fiware Lab FacilitiesDeploy MediaWiki usgin Fiware Lab Facilities
Deploy MediaWiki usgin Fiware Lab Facilities
 
Krenel Based Virtual Machine In Centos7
Krenel Based Virtual Machine In Centos7Krenel Based Virtual Machine In Centos7
Krenel Based Virtual Machine In Centos7
 
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
 
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
 
FIWARE Lab Cloud Portal
FIWARE Lab Cloud PortalFIWARE Lab Cloud Portal
FIWARE Lab Cloud Portal
 
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld 2015: Automating Everything VMware with PowerCLI- Deep DiveVMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
 
How To: Patch Off-line and Dormant Desktops, Servers and VMs
How To: Patch Off-line and Dormant Desktops, Servers and VMsHow To: Patch Off-line and Dormant Desktops, Servers and VMs
How To: Patch Off-line and Dormant Desktops, Servers and VMs
 
How-To: Patch Off-line and Dormant Desktops, Servers & VMs
How-To: Patch Off-line and Dormant Desktops, Servers & VMsHow-To: Patch Off-line and Dormant Desktops, Servers & VMs
How-To: Patch Off-line and Dormant Desktops, Servers & VMs
 
Building a cloud ready linux image locally using KVM
Building a cloud ready linux image locally using KVM Building a cloud ready linux image locally using KVM
Building a cloud ready linux image locally using KVM
 

Mais 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
 

Mais 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
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
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
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
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
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 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 ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
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
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
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...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 

OpenNebula 4.14 Hands-on Tutorial

  • 1. OpenNebula Tutorial © OpenNebula Project. Creative Commons Attribution-NonCommercial-ShareAlike License
  • 2. A Typical OpenNebula Environment Planning the Installation • Repository of VM images • Multiple Backends (LVM, Ceph) Monitoring,Virtualization, Storage and Network • Provides physical resources for the VMs • Must have a hypervisor installed
  • 3. Virtual Lab Planning the Installation NODE 1 NODE 2
  • 4. 4Installing and Basic Usage Installation node 1 - Frontend Installing Hands on (node1) Install Packages # yum install opennebula-server opennebula-sunstone opennebula-node-kvm opennebula-flow opennebula-gate # /var/local/tutorial/configure_tutorial.sh # echo oneadmin:opennebula > /var/lib/one/.one/one_auth
  • 5. 5Installing and Basic Usage Installation node 1 - Frontend Installing Hands on (node1) Start the services # service opennebula start # service opennebula-sunstone start # service libvirtd restart Switch to oneadmin # su - oneadmin $ oneflow-server start $ onegate-server start
  • 6. 6Installing and Basic Usage Installation node 1 - Frontend Installing Hands on (node1) Overview of the CLI (as oneadmin) # su - oneadmin $ oneuser show $ oneuser –h $ one[TAB]
  • 7. 7Installing and Basic Usage Installation node 1 - Frontend Installing Hands on (node1) ! OpenNebula CLI Commands $ one[TAB] oneuser Manage Users oneimage Manage Images onegroup Manage Groups onetemplate Manage Templates oneacl Manage ACLs onevm Manage VMs onehost Manage Hosts oneacct Accounting Tool onecluster Manage Clusters onemarket Marketplace Tool onevnet Manage Networks onedb DB Tool onedatastore Manage Datastores
  • 8. 8Installing and Basic Usage Installation node 1 - Frontend Installing Hands on (node2) Configure the hypervisor node # ssh root@node2 # yum install opennebula-node-kvm # service libvirtd restart
  • 9. 9Installing and Basic Usage Configure Password-less SSH Installing Hands on! (always node1 from now on) OpenNebula needs passwordless ssh access to all the nodes from all the nodes # (as oneadmin) $ ssh-keyscan node1 node2 > ~/.ssh/known_hosts # test it! $ ssh node2 $ exit $ ssh node1 $ exit
  • 10. 10Installing and Basic Usage Get User Information - Sunstone Installing Try out Sunstone! http://localhost:9869 Login: oneadmin Password: opennebula
  • 11. 11Installing and Basic Usage Adding Hosts - Sunstone Basic Usage – Hosts Hands on! (Sunstone) ●Create one host in Sunstone: node1 ●Type: KVM ●Network: Default (dummy) ●Cluster: Default (none) ●Hostname: node1 ●Watch transition INIT => ON ●Click on the row for more information ●Automatic gathering of monitoring data ●Take a look at the graphs
  • 12. 12Installing and Basic Usage Adding Hosts - CLI Basic Usage – Hosts Hands on! (CLI) (always as oneadmin in the Frontend – node 1) $ onehost -help $ onehost create –help $ onehost create node2 –i kvm -v kvm -n dummy $ onehost list $ onehost top # Wait for ON ... and then CTRL-C $ onehost show node2 $ onehost show 1 $ onehost show -x 1
  • 13. 13Installing and Basic Usage Adding Images Basic Usage – Images Hands on! (Sunstone) ●Create a new Image ● Name: ttylinux ● Path: /var/local/tutorial/ttyvd-context.qcow2 ● Device Prefix: vd ● Driver: qcow2
  • 14. 14Installing and Basic Usage Overview Basic Usage - Datastores Hands on! (Sunstone)
  • 15. 15Installing and Basic Usage Adding Networks Basic Usage – Networks Hands on! (Sunstone) br1 VM VM Node 1 eth1 br1 Node 2 eth1 VM VM
  • 16. 16Installing and Basic Usage Adding Networks Basic Usage – Networks Hands on! (Sunstone) General ● Name: private Configuration ● Bridge: br1 Addresses ● IP start: 192.168.0.100 ● Size: 100
  • 17. 17Installing and Basic Usage Adding Templates Basic Usage – Template Hands on! (Sunstone) ●A template is a Virtual Machine definition ready to be instantiated ●It has CPU, Memory, Disks, NIC, Graphical Ports, etc... General ● Name: ttylinux ● Logo: Linux ● Description: Testing VM ● CPU: 0.1 ● Memory: 64 Storage ● Click ttylinux Network ● Click private Input/Output ● Click VNC and add Keymap Context ● Add OneGate token
  • 18. 18Installing and Basic Usage Instantiating Basic Usage – VMs Hands on! (Sunstone) ●VNC ( root / password ) ●ifconfig: configured using context ●migrate ●live-migrate ●ping the other machine ●Instantiate the template ●Deploy 2 VMs ●Leave the name blank ●Open Virtual Machines ●Watch the transition PENDING => RUNNING ●Deployed in different hosts
  • 19. 19Installing and Basic Usage Contextualization Basic Usage – VMs Hands on! Login to the first VM and look at contextualization Take a look at the contextualization files:
  • 20. 20Installing and Basic Usage Main VM actions Basic Usage – VMs suspend VM state saved. Kept in the host. power off (--hard) Powers off a VM. Kept in the host. stop VM state saved. Taken to the system datastore. undeploy (--hard) Powers off a VM. Taken to the system datastore. reboot (--hard) Reboots the VM. delete --recreate Cleans the VM and moves it to PENDING. shutdown (--hard) Powers off a VM, cleans host and VM is removed from OpenNebula. delete VM is immediately destroyed regardless of state. Recommended only for oneadmin.
  • 21. 21Installing and Basic Usage Other VM actions Basic Usage – VMs Hands on! (Sunstone) ●Storage: Attach new disk ● Create new Image => Type: “Datablock”; “Empty Datablock”; Size: 100; FS Type: “qcow2” ; Device Prefix: “vd”; Driver: “qcow2” ●Snapshot ●Take (system) snapshot ●Modify the VM ●Revert ●Capacity: Resize VM capacity # bash # echo 1 > /sys/bus/pci/rescan
  • 22. 22Installing and Basic Usage Chmod and Chown, UNIX Style! Permissions Hands on! (Sunstone) Make the all the resources previously created usable by everybody Apply to all the images, templates and virtual networks. Owner could be changed too => chown and chmod.
  • 23. 23Installing and Basic Usage Creating Groups Groups Hands on! Admin: Click Create an administrator user Username: students-admin Password: … Check the Permissions tab (no modifications)
  • 24. 24Installing and Basic Usage Associated ACLs Groups Hands on! When a group is created, a new set of ACLs are introduced
  • 25. 25Installing and Basic Usage VDCs The Power of VDCs
  • 26. 26Installing and Basic Usage Three Views OpenNebula Views OpenNebula Admin Group Admin Cloud User
  • 27. 27Installing and Basic Usage The Admin View OpenNebula Views OpenNebula Admin Group Admin Cloud User
  • 28. 28Installing and Basic Usage OpenNebula Views Configure your Cloud from the Admin perspective OpenNebula Admin Group Admin Cloud User
  • 29. 29Installing and Basic Usage Group Admin View Using Groups Hands on! Login as students-admin ●Create a student ●Assign Quotas
  • 30. 30Installing and Basic Usage User the Cloud as a Cloud User OpenNebula Views OpenNebula Admin Group Admin Cloud User
  • 31. 31Installing and Basic Usage Cloud View OpenNebula Views Hands on! Login as the student and instantiate a new VM ●Select the ttylinux template ●Network private ●Explore the VM actions. Power Off and Save VM ●With the oneadmin account see the new template and image ●Other options: SSH Key, Quotas, Settings
  • 32. 32Installing and Basic Usage Group Admin View Using Groups Hands on! Login as students-admin
  • 33. 33Installing and Basic Usage Explore Federation OpenNebula can scale by federation many OpenNebula instances. Scheduler The OpenNebula Scheduler is extremely flexible. Write your own rules you want to guarantee that your vms end up wherever you need them. OneGate Send custom Metrics to OpenNebula AppMarket Deliver appliances ready to be consumed CloudBursting Scale out your private resources to EC2 vOneCloud vCloud Director Replacement with al the OpenNebula Cloud benefits Other Features
  • 34. 34Installing and Basic Usage OneFlow Overview Managing Multi-tier services ● OneFlow allows users and administrators to define, execute and manage multi-tiered applications ● services composed of interconnected VMs with dependencies between them. ● each group of VMs is deployed and managed as a single entity -> so group and ACL management apply
  • 35. 35Installing and Basic Usage Service Life-Cycle Strategies Deployment Strategies • none: All roles are deployed at the same time • straight: Each Role is deployed when all its parent Roles are RUNNING Service is running when all the Roles are RUNNING. Running State A role will not be considered to be running unless all the VMs in that role report to OpenNebula that thy are running, if this checkbox is enabled: To report it, the VM will use a very simple HTTP request (curl, wget, …) and the OneGate token to authenticate.
  • 36. 36Installing and Basic Usage Managing Services Hands On – Template Creation
  • 37. 37Installing and Basic Usage Managing Services Hands On – Service Template and Frontend Role
  • 38. 38Installing and Basic Usage Managing Services Hands On – Service Template Database Master Role
  • 39. 39Installing and Basic Usage Managing Services Hands On – Instantiate the Template
  • 40. 40Installing and Basic Usage Managing Services Hands On – Service Information worker role will not be deployed until the parent role (frontend) reports that it’s ready. Update the frontend role using ONEGATE or updating the template curl -X "PUT" http://<onegate>/vm --header "X-ONEGATE-TOKEN: ..." --header "X-ONEGATE-VMID: ..." -d "READY = YES" $ onevm update <id> READY=YES ... Repeat for the worker role
  • 41. 41Installing and Basic Usage Managing Services Hands On – Manual Scaling Scale the worker node to 3
  • 42. 42Installing and Basic Usage Service Scaling Auto-Scaling based on Metrics Each role can have an array of elasticity_policies • Define an expression that will trigger a cardinality adjustment These expressions can use performance data from • The VM guest. Using the OneGate server, applications can send custom monitoring metrics to OpenNebula. • The VM, at hypervisor level (CPU, MEMORY, NET_{TX,RX})
  • 43. 43Installing and Basic Usage Service Scaling Auto-Scaling based on Schedule Combined with the elasticity policies, each role can have an array of scheduled_policies. These policies define a time, or a time recurrence, and a cardinality adjustment
  • 44. 44Installing and Basic Usage We Will Be Happy to Clarify Any Question Questions?