of 23 /23
OpenStack and Xen Stefano Stabellini & Anthony Perard Feb 2015

Configuring OpenStack to Use the Xen Project Hypervisor

Embed Size (px)

Text of Configuring OpenStack to Use the Xen Project Hypervisor

  • OpenStack and Xen

    Stefano Stabellini & Anthony Perard

    Feb 2015

  • 2014 Citrix. Confidential. 2

    Why Xen?

    Xen is a type-1 hypervisor

    small footprint (Less then 100K LOC)

    GPLv2

    Powers the largest public cloud in production (>50% of vendors listed in Gartner 2014 Cloud magic

    quadrant, more in terms of hosts)

  • 2014 Citrix. Confidential. 3

    Make Xen the best hypervisor for OpenStack

  • 2014 Citrix. Confidential. 4

    OpenStack

  • 2014 Citrix. Confidential. 5

    OpenStack

  • 2014 Citrix. Confidential. 6

    OpenStack

  • 2014 Citrix. Confidential. 7

    OpenStack

  • 2014 Citrix. Confidential. 8

    OpenStack

  • 2014 Citrix. Confidential. 9

    OpenStack

  • 2014 Citrix. Confidential. 10

    OpenStack

  • 2014 Citrix. Confidential. 11

    OpenStack

  • 2014 Citrix. Confidential. 12

    Status and Goals

    Xen via Libvirt is currently in Group C

    Goals:

    Xen should be a great platform for OpenStack production deployments Get Xen via Libvirt in Group A within 1 year

    Xen should be a great platform for OpenStack development and hacking devstack should deploy Xen and OpenStack

  • 2014 Citrix. Confidential. 13

    From 0 to Xen and OpenStack

    1. Install Ubuntu 14.04 LTS

    2. Install Xen apt-get install xen-hypervisor-4.4-amd64

    3. git clone devstack && configure it to use Xen LIBVIRT_TYPE=xen

    4. ./stack.sh

  • 2014 Citrix. Confidential. 14

    From 0 to Xen and OpenStack What we actually did

    1. Install Ubuntu 14.04 LTS

    2. Install Xen apt-get install xen-hypervisor-4.4-amd64

    3. git clone devstack && configure it to use Xen LIBVIRT_TYPE=xen

    4. ./stack.sh

    5. Fix Bugs!!

  • 2014 Citrix. Confidential. 15

    Bugs

    2 Xen related bug in Nova

    1 Xen related bug in Libvirt

    Stability issues with libvirt 1.2.2-0ubuntu13.1.8 under stress

  • 2014 Citrix. Confidential. 16

    Bugs

    2 Xen related bug in Nova

    1 Xen related bug in Libvirt

    Stability issues with libvirt 1.2.2-0ubuntu13.1.8 under stress

    FIXED!

  • 2014 Citrix. Confidential. 17

    Bugs

    2 Xen related bug in Nova

    1 Xen related bug in Libvirt

    Stability issues with libvirt 1.2.2-0ubuntu13.1.8 under stress

    FIXED!

  • 2014 Citrix. Confidential. 18

    Latest Update

    2 patches under review for Nova

    1 patch upstream in Libvirt

    everything works out of the box! Using the latest OpenStack and libvirt trees

    Tempest runs and *all* tests pass!

  • 2014 Citrix. Confidential. 19

    Tuning OpenStack and Xen

    Dom0 Memory: 1-4G dom0_mem=1024M

    Dom0 vcpus: 4 dom0_max_vcpus=4 dom0_vcpus_pin

    use LVM for local storage VOLUME_GROUP=volume_group_name

    PV vs HVM guests nova image-meta set vm_mode=HVM

    nova image-meta delete vm_mode

  • 2014 Citrix. Confidential. 20

    More information

    www.xenproject.org

    wiki.xenproject.org wiki.xenproject.org/wiki/Tuning_Xen_for_Performance

    wiki.xenproject.org/wiki/OpenStack

    http://lists.xenproject.org/mailman/listinfo/xen-devel

  • Demo

  • 2014 Citrix. Confidential. 22

    Questions?

  • 2014 Citrix. Confidential. 23

    WORK BETTER. LIVE BETTER.