Xen Expert DaysVirtualization with XenSUSE Linux Enterprise Server 10Ralf DannertTechnology [email protected]
© Novell Inc. All rights reserved 10 SLES 10 VM Server SLES 9 and Windows XP - Fully Virtualized VMs
© Novell Inc. All rights reserved 11 Xen Technology BackgroundOriginally a research project from University of CambridgeOpen sourceXen 2.0 released
© Novell Inc. All rights reserved 12 Xen Community TerminologyDomain: A container for a running virtual machine. Colloquially, the VM itself.Domai
© Novell Inc. All rights reserved 13 Full & Paravirtualization OverviewVirtual Machine MonitorHW PlatformVirtual MachineOperating SystemAppsVirt
© Novell Inc. All rights reserved 14 Novell TerminologyFully Virtual: A VM mode that can run a native, unmodified operating system by emulating all
© Novell Inc. All rights reserved 15 Privilege RingsXen runs at ring 0 (highest privilege)All domains run at rings 1 - 3.• Kernel is ring 1• User-sp
© Novell Inc. All rights reserved 16 Hardware assisted virtualization•VT Computer•run multiple OS concurrently•protected execution environments•priv
© Novell Inc. All rights reserved 17 Extending Intel Virtualization Technology•support for I/O device virtualization–direct I/O virtualization to th
© Novell Inc. All rights reserved 18 Full Virtualization Mode on VTusing qemu-dm ●using “device model”●hypervisor intercepts mmio regions●forwards r
© Novell Inc. All rights reserved 19 Intel Pre- and Post-VT
© Novell Inc. All rights reserved 2 Agenda•Use cases•Terminology and Architecture•VM installation•Using Xen•Case Studies•Roadmap•Novell offerings•He
© Novell Inc. All rights reserved 20 AMD IOMMU•in DomU OS not loaded at address 0•Xen: direct access to memory difficult-->corruption•hypervisor
© Novell Inc. All rights reserved 21 Ring BuffersNetwork, disk I/O is done via shared memory, asynchronous ring buffers.One ring per VM reduces cros
Xen Architecture – Simple ViewHardwareHypervisorLinuxDom0PdLinuxDom1VdNetwareDom2VdPd = Physical Device DriverVd = Virtual Device Driver
Xen Architecture – Simple ViewHardwareHypervisorLinuxDom0PdLinuxDom1VdNetwareDom2VdPd = Physical Device DriverVd = Virtual Device DriverDom0 is the ma
Xen Architecture – Simple ViewHardwareHypervisorLinuxDom0PdLinuxDom1VdNetwareDom2VdPd = Physical Device DriverVd = Virtual Device DriverDom0 is the ma
Xen Architecture – Simple ViewHardwareHypervisorLinuxDom0PdLinuxDom1VdNetwareDom2VdPd = Physical Device DriverVd = Virtual Device DriverDom0 is the ma
© Novell Inc. All rights reserved 26 Distribution•pDistro–Tuned thin, platform distribution specialized for specific physical hardwaremanagementagen
© Novell Inc. All rights reserved 27 Xen Technology – Architecture (cont)
© Novell Inc. All rights reserved 28 Novell CustomerCenterEmerging Virtual ArchitecturesZENworks Linux Management• p/v-Distro Provisioning• Patching
VM Installation
© Novell Inc. All rights reserved 3 Server Virtualization: Analyst's View
© Novell Inc. All rights reserved 30 VM Installation using YaSTNovell makes VM installation simple with YaSTVM Installation using YaST on SLES 10• S
© Novell Inc. All rights reserved 31 SLES 10VM Installation Using YaST
© Novell Inc. All rights reserved 32 VM Disks – Supported Storage•mapping “virtual” disk (within the VM) and a “physical” disk (within a driver doma
© Novell Inc. All rights reserved 33 How Does Xen Compare?•Performance: 1-20% actual overhead (older claim: 1-5%)•Scalability: 10s of Vms•Memory o
Using Xen
© Novell Inc. All rights reserved 35 Booting VM Server (Xen)If you selected the Xen pattern during installation, Grub should be correctInstalling ke
© Novell Inc. All rights reserved 36 Troubleshooting Boot LoaderCopy/modify the normal entry in /boot/grub/menu.lst:title Xen root (hd0,0) ker
© Novell Inc. All rights reserved 37 Daemonsxend:• Required• Runs in VM Server• Must be running to access management commands• Manages VM configurat
© Novell Inc. All rights reserved 38 VM Configuration FilesUse an example file as a template: cp /etc/xen/examples/xmexample1 /etc/xen/vm/MyVmFields
© Novell Inc. All rights reserved 39 i.e.: /etc/xen/vm/sles10pvdisk = [ 'file:/var/lib/xen/images/sles10pv/hda,hda,w', 'phy:/dev/hdc,
© Novell Inc. All rights reserved 4
© Novell Inc. All rights reserved 40 /etc/xen/examples/xmexample.iscsikernel = "/boot/vmlinuz-xen"ramdisk = "/boot/initrd-xen"me
© Novell Inc. All rights reserved 41 VM MigrationMigration• Moving a VM from one physical machine to another, without interrupting the VM's sta
© Novell Inc. All rights reserved 42 Managing VMs with the xm Command Must be root.Use “xm” command (Xen Management)Querying:xm listxm list -lxm con
© Novell Inc. All rights reserved 43 More xm CommandsHot-plugging:xm mem-setxm block-attachxm block-detachDebugging:xm infoxm topxm dmesgFor more in
© Novell Inc. All rights reserved 44 Files & Directories/etc/xen/xend-config.sxp Machine-wide configuration/etc/xen/vm/ VM definition files/etc/
© Novell Inc. All rights reserved 45 Convert VMware image to Xen imagedd if=/dev/zero of=disk.img bs=32k count=32k#Virtual Hard Disk to Network Bloc
Case Studies
© Novell Inc. All rights reserved 47 Case Study: HA Web Server•Small office solution–High available web server for non-disruptive online business>
© Novell Inc. All rights reserved 48 Case Study: HA mail, file and print•Small office solution–Small scale consolidation with increased throughput a
Novell Xen Roadmap
© Novell Inc. All rights reserved 5 ●Novell product portfolio offers choice–Customers can choose to deploy virtualization technologies provided by N
© Novell Inc. All rights reserved 50 Novell Virtual Server ArchitectureOverview●SUSE Linux Enterprise Server 10 includes Xen 3.0.2●Supported hardwar
© Novell Inc. All rights reserved 51 SUSE Linux Enterprise Server 10 Xen 3.0.2 support status Overview●Runs both SLES 10 VM Server / SLES 10 VM (32/
© Novell Inc. All rights reserved 52 Xen 3.0.2 support status (2)Overview – Xen unsupported features•F: Save & Restore (plan: get to supported s
© Novell Inc. All rights reserved 53 Roadmap - Xen2006 2007Virtual Machine Server• SLES10 Xen VM server• SLES10 paravirtualized VMTech Preview unmod
© Novell Inc. All rights reserved 54 SUSE Linux Enterprise Server 10 SP1Xen 3.0.4+ planned support Q2/2007Overview●CIM provider for VM lifecycle man
© Novell Inc. All rights reserved 55 Xen 3.0.4+ support status (1)Overview – planned Xen supported features•x86 PAE max VM server physical memory:
© Novell Inc. All rights reserved 56 Xen 3.0.4+ support status (2)Overview – planned Xen supported features•Save & Restore of Virtual Machines•L
© Novell Inc. All rights reserved 57 OES2 virtualization support•OES2 shares same common code base of SLE 10 SP1•NetWare runs as paravirtualized OS
© Novell Inc. All rights reserved 58 Virtualization Pilot Program•Intel-VT or AMD-V hardware assisted•Full Virtualization with PV Device Drivers:–SL
cluster aware logical volumes for hosting Xen domUs
© Novell Inc. All rights reserved 60 cluster aware hosting of Xen domains•Howto use Heartbeat and EVMS (in dom0) to create cluster aware logical vol
© Novell Inc. All rights reserved 61 •Start Heartbeat2 and it'll start the EVMS daemon on each node–Renewal time frames are not well communicat
© Novell Inc. All rights reserved 62 •use EVMS to create a logical volume per each Xen domU OS image–e.g.10G image of hda–/dev/evms/MyVirtualMachine
PV drivers
© Novell Inc. All rights reserved 64 PV Driver for Windows•–Novell PV Xenbus Driver for Windows–PCI Device --> Update Driver>Xen Virtual Bloc
© Novell Inc. All rights reserved 65 setting up PV drivers for SLES9•create new SLES9 VM–edit /boot/grub/menu.lst>kernel vmlinuz-kernel_ver appen
Novell Xen based offerings
© Novell Inc. All rights reserved 67 Infos on Pricing & PoliciesEasy pricing and policy is in place•Today we are charging for first instance (ph
© Novell Inc. All rights reserved 68 Microsoft and Novell Collaborating on Virtualization and InteroperabilityCollaboration on software to enable SU
Where Do I find Information ?
© Novell Inc. All rights reserved 7 Uses of VirtualizationSharingAggregationExamples: VMs, LPARs, Virtual Disks, VLANsPhysical ResourcesVirtual Reso
© Novell Inc. All rights reserved 70 External ResourcesWhere do customers get more information•Novell Virtualization home page–http://www.novell.com
© Novell Inc. All rights reserved 71 Other ResourcesRecommended links•Xen project home http://www.xensource.com/xen/ wiki–Xen summit presentations–X
Outlook: Data Center Automation
© Novell Inc. All rights reserved 73 The Solution – Management Blueprint
© Novell Inc. All rights reserved 74 ZENworks® Orchestration ServerResource DiscoveryWorkload ManagementDynamic SchedulingPolicy ManagementAuditing/
© Novell Inc. All rights reserved 75 ZENworks Orchestrator
© Novell Inc. All rights reserved 76 ZENworks OrchestratorFeatures•Agenten basiertes Entdecken •Paralleles Ausführen •Abschätzung der Workloads•Plan
© Novell Inc. All rights reserved 77 ZENworks OrchestratorFeatures - Continued•Erweiterbare Job Definition–Sprache: Python–Regeln: XML Format–Vorein
© Novell Inc. All rights reserved 78 •Heterogenes Virtual Machine Management–VMware, Xen, Microsoft –Entdecken der Server für VM Kommissionierung–Of
© Novell Inc. All rights reserved 79 •Cluster-aware Virtualisierung–Redundanz, Hochverfügbarkeit, Disaster Recovery•Regel-basiertes, dynamisches Wor
© Novell Inc. All rights reserved 8 Use cases•Virtualization allows for more flexibility–Virtual Machines (VM) isolate hardware differences due to a
© Novell Inc. All rights reserved 80 Novell Portfolio Integration Virtual Machines•Consolidation•Migration•Effective hardware utilization Virtual St
© Novell Inc. All rights reserved 81 Virtual Machine LifecycleDiscoverOn-box incubatorCheck inVersion controlEditConfig: Change(using Sandbox)Runtim
© Novell Inc. All rights reserved 82 Virtual Machine Lifecycle Control•System maintains library of VMs and images, hosts–Like physical resources VMs
© Novell Inc. All rights reserved 83 Virtual Machine Lifecycle Control (cont.)•VM lifecycle controlled by:–Programmatically (Job / JDL)–Manually (th
© Novell Inc. All rights reserved 84 Virtual Provisioning and Life Cycle Management•Discovery- provisioning adapter job•Two types of VM; Instance &a
© Novell Inc, Confidential & Proprietary 85 Architektur- Auto YaST- Sysprep- Kickstart- NetWare Resp. File• CIMOM• CCM Agent• Orchestration Agent
© Novell Inc. All rights reserved 86
© Novell Inc. All rights reserved 87
© Novell Inc. All rights reserved 88
© Novell Inc. All rights reserved 89
Terminology and Architecture
© Novell Inc. All rights reserved 90
Unpublished Work of Novell, Inc. All Rights Reserved.This work is an unpublished work and contains confidential, proprietary, and trade secret informa
Comentários a estes Manuais