intro to ovirt - events.static.linuxfound.org

64
Virtualization Management the oVirt way Intro to oVirt Itamar Heim [email protected]

Upload: others

Post on 14-Feb-2022

21 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Intro to oVirt

Itamar [email protected]

Page 2: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

oVirt Workshop

● oVirt Workshops● Barcelona – 7-9 November 2012

http://kvmforumovirtworkshop2012.sched.org/● Wednesday – oVirt for Users● Thursday – oVirt for Integrators● Friday – oVirt for Developers

● Sunnyvale, California - 22-24 January 2013(hosted by NetApp)

Page 3: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Large scale, centralized management for server and desktop virtualization

Based on leading performance, scalability and security infrastructure technologies

Provide an open source alternative to vCenter/vSphere

Two key components

● Hypervisor -> oVirt Node

● Management Server -> oVirt Engine

What is oVirt?

Page 4: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Page 5: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Goals of the oVirt project

● Build a community around all levels of the virtualization stack – hypervisor, manager, GUI, API, etc.

● To deliver both a cohesive complete stack and discretely reusable components for open virtualization management

● Provide a release of the project on a well defined schedule

● Focus on management of the KVM hypervisor, with exceptional guest support beyond Linux

● Provide a venue for user and developer communication and coordination

Page 6: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Governance

● Merit based, open governance model

● Built using the best concepts taken from Apache and Eclipse Foundations

● Governance split between board and projects● oVirt Board● Multiple projects under the oVirt brand

Page 7: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

OPEN VIRTUALIZATION MANAGEMENT

Page 8: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

oVirt Node

● Standalone hypervisor● Small footprint ~ 170MB

● Customized 'spin' of Fedora + KVM

● 'Just enough' Fedora to run virtual machines

● Runs on all RHEL hardware with Intel VT/AMD-V CPUs

● Easy to install, configure and upgrade

● PXE boot, USB boot, CD or Hard drive

Page 9: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

OVF Import/Export Import and export VMs and templates using OVF files

V2V & P2V Convert Physical servers or VMs from Vmware and Xen

Feature Description

High Availability Restart guest VMs from failed hosts automatically on other hosts

Live Migration Move running VM between hosts with zero downtime

System Scheduler Continuously load balance VMs based on resource usage/policies

Power Saver Concentrate virtual machines on fewer servers during off-peak hours

Maintenance Manager No downtime for virtual machines during planned maintenance windows. Hypervisor patching

Image Management Template based provisioning, thin provisioning and snapshots

Monitoring & Reporting For all objects in system – VM guests, hosts, networking, storage etc.

Management Features

VDI Virtual Desktop Infrastructure for Windows and Linux

Power User Portal Self Service Portal

Page 10: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

How to Start?

● Build from source..

● Or, just install● yum install ovirt-engine● ./ovirt-setup● Add managed hosts

● Or, New: All-in-one live usbhttp://wiki.ovirt.org/wiki/OVirt_Live

Page 11: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Administration Console

Page 12: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Search Auto Complete

Page 13: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Search Results

Page 14: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Add Host As Simple As

Page 15: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Power Management

Page 16: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Setup Networks: Dialog

Page 17: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Setup Networks: Create Bond

● Drag an interface on top of another interface to bond the interfaces or to extend an existing bond

Page 18: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Setup Networks: Create Bond

● Drag an interface on top of another interface to bond the interfaces or to extend an existing bond

Page 19: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Setup Networks: Edit Bond

● Click the pencil icon to edit bond configuration

Page 20: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Setup Networks: Attach Network

● Drag a network from the unassigned networks list to the interface/bond to be attached

Page 21: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Configure Storage Once for Entire Cluster

Page 22: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Extend with More LUNs as Needed

Page 23: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Guide Me Dialogs

Page 24: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Add Servers or Desktops

Page 25: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Even Windows via Sysprep

Page 26: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Console Details (SPICE or VNC)

Page 27: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Host Aspects

Page 28: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

High Availability

Page 29: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Control Allocated Resources (Disk, Memory)

Page 30: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Boot Devices

Page 31: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Advanced Options via Custom Properties

Page 32: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Page 33: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Assign Permissions to Objects by Roles

Page 34: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Define Your Own Roles

Page 35: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Gluster Management

