opennebula techday waterloo 2015 - opennebula is evolving fast

19
Techday Ontario 2015 @BlackBerry Waterloo, ON Canada, July 10th © OpenNebula Project. Creative Commons Attribution-NonCommercial-ShareAlike License OpenNebula is Evolving… Fast! Javier Fontán 1

Upload: opennebula-project

Post on 14-Aug-2015

146 views

Category:

Technology


1 download

TRANSCRIPT

Techday Ontario 2015 @BlackBerryWaterloo, ON Canada, July 10th

© OpenNebula Project. Creative Commons Attribution-NonCommercial-ShareAlike License

OpenNebula is Evolving…Fast!

Javier Fontán

1

Agenda

● OpenNebula 4.14● Disk and image snapshotting● Recovery mechanisms for VMs● Disk showback● GPU devices from a VM● Sunstone Refactor● Cloning of running VMs● Import running VMs● Migration of VM across Datastores● Cold Attach/Detach NIC and disk.● Image Resize

2

3

Great A'Tuin

the turtle comes, swimming slowly through the interstellar gulf, hydrogen frost on his ponderous limbs, his huge and ancient shell pocked with meteor craters. Through sea-sized eyes that are crusted with rheum and asteroid dust He stares fixedly at the Destination.

Terry Pratchett - The Colour of Magic

4

OpenNebula 4.14

● Great A'Tuin

● Last one before 5.0

● Big Release (lots of changes)

● Compatibility Guide

● Beta end of July. Final release early September

5

Disk and image snapshotting

● Disk snapshots are a new entity

● Create, Revert, Delete○ running, poweroff, suspended

● Subject to Quotas

● Monitor snapshot size

6

Disk and image snapshotting

● Can be exported to a new image○ $ onevm disk-saveas

○ STATES: running, poweroff, suspended○ --deferred is deprecated

● Persistent images can have snapshots○ operations: flatten, revert, delete

● 3 implementations: Ceph, FS (plain files) and Qcow2,

7

Disk Showback

● OpenNebula <= 4.12○ CPU_COST○ MEMORY_COST

● New DISK_COST is introduced

● It's a MB/hour metric

● Defined in the template

8

Recovery mechanisms for VMs

● OpenNebula is much more recoverable

● Any state can now be recovered○ --success

○ --failure

○ --retry

○ --interactive

● FAILED state is now:BOOT_FAILURE, PROLOG_MIGRATE_POWEROFF_FAILURE, etc...

9

GPU Devices

● GPUs discovered by the monitorization probes

● Can be added to a template

● Passthrough to the VM

● Subject to Quotas

10

Sunstone Rewrite

● Modularization● Templates System

$ git diff --stat release-4.12 master src/sunstone | tail -n1

823 files changed 273254 insertions(+), 201083 deletions(-)

11

Sunstone Rewrite

Zones-tab.jsOpenNebula 4.12: 390 lines

Before...

more pages...

12

Sunstone Rewrite

Zones-tab.jsOpenNebula 4.14: 36 lines

After...

more pages...

13

Cloning of running VMs

Provides the ability to clone a VM along with its reference disks and networks.

$ onevm save <vmid> <name>

Clones the VM's source Template,

replacing the disks with live snapshots

of the current disks. The VM capacity and

NICs are also preserved

States: POWEROFF

14

Import of Existing VMs

● KVM, Xen, AWS, Azure and vCenter● The monitoring probes detect wilds● wild VMs can be imported● The life-cycle can be managed

Limitations:● Delete --recreate● Undeploy (and Undeploy --hard)● Migrate (and Migrate --live)● Stop

15

Migration of VMs datastores

The System datastore of a VM can be migrated.

$ onevm migrate <range|vmid_list>

<hostid> [<datastoreid>]

16

Cold Attach / Detach of NICs and DISKS

These operations can now be executed in the POWEROFF state.

$ onevm disk-attach <vmid>

Attaches a disk to a running VM. When

using --file add only one

DISK instance.

States: RUNNING, POWEROFF

valid options: file, image, target,

cache, prefix

17

Disk Resize

Possibility to resize the size of a VM disk when instantiating the VM.

This does not perform the resize within the Guest OS, it will only resize the container.

18

Questions?We Will Be Happy to Answer any Question

Building your Enterprise-ready Cloud with OpenNebula

@opennebula

You are missing a lot if you do not upgrade!

19