A cure for Virtual Insanity: A vendor-neutral introduction to virtualization without the hype Tim Hall Oracle ACE Director Oracle ACE of the Year 2006 OakTable Network OCP DBA (7, 8, 8i, 9i, 10g, 11g) OCP Advanced PL/SQL Developer Oracle Database: SQL Certified Expert Books Oracle PL/SQL Tuning Oracle Job Scheduling
http://oracle-base.com
http://oracle-base.com
A cure for Virtual Insanity: A vendor-neutral introduction to virtualization without the hype What is virtualization? How does virtualization work? What virtualization products are available? Why should you care about virtualization? What s the deal with licensing? What s going on in the Cloud? What about support? What s all this about Virtual Insanity? >
What is virtualization? Virtualization allows a single physical server to run multiple virtual machines (VMs) simultaneously. Each virtual machine is self contained and protected from other VMs on the same server. Virtual machines appear to be real machines to the outside world.
What is a Virtual Machine (VM)? Virtual Machine Applications Operating System Virtual Hardware CPU Memory Network Interfaces Disk
How does virtualization work? Virtualization Hardware Virtualization Big UNIX Vendors Software Virtualization Uses Hypervisor Popular on x86 Hardware OS Partitioning Solaris Containers Binary Translation Some system calls intercepted and dynamically rewritten Paravirtualization Guest OS modified to take advantage of hypervisor Hardware Assisted Intel VT and AMD-V Relatively New (2007)
What Products are available? Bare-Metal (Type 1 Hypervisor): VMware vsphere ESXi Oracle VM for x86 (Xen) Xen (used by Amazon AWS) Hyper-V (Windows Azure) KVM? Hardware Hypervisor VM1 VM2 VM3 VM4 Supported for Oracle Products
VMware ESXi 5 Console
Oracle VM 3 Console
What Products are available? Bare-Metal (Type 1 Hypervisor): VMware vsphere ESXi Oracle VM for x86 (Xen) Xen (used by Amazon AWS) Hyper-V (Windows Azure) KVM? Hosted (Type 2 Hypervisor): VMware Server GSX, Workstation, Fusion etc. Oracle VirtualBox Microsoft Virtual PC (Pre-Win8) KVM? Others: Qemu, colinux Hardware Hypervisor VM1 VM2 VM3 VM4 Hardware Operating System Hypervisor VM1 VM2 VM3 VM4 Supported for Oracle Products
Why should you care? Consolidation results in cost savings: Better resource utilization. Same job, fewer servers. Power savings. Less servers equals less power consumption. Data centre space. Fewer servers equals less space, cooling, UPS. Flexibility: Dynamic resource allocation. High availability. Test on multiple OS versions. Legacy Apps on Legacy OS. Easy migration. Installations can be treated as appliances
What s the deal with licensing? The most popular x86 hypervisors are free (Xen, Oracle VM, VMware ESXi). Low barrier to entry. Management tools and cool features often cost money. Cost of licensing products within VMs is not so clear. Oracle don t recognize virtual CPUs as limiting licensing costs unless machine is hard partitioned. http://www.oracle.com/us/corporate/pricing/partitioning-070609.pdf VMware ESXi hard partitioning of CPU is not recognized by Oracle. Oracle VM allows hard partitioning if you do it right. http://www.oracle.com/technetwork/topics/virtualization/ovmhardpart-167739.pdf What about licensing of clusters?
What about licensing of DRS HA clusters? The VMware Distributed Resource Scheduler (DRS) means VMs can run on any node in the cluster by default, so Oracle say all CPUs/Cores in the cluster must be licensed.
What about licensing of DRS HA clusters? Mandatory Host Affinity imposes limits on DRS, making sure VMs stick to a subset of the nodes in the cluster. This allows you to run mixed workloads in a cluster, while adhering to the Oracle licensing. Must be agreed with LMS upfront!
What s the deal with licensing? Be very careful with licensing! What about Oracle Databases on the Cloud?
What s going on in the Cloud? For certified cloud providers (Oracle Cloud, Amazon, Azure) a virtual core = physical Intel core. Licensing types On Demand Licenses Bring Your Own License (BYOL) Oracle Cloud Schema as a Service Virtual Image/Machine Database as a Service (DBaaS) Amazon Web Services (AWS) Virtual Machine Relational Database Services (RDS) for Oracle (DBaaS) Microsoft Azure Virtual Machine VMware vcloud Air Hybrid Cloud?? Virtual Machine
What about support? Oracle only support their products on Oracle VM, VMware and Hyper-V (Azure). Oracle also support RAC on Oracle VM and VMware. Oracle only certify their products on Oracle VM (Hyper-V?). Certification and Support are NOT the same thing! Oracle bugs on VMware VMs that are not considered generic bugs must be replicated on physical hardware. VMware s Global Support Services (GSS) can help with this. VMware recommend opening SRs with MOS and GSS simultaneously. Oracle on VMware has a long history. It works!
What s all this about Virtual Insanity? Size your hardware appropriately. Virtual CPUs: They compete with each other for physical CPU. Memory: Don t over-allocate memory to the VMs or physical hardware will swap like crazy. Consider NUMA implication. Storage: Having multiple virtual disks on the same physical disks isn t going to perform. Network: The physical network is shared between all VMs. Maintenance/Monitoring: VMs require the same amount of system administration work as physical servers. Training/Experience: The more you know about your virtualization product, the more you will get out of it!
The End Slides: /workshops Questions?