Page 36: Intro to oVirt - events.static.linuxfound.org

Create Volume – Add Bricks

Page 37: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

User Portal

Page 38: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Self Provisioning Portal

Page 39: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

User Resource View

Page 40: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

oVirt Reports

Page 41: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

oVirt Reports

Page 42: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

oVirt Guest Agent

● The guest agent provides additional information to oVirt Engine, such as guest memory usage, guest ip address, installed applications and sso.

● Python code, available for both linux and windows guests

● Communication is done over virtio-serial

● SSO for windows is based on a gina module for XP and a credential provider for windows 7

● SSO for Linux is based on a PAM module with support for both KDE and Gnome

Page 43: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

RESTful Web Service

● Stands for Representational State Transfer

● Modeling entity actions around HTTP verbs● GET● PUT● POST● DELETE

● Still uses 'actions' for some state changes

● Self describes – entity navigation and actions

Page 44: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

REST API

Page 45: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Hosts Collection

Page 46: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Host networks collection

Page 47: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Python SDK

- Creating the proxy

- Listing all collections

- Listing collection's methods.

- Querying collection with oVirt search engine.

- Querying collection by custom constraint.

- Querying collection for specific resource.

- Accessing resource methods and properties.

Page 48: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

oVirt CLI

Page 49: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

CLI - Smart Auto Completion

Page 50: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

CLI - Smart Help

Page 51: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

CLI – Create

Page 52: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

CLI – Update

Page 53: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

CLI – Delete

Page 54: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

libvirtVDSM

Host | Node

libvirtVDSM

Host | Node

Linux/Windowsclient

Linux/Windowsclient

Shared StorageFC/iSCSI/NFS

Shared StorageFC/iSCSI/NFS

Linux VMLinux VM Win VMWin VM

oVirtEngineJava

oVirtEngineJava

SDK/CLI python

SDK/CLI python

REST

REST

ADAD

LDAPLDAP

Local StorageLocal Storage

Guest agentGuest agent Guest agentGuest agent

Admin Portalgwt

Admin Portalgwt

User Portalgwt

User Portalgwt

PostgresPostgres

oVirt High Level Architecture

SPICE

Page 55: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

virto-serial

Guest AgentGuest Agent

QEMU/KVMQEMU/KVM

HostConfig & Monitor

HostConfig & Monitor

Storage Config & Monitor

Storage Config & Monitor

Network Config & Monitor

Network Config & Monitor

VMConfig & Monitor

VMConfig & Monitor

AutoRegisterAuto

Register

KSMKSM

oVirt Host Agent - VDSM

libvirtlibvirt

hookshooks

Page 56: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Hooks

● “Hook” mechanism for customization

● Allows administrator to define scripts to modify VM operation● eg. Extend or modify VM configuration

Page 57: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Hooks

Page 58: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Hooks● Hook scripts are called at specific VM lifecycle events

● VDSM (management agent) Start

● Before VM start

● After VM start

● Before VM migration in/out

● After VM migration in/out

● Before and After VM Pause

● Before and After VM Continue

● Before and After VM Hibernate

● Before and After VM resume from hibernate

● Before and After VM set ticket

● On VM stop

● On VDSM Stop

● Hooks can modify a virtual machines XML definition before VM start

● Hooks can run system commands – eg. Apply firewall rule to VM

New in 3.1

Page 59: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Hooks

Page 60: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Hooks

Hooks installed in /usr/libexec/vdsm/hooks

Page 61: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Hooks

Page 62: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

Release Cadence

● 02/2012 – oVirt 3.0 released

● 08/2012 – oVirt 3.1 released

● 12/2012 – oVirt 3.2 planned

● oVirt Workshops● Barcelona – 7-9 November 2012

● Wednesday – oVirt for Users● Thursday – oVirt for Integrators● Friday – oVirt for Developers

● California - 22-24 January 2013

Page 63: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

How To Contribute or Download

● Website and Repository:

● http://www.ovirt.org● http://www.ovirt.org/wiki● http://www.ovirt.org/project/subprojects/

● Mailing lists:

● http://lists.ovirt.org/mailman/listinfo● IRC:

● #ovirt on OFTC

Page 64: Intro to oVirt - events.static.linuxfound.org

Virtualization Management the oVirt way

THANK YOU !

http://www.ovirt.org