libvirt 2011

Embed Size (px)

Citation preview

  • 8/19/2019 libvirt 2011

    1/19

    Libvirt: avirtualization APIand beyond

    Daniel [email protected]

    http://veillard.com/talks/CLKLinux!"".pd# 

    http://veillard.com/talks/CLKLinux2011.pdfhttp://veillard.com/talks/CLKLinux2011.pdf

  • 8/19/2019 libvirt 2011

    2/19

    Libvirt pro$ect %oals

    Web site: libvirt.org

    Virtualization library: manage guest on one node

    Share the application stack between hypervisors

    Long term stability and compatibility o !"# and !$# "rovide security and remote access %out o the bo&'

    (&pand to management !"#s )*ode+ Storage+ *etwork,

    Node

    Hypervisor

    GuestGuestGuest

    http://libvirt.org/http://libvirt.org/

  • 8/19/2019 libvirt 2011

    3/19

    Limit duplication o# e##orts

    XenVMWare   LXC   KVM

    VIX   Xen-API   Libvirt

    Apps

    Linux

    AppsApps

    Applications are costly to write and maintain !

    VBox

  • 8/19/2019 libvirt 2011

    4/19

    Pro$ect current status

    Started -/+ 0 years ago● - commiters+ 1 ull time 2ed 3at persons

    ● !ctive list [email protected]

    ● ! release every month

    ● -45 git commits6month+ .7.0 Support or most hypervisors e&cept 8icrosot

    Activity

    Years2005   2010  2011

    https://www.redhat.com/mailman/listinfo/libvir-listhttps://www.redhat.com/mailman/listinfo/libvir-list

  • 8/19/2019 libvirt 2011

    5/19

    Architecture o# libvirt

    !pplication links to the library

     9he libvirt daemon talks to the hypervisor onthe node

    2emote protocol is tunneled securely

    Libvirt daemon

    qemu-kvmqemu-kvm

    Monitor or QMPlibvirt

    App

     R e m o t

     e

     p r o t o c o lAPI

    API

    Node

  • 8/19/2019 libvirt 2011

    6/19

    Current set o# APIs &libvirt.h'

    See the hypervisor support page or the ull list

    ,Domain state handling )save+ restore+migration+ core...,

    -,*ode and guests resource usage )memory+network+ disk,

    5,Security+ audit and credential handling

    ;,Domain control )deine+ create+ shutdown...,

    /, 9uning )scheduler+ memory+ #6

  • 8/19/2019 libvirt 2011

    7/19

    Current set o# APIs &continued'

    /,*=8! support )placement+ topology+ cellsusage+ pinning,

    0,Dynamic or cold device attach and removal

    1,*etworking )virtual network+ interaces+iltering,

    >,Storage handling )pools and volume,

    7,Devices handling )enumeration+ attach+detach+ reset,

    ,!synchronous events callbacks

  • 8/19/2019 libvirt 2011

    8/19

    (ecent )ork and *+,+

    ,Virtual switches ).7.;,

    -,Lib&enlight and L? driver improvements

    5,Airst version o 8icrosot hypervisor driver

    ;,Speciic support or B(mu low level access).7. C event support,

    ,Aine grained !L or access control

    -,$etter desktop integration

  • 8/19/2019 libvirt 2011

    9/19

    +n the )ork and *+,+ &stora%e'

    #ntegration with lock managers ).7.;,

    Live snapshots ).7.0,

    #mprovements on storage provisionning

    Live block migration )started .7.-,

    $etter L?+ i.e. beyond resource control to

    eective containment

    Dynamic control and tuning o the daemon

  • 8/19/2019 libvirt 2011

    10/19

    Kernel related support

    V8 improvements

    ● "erormances )virtual #

  • 8/19/2019 libvirt 2011

    11/19

  • 8/19/2019 libvirt 2011

    12/19

    Libvirt stack overvie)

    libvirt

    netcf cgroup   devmap storage iptables ebtables

    libguestfs   AMQPBindings CIM virsh

    Xen KVM VBox VMW   LXC

    Tools   Desktop   Mngt   Cloud

    Web ?

  • 8/19/2019 libvirt 2011

    13/19

    Prospective )ork 

    !ccess to guest rom the !"#

    ● =sing matahari or virt4agent )kvm,

  • 8/19/2019 libvirt 2011

    14/19

    Prospective )ork &continued'

    3igher level !"#s

    ● Deine policies and use those or simpler!"#s

  • 8/19/2019 libvirt 2011

    15/19

    +virt pro$ects

    =mbrella proGect or virt and V8 related developments

    ● http:66www.ovirt.org6

    ● #n development+ initial Workshop *ov 45

    #nrastructure+ governance rules●

  • 8/19/2019 libvirt 2011

    16/19

    A call to the %eeks

    Some thoughts on

  • 8/19/2019 libvirt 2011

    17/19

  • 8/19/2019 libvirt 2011

    18/19

    4atahari

    !gents and !"#s running in the guest:

    ● "rovide services or management

    ● ore agent )gather ino+ network+ services,

    ● Aramework or adding new !"# on B8A

    =sing !8B" protocol

    ross platorm: Linu& and Windows

     9ransport )Standard #"+ virtio4serial guests, https:66github.com6matahari6matahari6wiki

    https://github.com/matahari/matahari/wikihttps://github.com/matahari/matahari/wiki

  • 8/19/2019 libvirt 2011

    19/19

    ,eltacloud &Cloud APIs'

    2(S9 web based !"# to e&isting louds

    ● Support or all maGor cloud providers

    ● (-+ 23(V48+ 2ackspace ...