Oracle VM Experiences Experiences with OracleVM 3.3 Hans Forbrich Oracle ACE Director Forbrich Consulting Ltd
Oracle VM Experiences
Experiences with
OracleVM 3.3
Hans Forbrich
Oracle ACE Director
Forbrich Consulting Ltd
Why I use Oracle VM
• Oracle shop
• Oracle product licensing
• Hard Partitioning
• Fixed servers
• 5x Dell Precision 490 w/ 36GB RAM each
• 2x Dell Precision T5500 w/ 48GB RAM each
• All machines: 3x GB Ethernet NIC
• Replace 22 smaller servers
• Test, Dev, Prod, Education
Oracle VM Experiences
My Architecture
• 2x Dell Optiplex 760
• DNS, DHCP, NTP
• 1x Dell Optiplex 760
• Cloud Control & OracleVM Manager
• 3x GB switches
• Public, Storage, Interconnect
• 1x custom NAS
• 5TB, iSCSI and NFS
• 7x Dual CPU, Quad Core machines for VM
• 2 Prod, 2 Test, 3 Dev
Oracle VM Experiences
Oracle VM Experiences
What is Oracle VM
• Two VM solutions
– Oracle VM for X86
– Oracle VM for Sparc
• Two management solutions
– Oracle VM Manager
– Oracle Enterprise Manager PlugIn for OVM
Oracle VM Experiences
Oracle VM for x86
• Based on XEN 4.x
– Enhanced for Multi-Server 'pools'
• Not latest version of XEN
– Stability
– Central repository
– UUID for all resources
– Uses own CLI, not ‘xm’
Oracle VM Experiences
Raw Iron Virtualization
• Thin layer called Hypervisor
• Responsible for drivers
• Primary Domain (Dom0)
• Management utilities, start/stop VMs
• ODA has a Dom1 called ODA_BASE
• Extra privileges, such as Disk access
• VMs go into User Domains (DomU)
• Resources that can host OS and App
Oracle VM Server 3.3
• Only 64 bit
• Based on XEN Project 4.3
• Oracle Linux 6 core with UEK 6
• Dom0 is Oracle Linux 6
• Huge Pages support
• Interoperable with OpenStack
• OVM Manager is WS enabled
• OVM Agent to talk back to Manager
• Uses Berkeley DB for local configuration
Oracle VM Experiences
Experiences OVM-Server
Install • Very simple install
• Get from http://edelivery.oracle.com/linux
• Free FOSS license
• ISO (DVD) is 547MB
• Small enough to fit in a Desktop VM
• VMWare Fusion has HVM support
• VirtualBox 4.3 does not
• Can not use for demo Windows ‘raw’
Oracle VM Experiences
Experiences OVM-S Install
• Prepare with the information
• Host name,
• IP address,
• DNS,
• Gateway
Oracle VM Experiences
Oracle VM Server 3.3
• Install complete (about 15 minutes)
• After that, access is via
• ssh
• OVM Manager Console through OVM
Manager
Oracle VM Experiences
• What kind of disk • NFS
• iSCSI (perhaps ZFS Appliance)
• Need to set up mounts
• Perhaps iSCSI initiator • Probably the trickiest part of all
Oracle VM Experiences
Oracle VM Server 3.3
Post Install
Oracle VM Experiences
Oracle VM Manager
• Centralized management tool
– All resources are identified by UUID
– Use repository to 'translate' name – UUID
• Both Graphical and CLI front ends
• Manage
– Server, Server Pool
– Storage
– Network
– Domains, Virtual Machines
• Start, Stop, Create, Destroy, Kill, move
Oracle VM Manager 3.3
• Application installed in a Linux machine
• Repository is based on MySQL EE
• UI based on WebLogic 12c and ADF 12c
• Supports WebServices API
• Both SOAP and REST
• SOA compatible
Oracle VM Experiences
Oracle VM Manager Install
• Requires a host
• Install a plain Oracle Linux 6 (u5)
• Wants 8GB RAM
• 2-4GB RAM seems OK for small configuration
• 40GB disk seem adequate
• Extra space can be given to NFS
• Get the Oracle VM Manager software from
http://edelivery.oracle.com/linux
• Install into the prepared host
Oracle VM Experiences
• Pre-install using ‘createOracle.sh’
• Same concept as oracle-validated.rpm
• Creates user, sets up kernel and permissions
Oracle VM Experiences
Oracle VM Manager Install
Oracle VM Manager 3.3 Install
• runInstaller.sh
• MUCH faster than previous versions
• Shell script, not GUI
• Install, upgrade, remove
• Goes through 9 steps
Oracle VM Experiences
Important Concept
• Oracle VM Server has multiple domains
• At least Dom0 and potentially many DomU
• A domain is a named set of resources
that can hold a Virtual Machine
• A Virtual Machine runs inside of a Domain
Oracle VM Experiences
Using OVM Manager GUI
• Simple workflow
• Create Server Pools
• Discover OracleVM Servers
• Assign to Server Pools
• Set up networking that is visible to servers
• Several Network Pools – needs thought
• Discover storage that is visible to servers
• Several Storage Pools – needs thought
• Create repositories and fill with templates …
• Create VMs
Oracle VM Experiences
Oracle VM Experiences
Oracle VM CLI
• Command line client
• Accessed using ssh
• Commands
– Discover
– Create, Add, Import, Edit, Remove
– Set, Show, List
– Start, Restart, Stop, Kill, Suspend, Restart, Move
• Scripts using expect
– Supplement/replace Oracle VM Utilities
• I’m still learning it!
Oracle VM Experiences
Jobs, Jobs everywhere
• Create and Manage Jobs
• Jobs will be scheduled
• Jobs are executed by Agents
• Console used to display status
Oracle VM Experiences
Oracle Enterprise Manager
Ops Center • Central management GUI
– Data Center View of Oracle HW
– Self-service opportunity
• Alternate to OVM Manager Console
– Higher level
– Allocate, move resources between VM Managers
• www.youtube.com/user/OracleLearning
– Oracle Ops Center 12c and Oracle VM
Oracle VM Experiences
Oracle Enterprise Manager
Cloud Control • Centralized monitoring and management
• Central
– Console
– Dashboard
– Job Scheduler
• Distributed Agents
– For Oracle VM, Agent is deployed on VM
Manager host
OEM Cloud Control 12c
• Workflow • Discover OVM Manager host
• Ensure Self-Service updates enabled • Setup, Extensibility
• Ensure VM PlugIns are deployed • On EM Oracle Management Server and
• On OVM Manager
• Ensure OVM Manager keystore is shared with OM Agent
• Discover OVM Manager (Add Targets)
• Register OVM Manager (Infrastructure)
Oracle VM Experiences
How it works for me
• OVM Manager GUI to manage VMs
• Not used often
• I don’t have any scripts yet
• OEM Cloud Control to monitor
• Part of larger OEM monitor strategy
• Allows remote monitoring
• Plans to incorporate sctipts
Oracle VM Experiences
Oracle VM Experiences
Conclusion
• Many tools involved
• VM Manager is required
• Cloud Control for monitoring
• Scripting, Command Line
– Learning curve
• It takes time
• But it’s worth it!
Oracle VM Experiences
Thank You
Hans Forbrich
mailto:[email protected]
http://www.forbrichcomputing.com