08448380779 Call Girls In Civil Lines Women Seeking Men
Â
Xen Cloud Platform at Build a Cloud Day at SCALE 10x
1. Xen Cloud Platform
Lars Kurth
Xen Community Manager
lars.kurth@xen.org
@lars_kurth
@xen_com_mgr
2. A Brief History of Xen in the Cloud
Late 90s
XenoServer Project
(Cambridge Univ.)
Global Public Computing
The XenoServer project is building a public âThis dissertation proposes a new distributed computing
infrastructure for wide-area distributed paradigm, termed global public computing, which allows
computing. We envisage a world in which any user to run any code anywhere. Such platforms price
XenoServer execution platforms will be computing resources, and ultimately charge users for
scattered across the globe and available for resources consumed.â
any member of the public to submit code
for execution. Evangelos Kotsovinos, PhD dissertation, 2004
3. A Brief History of Xen in the Cloud
Late 90s Nov â02 Oct â03 â06 â08 â09 â11
XenoServer Project Amazon EC2 XCP 1.x
(Cambridge Univ.) and Slicehost Xen in Linux
launched Kronos
Xen Xen Presented Rackspace Cloud Mgmt
Repository at SOSP Cloud
Published
XCP
Announced
5. Xen.org
⢠Guardian of Xen Hypervisor and related OSS Projects
⢠Xen project Governance similar to Linux Kernel
⢠Projects
â Xen Hypervisor (led by Citrix)
â Xen Cloud Platform aka XCP (led by Citrix)
â Xen ARM (led by Samsung)
â PVOPS : Xen components and support in Linux Kernel (led by Oracle)
6. Xen Contributions & Vendors
By Change Sets *) 2011 Contributions by KLOC **) ***)
1%
5000.0
3%
4500.0 5%
6%
4000.0 Citrix XCP
28%
3500.0 Citrix HV
Samsung*
3000.0 11%
PVOPS Novell
2500.0 Oracle
XCP
2000.0 AMD
Xen HV
Individual
1500.0 13% Intel
1000.0 18% Misc
500.0
0.0
15%
2002 2003 2004 2005 2006 2007 2008 2009 2010 2011
*) Does not count activity on XenARM *) Activity on Development branch (not yet in xen-unstable)
(as not yet in an official repo) **) Includes PVOPS
***) Figures up to end of Q3 2011
7. Community & Ecosystem Map
xen.org/community/projects
Research
A
Xen
D
Hosting
Projects
Vendors
D
# XCP
XCP
Products s Projects
Xen Consulting
Products People
Consulting
Firms
9. Basic Xen Concepts
Control Domain aka Dom0
XL, XM (deprecated) ⢠Dom0 kernel with drivers
⢠Xen Management Toolstack
VMn ⢠Trusted Computing Base
VM1
Guest Domains
Control domain One or more VM0
(dom0) driver, stub or ⢠Your apps
Dom0 Kernel
service domains Guest OS
and Apps
⢠E.g. your cloud management stack
Driver/Stub/Service Domain(s)
Scheduler, MMU Xen Hypervisor
⢠A âdriver, device model or control
Host HW service in a boxâ
I/O Memory CPUs
⢠De-privileged and isolated
⢠Lifetime: start, stop, kill
11
10. PV Domains & Driver Domains
Control domain Guest VMn Driver Domain
Linux PV guests have limitations:
(dom0) e.g. ⢠limited set of virtual hardware
Apps ⢠Disk
⢠Network Advantages
PV Back Ends PV Front Ends PV Back End ⢠Fast
⢠Works on any system
HW Drivers HW Driver
(even without virt extensions)
Guest OS Dom0 Kernel*
Driver Domains
Xen Hypervisor ⢠Security
⢠Isolation
I/O Memory CPUs
Host HW ⢠Reliability and Robustness
*) Can be MiniOS
12
11. HVM & Stub Domains
Dom0 Guest VMn Stubdomn Guest VMn
Disadvantages
⢠Slower than PV due to Emulation
(mainly I/O devices)
IO Emulation IO Emulation
Device Model Device Model Advantages
⢠Install the same way as native Linux
IO Event
Stub Domains
IO Event VMEXIT Mini OS VMEXIT
⢠Security
Xen Hypervisor ⢠Isolation
⢠Reliability and Robustness
Host HW
13
12. PV on HVM
⢠A mixture of PV and HVM
⢠Linux enables as many PV interfaces HVM PV on PV
as possible HVM
Boot Sequence Emulated Emulated PV
⢠This has advantages
Memory HW HW PV
â install the same way as native
Interrupts, Emulated PV* PV
â PC-like hardware Timers &
â access to fast PV devices Spinlocks
â exploit nested paging Disk & Network Emulated PV PV
â Good performance trade-offs Privileged HW HW PV
Operations
⢠Drivers in Linux 3.x
*) Emulated for Windows
13. Xen and the Linux Kernel
Xen was initially a University research project
Invasive changes to the kernel to run Linux as a PV guest
Even more changes to run Linux as dom0
14. Xen and the Linux Kernel
Xen support in the Linux kernel not upstream
Great maintenance effort on distributions
Risk of distributions dropping Xen support
Xen harder to use
15. Current State
PVOPS Project
Xen Domain 0 in Linux 3.0+
(it is functional but not yet fully optimized)
On-going work to round out the feature set in Linux 3.2 +
17. XCP
ďŹ Complete vertical stack for
server virtualization
ďŹ Distributed as a closed appliance
(ISO) with CentOS 5.5 Dom0,
misc DomUâs, network & storage
support and Xen API
ďŹ Open source distribution of Citrix
XenServer
18. XCP Overview
⢠Open source version of Citrix XenServer
ď§ wiki.xen.org/wiki/XCP/XenServer_Feature_Matrix
⢠Enterprise-ready server virtualization and cloud platform
ď§ Extends Xen beyond one physical machine and other functionality
ď§ Lots of other additional functionality compared to Xen
⢠Built-in support and templates for Windows and Linux guests
⢠Datacenter and cloud-ready management API
ď§ XenAPI (XAPI) is fully open source
ď§ CloudStack and OpenStack integration
⢠Open vSwitch support built-in
19. Xen vs. XCP
Xen XCP (up to 1.1)
Hypervisor: latest Hypervisor: lagging
Dom0 OS: CentOS, Debian, Fedora, NetBSD, Dom 0 OS: CentOS 5.5
OpenSuse, RHEL 5.x, Solaris 11, Suse
Dom 0: 32 and 64 bits Dom 0: 32 bits
Linux 3 PVOPS Dom0: Yes Linux 3 PVOPS Dom0: No
Toolstack: XM (deprecated), XL or Libvirt Toolstack: XAPI + XE â lots of additional functionality
Storage, Network, Drivers: build and get yourself Storage, Network, Drivers: integrated with Open
vSwitch, multiple storage types & drivers
Configurations: Everything Configurations: constrained by XAPI, some Xen
functionality is disabled
Usage Model: Do it yourself Usage Model: Shrink wrapped and tested
Distribution: Source or via LinuxUnix distributions Distribution: ISO
21
20. Project âKronosâ: XAPI on Linux
⢠Make the XAPI toolstack independent of CentOS 5.5
⢠Extend the delivery model
â Deliver Xen, XAPI and everything in between (storage manager, network
support, OCaml libs, etc.) via your favorite Linux distro
âapt-get install xcp-xapiâ or âyum install xcp-xapiâ
⢠Debian
⢠Next: Ubuntu 12.04 LTS
⢠Later: other major Linux distro (Fedora, CentOS, etc.)
â Volunteers are welcome!
21. XCP vs. XAPI on Linux
XCP (up to 1.1) XAPI on Linux
Hypervisor: lagging Hypervisor: same as parent Linux distro
Dom 0 OS: CentOS 5.5 Dom 0 OS: Debian, Ubuntu, âŚ
Dom 0: 32 bits Dom 0: 32 and 64 bits
Linux 3 PVOPS Dom0: No Linux 3 PVOPS Dom0: Yes
Toolstack: XAPI + XE â lots of additional functionality Same as XCP
Storage, Network, Drivers: integrated with Open Storage, Network, Drivers: Get them yourself, some
vSwitch, multiple storage types & drivers are available as Linux packages
Configurations: constrained by XAPI, some Xen Same as XCP
functionality is disabled
Usage Model: Shrink wrapped and tested Usage Model: Do it yourself
Distribution: ISO Distribution: via host Linux distribution
23
22. XCP/XAPI Vision & Next Steps
ďŹ XCP & XAPI for Linux are the configuration of choice for clouds
â Optimized for cloud use-cases
â Optimized for usage patterns in cloud projects
â XAPI toolstack is more easily consumable
ďŹ We are doing this by âŚ
â XenServer is built from XCP (almost there)
â Track unstable Xen hypervisor and Linux kernels aggressively (almost there)
â Deliver into Linux distributions : more flexibility
â Exploit advanced Xen security features
â Fully open development model (build & test capability)
23. XCP 1.5 (soon)
⢠Architectural Improvements: Xen 4.1, GPT, smaller Dom0
⢠GPU pass through: for VMs serving high end graphics
⢠Performance and Scalability:
â 1 TB mem/host
â 16 VCPUs/VM, 128 GB/VM
⢠Networking: Open vSwitch (default), Active-Backup NIC Bonding
⢠Virtual Appliance: multi-VM and boot sequenced, OVF support
⢠More guest OS templates
25. XAPI Functionality Overview
⢠VM lifecycle: live snapshots, checkpoint, migration
⢠Resource pools: live migration, auto configuration, disaster recovery
⢠Flexible storage and networking
⢠Event tracking: progress, notification
⢠Upgrade and patching capabilities
⢠Real-time performance monitoring and alerting
⢠Full list: wiki.xen.org/wiki/XCP/XenServer_Feature_Matrix
26. XAPI from 30000 Feet
xen.org/files/XenCloud/ocamldoc/apidoc
Storage
SM
Network
BBD_
host_cpu SR metrics
PDB VDI
user session host task
VBD
pool
crash
Host_ event
dump
metrics PIF VM
network VIF VM_
metrics
PIF_ VM_guest_
metrics metrics
console
task
27. XAPI: What is it?
⢠XAPI is the backbone of XCP
â Provides the glue between all components
â Is the backend for all management applications
⢠Call it XAPI or XenAPI
⢠It's a XML-RPC style API, served via HTTPS
â Provided by a service on every XCP dom0 host
â Designed to by highly programmable
â API bindings for many languages: .NET, Java, C, Powershell, Python
⢠XAPI is Extensible via plugins
â E.g. used by OpenStack
28. Open vSwitch
⢠Software switch, similar to:
â VMware vNetwork Distributed Switch
â Cisco Nexus 1000V
⢠Distribution agnostic. Plugs right into Linux kernel.
⢠Reuses existing Linux kernel networking subsystems.
⢠Backwards-compatible with traditional userspace tools.
⢠Free and Open Source http://openvswitch.org/
29. Why use Open vSwitch with Cloud?
⢠Automated control: OpenFlow
⢠Multi-tenancy
⢠Monitoring and QoS
30. XAPI Management Options
⢠XAPI frontend command line tool: XE (tab-completable)
⢠Desktop GUIs
o Citrix XenCenter (Windows-only)
o OpenXenManager (open source cross-platform XenCenter clone)
⢠Web interfaces
o Xen VNC Proxy (XVP)
ď§ lightweight VM console only
ď§ user access control to VMs (multi-tenancy)
o XenWebManager (web-based clone of OpenXenManager
⢠XCP Ecosystem:
o xen.org/community/vendors/XCPProjectsPage.html
o xen.org/community/vendors/XCPProductsPage.html
33. Cloud VM vs. Cloud Package(s) in Dom0
Cloud VM (DomU) Cloud Package(s) in Dom0
Pros Pros
⢠Isolation of cloud VM ⢠Simple install
⢠Security properties ⢠Flexibility
⢠Pre-package + appliance ⢠Simpler overall
Cons Cons
⢠Slightly more complex ⢠Less isolation
⢠Less flexible ⢠Cloud node is a potential entry
point to compromise Dom0
34. XCP & Xen Resources
⢠IRC: ##xen @ FREENODE
⢠Mailing List: xen-users & xen-api
⢠Wiki: wiki.xen.org
â Beginners & User Categories
⢠Excellent Tutorials
â A day worth of material @ xen.org/community/xenday11
37. Security and the Next Wave of Virtualization
⢠Security is key requirement for Cloud
⢠Security is the primary goal of virtualization on the Client
â Desktop, Laptops, Tablets & Smart Phones
⢠Maintaining isolation between VMs is critical
â Spatial and Temporal isolation
â Run multiple VMs with policy controlled information flow
⢠E.g. Personal VM; Corporate VM; VM for web browsing; VM for banking
38. Architecture Considerations
Type 1: Bare metal Hypervisor Type 2: OS âHostedâ
A pure Hypervisor that runs directly on the A Hypervisor that runs within a Host OS and hosts
hardware and hosts Guest OSâs. Guest OSâs inside of it, using the host OS services
to provide the virtual environment.
VMn User-level VMM VMn
VM1 User
VM1
Apps
VM0 Device Models
VM0
Guest OS Guest OS
and Apps and Apps
Host OS
Scheduler Hypervisor
Ring-0 VM Monitor
Device Drivers/Models Device Drivers âKernel â
MMU
Host HW Host HW
I/O Memory CPUs I/O Memory CPUs
Provides partition isolation + reliability, Low cost, no additional drivers
higher security Ease of use & installation
39. Xen: Type 1 with a Twist
Control domain
ď Thin hypervisor
(dom0) ⢠Functionality moved to Dom0
Device Models VMn
ď Using Linux PVOPS
VM1 ⢠Take full advantage of PV
Drivers
VM0 ⢠PV on HVM
Guest OS ⢠No additional device drivers (Linux
Linux, BSD, etc. and Apps
3.x dom0)
Hypervisor
Scheduler MMU XSM
ď In other words
Host HW ⢠low cost (drivers)
I/O Memory CPUs
⢠Ease of use & Installation
⢠Isolation & Security
45
40. Xen Security & Robustness Advantages
⢠Even without Advanced Security Features
â Well-defined trusted computing base
(much smaller than on type-2 hypervisor)
â No extra services in hypervisor layer
⢠More Robustness: Mature, Tried & Tested, Architecture
⢠Xen Security Modules (or XSM)
â Developed and contributed to Xen by NSA
â Generalized Security Framework for Xen
â The Xen equivalent of SELinux
46
41. Advanced Security: Disaggregation
⢠Split Control Domain into Driver, Stub and Service Domains
â Each contains a specific set of control logic
â See: âBreaking up is hard to doâ @ Xen Papers
⢠Unique benefit of the Xen architecture
â Security: Minimum privilege; Narrow interfaces
â Performance: lightweight, e.g. Mini OS directly on hypervisor
â Robustness: ability to safely restart parts of the system
â Scalability: more distributed system (less reliable on Dom0)
42. Example: Network Driver Domain for HA
⢠Detect failure e.g.
350
â Illegal access
300
â Timeout 250
⢠Kill domain, restart 200
150
â E.g. Just 275ms outage from
100
failed Ethernet driver
50
⢠Auto-restarts to 0
0 5 10 15 20 25 30 35 40
enhance security time (s)
43. Qubes OS / XenClient XT
⢠First products configured to take advantage of the security
benefits of Xenâs architecture
⢠Isolated Driver Domains
⢠Virtual hardware Emulation Domains
⢠Service VMs (global and per-guest)
⢠Xen Security Modules
44. Advanced XenClient Architecture
Per host/device Per guest
Service VMs Service VMs
VPN Isolation
Control Domain
Management
VPN Isolation
User VM User VM
Emulate
Emulation
Device
Network
Isolation
Domain
Device
Policy Granularity Policy Granularity
Xen Hypervisor
Xen Security Modules
VT-d TXT
Intel vPro Hardware
VT-x AES-NI
45. BUTâŚ
⢠Today, XCP and commercial Xen based Server products
â Do not make use of XSM
â Do not make use of Advanced Security Features (Disaggregation)
⢠Most of these features are poorly documented on xen wiki
⢠In XCP, work has started to add these features
â Various articles of how this may be done on the xen wiki
â Hopefully more information soon
⢠Commitment on improving docs for Security, Reliability & Tuning
47. ⢠Designed for the Cloud : many advantages for cloud use!
â Security: Small surface of attack, Isolation & Advanced Security Features
â Resilience, Robustness & Scalability
⢠Widely used by Cloud Providers
⢠XCP & XAPI
â Ready for use with cloud orchestration stacks
â XCP and XAPI on Linux: flexibility and choice
â Lots of additional improvements for cloud coming in 2012
⢠Flexibility and choice of Usage Models
â Also one of the challenges for Xen
⢠Catching up on âEase of deployment and getting startedâ
⢠Open Source with a large community and eco-system
48. Shameless Marketing
Vendors in the Xen community are hiring!
Vendors in the Xen community are hiring!
Vendors in the Xen community are hiring!
xen.org/community/jobs.html