1. 1
Oracle VM
the of Oracle Cloud
Sai Janakiram Penumuru
Lead Cloud Architect
HPE
2. 2
Sai Janakiram Penumuru
o Oracle ACE Director
o Fourteen years in Oracle DBA / Oracle Apps DBA / Cloud Technologies
o Lead Cloud Architect, HPE
o Co-Fonder, Vice President- All India Oracle Users Group (AIOUG)
o Member of TOSCA - Topology and Orchestration Specification for Cloud Applications
o Oracle VM SIG Leader www.oraclevmsig.org
o Blog: www.oadba.com; www.oracle12c.info
3. Agenda
• What is Virtualization?
• What is Oracle VM ?
• Why run Oracle on Oracle VM?
• Oracle VM Templates for Oracle Database
• Stay Connected
4. 4
Background
Running today’s non-critical business applications in
virtualized environments has shown to be efficient
and cost saving.
Oracle VM is the only software based virtualization solution that is fully supported and
certified for Oracle products.
Support Position for Oracle Products Running on VMware Virtualized Environments [ID 249212.1]
Oracle has not certified any of its products on VMware virtualized environments. Oracle Support
will assist customers running Oracle products on VMware in the following manner: Oracle will only
provide support for issues that either are known to occur on the native OS, or can be
demonstrated not to be as a result of running on VMware.
6. 6
What is Virtualization?
It is a abstraction of computer hardware resources
Virtualization technology emulates
real — or physical — computing
resources, such as desktop
computers and servers, processors
and memory, storage systems,
networking, and individual
applications.
A hypervisor — also known as a
virtual machine manager
(VMM) — allows multiple “guest”
operating systems
to run concurrently on a single
physical host
computer.
Types
Hardware Virtualization
Full Software Virtualization
Para virtualization
Hardware-assisted
software virtualization
Component or resource
virtualization
Virtualization players in market
8. 8
Types of Hypervisors
Oracle VM
VMware vSphere
KVM
Xen
Hyper-V
VirtualBox
VMware Fusion
VMware Player
VMware Workstation
Guest
OS
Guest
OS
Guest
OS
Server
Hypervisor
Type 1 – Native (Bare metal)
Guest
OS
Guest
OS
Guest
OS
Operating System
Hypervisor
Server
Type 2 – Hosted
9. 9
Server consolidation: A real-world example
100 Sun Fire V880 systems running
Oracle Solaris 8
17 Sun SPARC Enterprise T5240s systems
running Oracle Solaris 10
✓ Aggregate throughput performance would not change significantly for more workloads. In most cases, a single
T5240 can replace six V880s.
✓ Reduced space: 100 V880s require 50 data center racks, whereas 17 T5240s can fit in a single rack.
✓ Approximately 660,000 BTUs of heat generation would be removed from the data center.
✓ Approximately $200,000 would be saved in electricity costs per year (ignoring the cost of cooling).
✓ Acquisition costs for the new systems would be completely offset by the OPEX savings achieved in the first year.
=
11. 11
Oracle VM – Foundation for Cloud
• At the core of Oracle’s Cloud strategy
• Integrated VM lifecycle & cloud management
solution with Oracle Enterprise Manager
• Supports both x86 and SPARC
• Certified for Oracle products
• Cloud platform for Oracle & Non-Oracle
applications
o Supports Oracle Linux, Oracle Solaris, Microsoft
Windows, and other Linux distributions
12. 12
Oracle’s Virtualization Portfolio
From Development, Access, Fully Configurable Software to “Turn Key” Systems
• Oracle VM VirtualBox
Desktop Private Clouds and
On-Premises Servers
• Oracle VM x86
• Oracle VM SPARC
• Secure Global Desktop
Public Clouds
• Oracle VM x86
• Oracle VM SPARC
13. 13
Oracle VM Family: Choice and Flexibility
Oracle VM Virtual Box
• Development platform with multiple OS support
Oracle VM Server for x86 & SPARC
• Zero cost license: pay only for support
• Full functionality including all management software
• Your hardware infrastructure
Private Cloud Appliance
• Enterprise class, turn key converged infrastructure system containing servers, storage, network,
and software
• From power-on to production in about an hour
• Automated installation and configuration
From Development, Fully Configurable Software to “Turn Key” Systems
14. 14
Oracle VM for x86 Architecture
Live migration, high availability, template deployment, dynamic resource scheduling
Oracle VM Manager
• Centralized management server
•Web browser-based: No client required
•Manage hundreds or thousands of VMs centrally
•Advanced virtualization management included
Oracle VM Server
• Installs on “bare-metal” servers in about a minute
• Guest operating systems: Linux, Solaris & Windows:
• High performance at scale: Up to 320 physical CPUs and
6TB memory; Up to 128 vCPU and 2TB memory per VM
15. 15
Oracle VM Architecture
Client Applications: Various user interfaces to Oracle VM
Manager –GUI, CLI
Oracle VM Manager: Used to manage Oracle VM Servers, virtual
machines, and resources. Oracle WebLogic Server application
running on Oracle Linux
Oracle VM Manager Database: Used by Oracle VM Manager core to
store and track configuration, status changes and events.
Oracle VM Server: A managed virtualization environment providing
a lightweight, secure, server platform which runs virtual machines
External Shared Storage: Provides storage for a variety of
purposes and is required to enable high-availability options
afforded through clustering.
16. 16
Open: Xen – The Hypervisor Core For Oracle VM
#1 Open Source hypervisor
Powers many of the largest clouds today
• AWS, Google, Oracle, Rackspace, Yahoo!, …
Active and growing community
• User base of 10,000,000+
• Huge ecosystem of 2,000+partners
• Diverse group of individual and corporate contributors
– Alibaba, AWS, Citrix, Intel, Oracle, RackSpace, Verizon, and many many more
Vibrant and diverse innovation
19. 19
Oracle VM Server Features
High Availability: You can configure resources to restart the guests on another host if the underlying host fails.
Live Migration: You can relocate the guests from one host to another with no loss of service.
Load Balancing: If configured, Oracle VM automatically load balances upon guests startup
Performance: Xen hypervisor is among the fastest forms of virtualization.
Rapid Provisioning: Through the use of cloning and virtual machine templates, Oracle VM can quickly and
efficiently create new guest operating system.
VM Templates: Oracle provides wide-range of preconfigured virtual machine templates.
20. 20
Why Virtualize with Oracle?
Oracle VM Templates to shorten time to market
Oracle Enterprise Manager provides complete VM
and cloud lifecycle management.
Rapid deployment with
100+ Oracle VM Templates
Oracle Virtualization
from applications to disk.
21. 21
Oracle VM Templates
Easier...Faster...Lower Cost...Fully Supported for Production Deployments
• Rapid Deployment
• 100+ Templates
• Pre-built, pre-configured, production-ready VMs
• Apps, Databases, Middleware, OS; Siebel CRM, Oracle RAC, More…
• Near zero knowledge of OS, Application installation required
• Automate deployment of a complete production ready 8 node RAC cluster in minutes
through a simple single configuration file
22. 22
Oracle VM Templates / Virtual Appliances
Rapid Application Deployment
Recent Updates:
• Oracle Database – deploycluster
supported on Oracle VM 3.3
•E-Business Suite
• JD Edwards
•PeopleSoft
• etc.
Start-Up in
Oracle VM Pool
VM 1
RAC
VM 2
RAC
VM
NAS, SAN, iSCSI
Oracle VM Servers
Oracle VM Server Pool
VM VM
Software Delivery Cloud
Download from Oracle
•Pre-built, pre-configured VM
•Complete Single Instance OR
Clusterware, ASM, RAC installation
(11gR2 or 12c) or other applications
Import to
Oracle VM
Manager
File
DB/
RAC
VM
Customize & Save
as Golden Images
VM
Save days or weeks in installation and
configuration time
VM
SI
23. 23
Oracle VM Manager - Live Migration & HA/Auto Restart
Cluster
VM VM VM VM
Oracle VM Servers
NFS, SAN, iSCSI
Cluster
VM VM VM VM
Oracle VM Servers
NFS, SAN, iSCSI
Clustered Manager
Browser
XE, SE, EE, or RAC
Database
Planned Events:
•E.g. maintenance or upgrades
•Secure Live Migration
•Zero interruption
SSL Migration
X
Unplanned Events
•E.g. Serveror VM failure
•HA Auto-restart in pool
•No manual intervention
X
HA Auto Restart
mm
Pool Masters assure
Secure Migration or
HA restarts complete
in the event of a
Manageroutage
HA / Auto-restartLive Migration
24. 24
Live Migration topics
• Guest memory contents are copied over the network from the source system to the
target while the guest continues to run
• Guest virtual machine is "suspended" for a brief period of time
• Migration times vary
• Allocate sufficient CPU resources to the control domain
• Use a fast and otherwise low-utilization network segment.
• Try to reduce the virtual machine's memory size
• Not a substitute for fault resiliency or high availability technology - you cannot live
migrate a virtual machine from a server that isn't alive
25. 25
Advanced Policy Management of VMs
Modify for Live Migration
Dynamic Resource Scheduling (DRS)
• Live Migrate VMs based on server load
• Dynamically managed quality of service
H.A. Auto-restart
• Automatically restart VMs on failed servers
Dynamic Power Management (DPM)
• Automatically power-off under-utilized servers
Server
Pool 1
Server
Pool 1
Utilization
Consumption
25
26. 26
Storage Live Migration
• Support for Live Migrations of running virtual machines that have virtual disks on
local storage (Local to Local SLM)
• Built into the OCFS2 file system on x86 platforms to achieve nearly uninterrupted
uptime for virtual machines
• Note - Separate your server pool file system and your cluster heartbeat file
system – If not, SLM can disrupt the cluster heartbeat function
• Note - Configure separate channels for live migration network traffic and other
network functions such as cluster heartbeat
High Availability / Disaster Recovery
27. 27
Cloning, Snapshot & Ksplice
• Oracle VM allows cloning of virtual machines and templates to create new copies
which can then be backed up or customized:
• Cold clone – in this case the virtual machine is completely stopped. This choice offers widest number of
supported conditions.
• Hot clone – in this case the virtual machine is running. This choice is only supported for Oracle VM Guests
with no running databases and must reside on virtual disks within an OCFS2 formatted storage repository
(OCFS2 Reflink)
• Storage snapshot
• Ksplice technology – Oracle VM to support hitless kernel updates
28. 28
Enterprise Manager 13c
Total Cloud Control and Full Stack Management
PaaS
IaaS
Self-Service
Provisioning
Capacity
Planning
Assembly
Packaging
Policy-Driven
Resource Mgmt
Metering and
Chargeback
Configuration &
Compliance
Lifecycle Management
Application
Performance
& Quality Management
29. 29
Oracle VM - Developed & Used Internally
Oracle VM powers the most demanding customer workloads on Oracle Engineered
Systems (Exadata, Exalogic, Exalytics, ODA, PCA, etc.)
• Oracle VM offered as part of complete convergedinfrastructure solution
• Oracle VM optimized for Exadata and PCA for performance, reliability
• Same Oracle VM software to virtualize any of the customer’s workloads
Oracle VM powers Oracle’s infrastructure and Cloud offerings
Oracle PDIT deployed more than 310,000+ virtual machines
• Workloads: software/hardware development, corporate infrastructure, cloud offerings.
• Focus on scalability
Oracle Public Cloud, Cloud for Industry, and Oracle Managed Cloud Services
• All Server Deployments are virtualized with Oracle VM
• Moving to the latest Oracle VM 3.3.
30. 30
Oracle VM Powering Oracle Engineered Systems
Oracle VM Integrated with Oracle Systems
Oracle x86 &
SPARC systems
32. 32
Oracle VM Templates for Oracle Database
http://www.oracle.com/technetwork/server-storage/vm/database-templates-12c-11gr2-1972804.html
33. 33
RAC OVM Templates - Delivery Mechanism
• 32 bit and 64bit versions
• Image files are built with ‘sparse file’ support
• Inside each zip are tgz archives with the followingfiles:
– VM Config file (text file)
– Opatch lsinventorysample output
– README / PDFs for installing
– Disk 1 image file: Operating System
– Disk 2 image file: Oracle Software
• Includes Clusterware, ASM and RAC
• Follow the instructions in provided PDF files or
document for the new DeployCluster tool
34. 34
Using The RAC OVM Templates
Steps to execute RAC OVM templates
• Step 1 Download Template 32/64
• 11.1/11.2.0.1/11.2.0.2/11.2.0.3/Oracle RAC 12c Release 1 (12.1.0.1.0)
• Step 2 Register Template with Oracle VM Manager
• Step 3 Create 2+ VMs
• Step 4 Shared Storage
• For Non Production: Create Shared Disk using OVM Manager
• Assigned Shared disk to all Guest VMs using OVM Manager
• For Production Deployment: Identify Physical Shared Disk
• OVM2: Update all Guest VM’s vm.cfg files with location of shared disk
• OVM3: Attach physical disks using Oracle VM Manager
• Step 5 Boot all VMs or use Deploycluster tool and skip Step 6
• Step 6 Run OneCommand to Configure and Build RAC database
35. 35
RAC on OVM – Deployment Configuration
• Two types of deployments
• Production Oracle RAC OVM Configurations [Supported]
• Each RAC node must be deployed on a separate physical server for production environments
• Shared database disks must be on physical disks
• Test Oracle RAC OVM Configurations
• Above requirements are relaxed
• Templates support both configurations, each has its own PDF to help with steps
Non-Production deploymentProduction deployment
36. 36
Template Documentation
Number Name Version Release Date Usage Notes DownloadFrom
17. Single Instance& Oracle Real Application Clusters (RAC) 12c Release
1 (64-bit) on Oracle Linux 7.1 (w/OVMAPI Support)
12.1.0.2.5
EnterpriseEdition
OCT2015 For Test
For Production
My Oracle Support Patch#
18888877 64Bit Linux.
16. Single Instance& Oracle Real Application Clusters (RAC) 12c Release
1 (64-bit) on Oracle Linux 6.7 (w/OVMAPI Support)
12.1.0.2.5
StandardEdition 2
OCT2015 For Test
For Production
My Oracle SupportPatch#
18888883 64Bit Linux.
15. Single Instance& Oracle Real Application Clusters (RAC) 12c Release
1 (64-bit) on Oracle Linux 6.6 (w/OVMAPI Support) 12.1.0.2.2 FEB2015,MAR2
015 (update)
For Test
For Production
My Oracle Support Patch#
18888811 64Bit Linux. Update: See #5 below.
14. Single Instance& Oracle Real Application Clusters (RAC) 11g Release
2 (64-bit) on Oracle Linux 5.11 (w/OVMAPI Support) 11.2.0.4.5 FEB2015,MAR2
015(update)
For Test
For Production
My Oracle Support Patch#
14000033 64Bit Linux. Update: See #5 below.
13. Single Instance& Oracle Real Application Clusters (RAC) 12c Release
1 (64-bit) on Oracle Linux 6.4(w/OVMAPI Support) 12.1.0.1.0 AUG2013
For Test
For Production
Images hosted on the Software Delivery
Cloud MediaPack: B74026-01 "Oracle VM
Templates for Oracle Database Media Pack for
x86 (64 bit)" Files: V38984-01, V38985-01
12. Single Instance& Oracle Real Application Clusters (RAC) 11g Release
2 (x86 32-bit and 64-bit) on Oracle Linux 6.4 (w/OVMAPI Support) 11.2.0.4.0 AUG2013
For TestFor
Production
My Oracle Support
Patch# 14000094 32Bit & 64Bit Linux. Updated
OCT2013 to fix 2-node interviewfor OVM2
users.
11. Single Instance& Oracle Real Application Clusters (RAC) 11g Release
2 (x86 32-bit and 64-bit) on Oracle Linux 5.9 (w/OVMAPI Support) 11.2.0.3.7 AUG2013
For TestFor
Production
My Oracle Support
Patch# 14000092 32Bit & 64Bit Linux
10. Single Instance& Oracle Real Application Clusters (RAC) 11g Release
2 (x86 32-bit and 64-bit) on Oracle Linux 5.9 (w/OVMAPI Support) 11.2.0.2.11 AUG2013
For TestFor
Production
My Oracle Support
Patch# 14000021 32Bit & 64Bit Linux. Updated
OCT2013 to fix 2-node interviewfor OVM2
users.
9. Oracle Real Application Clusters (RAC) 11g Release 2 (x86 32-bit and
64-bit) on Oracle Linux 6.2 (w/OVMAPI Support)
11.2.0.3.2 JUN2012,
AUG2012
(update)
For TestFor
Production
My Oracle Support Patch#
13818831 32Bit & 64Bit Linux
8. Oracle Real Application Clusters (RAC) 11g Release 2 (x86 32-bit and
64-bit) on Oracle Linux 5.8 (w/OVMAPI Support) 11.2.0.2.6 MAY2012
For TestFor
Production
My Oracle Support Patch#
14000016 32Bit & 64Bit Linux
37. 37
NEW: DeployCluster Tool Features
• Allows for fully automated end-to-end cluster deployment of N-node clusters
– Assuming VMs are pre-created w/NICs & shared disks
• No Dom0 access or login to VMs is needed
• All previously released templates are fully compatible
– As long as the OVMAPI enabled OS disk is used
• Tool options availablein: deploycluster.ini
• VMs can be identified by UUID or simplename
– Simple name may include the "*" and "?" wildcard characters
• Easy to re-attempt a failed deployment
– Only fix what failed, and leaveother VMs running
38. 38
Download deploycluster tool
http://www.oracle.com/technetwork/server-storage/vm/rac-template-11grel2-166623.html
Then unzip it anywhere you wish, e.g.
$ cd $HOME
$ unzip -q RACOVM-Deploycluster-tool.zip
$ cd deploycluster
Some of the useful files to notice are:
deploycluster.py - Deploycluster tool – RUN THIS
deploycluster.ini - Options for deploycluster tool itself
README.txt - Details explanation of all flags/options
utils - Directory with useful files, e.g:
netconfig*.ini - Sample netconfig.ini files
netconfig.zip - Updated netconfig (may be needed when deploying older templates)
params-sample.ini - Sampleparams.ini
README.txt - Backwards compatibility steps for Oracle VM2 users
39. 39
Create a netconfig.ini file
Using a simple text editor
copy the sample
netconfig.ini file from the
utils directory, then adjust
the names
and IPs suitable for your
environment.
40. 40
Oracle VM Manager login flags
Usage: deploycluster.py <Oracle VM Manager login> <RAC Templates Options>
-u <username>, --username=<username>
Username to connect to Oracle VM Manager
-p <password>, --password=<password>
Password to connect to Oracle VM Manager
-H <host>, --host=<host>
Manager hostname (use either -H or -U or none)
-U <url>, --url=<url>
Login URL to Manager (default: tcp://localhost:54321
or tcps://host:54322 when -H used to remote node)
41. 41
RAC Templates Options
Usage: deploycluster.py <Oracle VM Manager login> <RAC Templates Options>
-L, --list_vms_only
List VMs seen via Oracle VM Manager; Honors -M flag
-M <Listof VMs>, --vms=<Listof VMs>
List of existing VM names or IDs to deploy cluster on. Supports "*" & "?" wildcard characters
-P <params.ini>, --params=<params.ini>
Location of params.ini file (sent to VMs)
-N <netconfig.ini>, --netconfig=<netconfig.ini>
Location of netconfig.ini file (sent to VMs)
-B <yes|no>,--buildcluster=<yes|no>
Start a buildcluster post-network setup (default: yes. [If netconfig_args passed then default: no])
-G <args>, --netconfig_args=<args>
Advanced: Arguments to netconfig; override defaults
-K <zip file>, --kitfile=<zip file>
Advanced: Unzip new (partial) kitfile inside the VMs
-X <file>, --extrakeys=<file>
Advanced: File containing extra keys to send all VMs
-D, --dryrun
Show what will be done (do not start VMs or send msgs)
42. 42
DeployCluster Examples
• List all VMs with a simple name of “racnode.?” on Manager
– $ deploycluster.py –u admin –N netconf.ini –M racnode.? –L
• Deploy all VMs with a simple name of “racnode.?”:
– $ deploycluster.py –u admin –N netconf.ini –M racnode.?
– See output on following slide
• Deploy a VM as the 3rd node in an existing cluster
– $ deploycluster.py –u admin –N netconf.ini –M racnode3 –G –n3
46. 46
doall.sh – Run command on all nodes
doall.sh [options] <command> | "<command1>;<command2>;..<commandX>"
-l <user> : Login as user (default: current user)
-x : Run commands in sequence (default: run in parallel)
-P : Print commands as they are executed (default: noprint)
-p : Setup passwordless SSH for <user> on all nodes listed in netconfig.ini
-s : Skip confirmation for passwordless SSH setup
-u : Skip unreachable nodes
-U : Skip nodes that are unreachable or without passwordless SSH
configured
-L first|last|skip : Local node execution order
-N <node1>,<node2> .. : Nodes to run on (default: all nodes in
netconfig.ini)
Examples:
./doall.sh -L last reboot
52. 52
Oracle VM Server 3.3
What’s New
• Infrastructure changes in Oracle VM Server
• Upgrades the hypervisor from Xen 4.1 to Xen 4.3
• Upgrades the dom0 kernel to UEK Release 3
• Brings dom0 user space to Oracle Linux 6
• Oracle VM Server installation partitioning
• The Installer handles all disk partitioning itself to optimize installation. The remaining
disk space can be used to host a repository or can be attached to a virtual machine.
• Upgrade multiple servers or pools using the bundled tool (UpgradeServers.py)
• Supports server upgrade from 3.1/3.2 to 3.3
53. 53
Oracle VM Manager 3.3
Infrastructure
• Infrastructure change to support larger and more diverse environments
• Stats/events/Jobs scalability improvement
• Weblogic Server 12c
• Java 7
• GUI/CLI implementation switched to WS-APIs
• Greater simplicity with the bundled MySQL Enterprise Edition, without dependency on
an external database as the management repository
• This change allows for improved supportability, automated backups by default, backup
restoration tools, integrated tools for database object consistency checking, etc.
• Oracle VM Manager install/upgrade improvements
54. 54
Oracle VM Manager 3.3
Programmability
Fully supported Web-Services API
• Oracle VM Manager now exposes a fully supported web-services API that offers both SOAP
and REST interfaces to program any action supported within Oracle VM.
• Developer’s Guide providedas part of the documentation set
55. 55
Oracle VM Manager 3.3
Serviceability and Usability Improvements
New VM console
• Redesigned to use JavaScript and HTML5 features so that there is no requirement
to install or run software locally on the client computer.
• This change reduces complexity and provides a more reliable console tool.
Virtual machine configuration file view
View the virtual machine configuration file for any virtual machine directly within the
Oracle VM Manager UI and CLI
Inbound migration lock
Allows you to protect a server from attempts to move or migrate other virtual machines
to that server