Integration of Oracle VM 3 in Enterprise Manager 12c DOAG SIG Infrastruktur Martin Bracher Senior Consultant Trivadis AG 8. März 2012 BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN 1
Trivadis facts & figures 11 Trivadis locations with more than 550 employees Hamburg Financially independent and sustainably profitable Key figures 2010 Dusseldorf ~180 employees Revenue CHF 101 / EUR 73 Mio. Frankfurt Services for more than 700 clients in over 1,800 projects Stuttgart Over 170 Service Level Agreements Freiburg Munich Vienna More than 5,000 training participants Basel Bern Lausanne Zurich ~350 employees ~20 employees Research and development budget: CHF 5.0 / EUR 3.6 Mio. 2 Oracle VM 3.0 - Alles neu? Version 24.10.2011
AGENDA 1. Introduction, Architecture of Oracle VM 2. Installation and configuration 4
What is Oracle VM (OVM) OVM is the virtualization solution from Oracle Based on Linux / Xen as host system Linux / Windows / Solaris x86 Guests OVM is a supported solution for Oracle products VMware is NOT supported - You will get support for the Oracle product if the problem can be reproduced on physical hardware Oracle accepts hard-partitioning for licensing Hard-partitioning: explicitely assign CPU-cores to a VM You only have to pay licenses for these cores On VMWare there is no hard-partitioning accepted - All available cores have to be licensed (in a cluster all cores on all nodes!) 5
Oracle VM OracleVM Browser interface OVMM Java Based Management Server OVM Manager Repository DB Oracle Enterprise Linux Two Components 1..n Oracle VM Server (OVS) - Host for the virtual machines 1 Oracle VM Manager (OVMM) - Management infrastructure for OVS (Repository-DB, Web-frontend) OVM Server 1 OVM Server N OracleVM Servers (OVS) are managed by OracleVM Manager (OVMM) Web-frontend Weblogic API OVM Agent OVM Agent OVS 6
Oracle VM Management possibilities OVM can also be managed by Enterprise Manager 12c Web-frontend Both frontends can be used 7
Oracle VM integration with EM12c EM12c requires an OVM Manager It is a frontend to OVMM, it uses the API of OVMM - at least OVM 3.0.2 is required EM12c Browser interface Java based mgmt server/agent Enterprise Manager 12c Repository DB Oracle Enterprise Linux OracleVM OVM Agent OVM Agent Java Based Management Server OVM Manager Repository DB Oracle Enterprise Linux OVM Server 1 OVM Server N OVS OVMM 8
AGENDA 1. Introduction, Architecture of Oracle VM 2. Installation and configuration Install and deploy virtualization plugin Integration and configuration of Oracle VM 9
Installation Install the virtualization plugin 10
Installation of OVM plugin: Server Deploy the plugin to an EM12c server 11
Installation of OVM plugin: Server 12
Installation of OVM plugin: Server Reboot of OMS During install, show status on console emctl status oms -details emcli get_plugin_deployment_status -plugin_id=oracle.sysman.vt 13
Installation of OVM plugin: Agent Deploy the plugin to an EM12c agent The agent must not be on the OVM Server Use an existing agent, e.g. the agent on the EM12c host EM12c Virtualization plugin EM Agent 12c Virtualization plugin EM Server 12c OVM Agent OVM Agent Java Based Management Server OVM Manager OVM Server 1 OVM Server N OVS OVMM 14
Installation of OVM plugin: Agent 15
Installation of OVM plugin: Agent Choose an agent and deploy the plugin Add... Mark one of the presented targets to deploy plugin 16
Installation of OVM plugin: Agent 17
AGENDA 1. Introduction, Architecture of Oracle VM 2. Installation and configuration Install and deploy virtualization plugin Integration and configuration of Oracle VM 18
Where is the cloud? 19
Registering with the OVM Manager Register the OVM Manager via the agent with the deployed plugin 20
Registering with the OVM Manager Configure access to the OVM Manager /ovm/console/faces/login.jspx 21
Registering with the OVM Manager 22
Registering with the OVM Manager At the end, you can manage your OVM Servers via EM12c 23
Discover OVM Server Oracle VM Agent Credentials: oracle / passwd (of ovs agent, not gc-agent) 24
Network overview Computer - XEN N e t w o r k eth1 dom0 (Host) Bridge: Bridge xenbr0 172.16.64.193 172.16.64.0 00:15:17:3D:46:34 domu-x (VM) eth4 00:15:17:3D:46:34 bond0 00:15:17:3D:46:34 vifx.0 172.16.64.225 eth0 25 Oracle VM Martin Bracher
Network overview - Bonding /etc/sysconfig/network-scripts/ifcfg-eth4 DEVICE=eth4 BOOTPROTO=none HWADDR=00:19:99:0C:79:BC ONBOOT=yes MASTER=bond0 SLAVE=yes ifconfig eth4 eth4 Link encap:ethernet HWaddr 00:15:17:3D:46:34 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BOOTPROTO=none ONBOOT=yes BRIDGE=172.16.64.0 NM_CONTROLLED=no BONDING_OPTS="mode=1 miimon=250 use_carrier=1 updelay=500 downdelay=500 primary=eth4" eth4 00:15:17:3D:46:34 bond0 00:15:17:3D:46:34 ifconfig bond0 bond0 Link encap:ethernet HWaddr 00:15:17:3D:46:34 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 26
Network overview - Bridge #This file was dynamically created by OVM manager. Please Do not edit DEVICE=172.16.64.0 TYPE=Bridge IPADDR=172.16.64.193 NETMASK=255.255.255.0 BOOTPROTO=static ONBOOT=yes DELAY=0 A bridge is something like a virtual switch Bridge: Bridge xenbr0 172.16.64.193 172.16.64.0 00:15:17:3D:46:34 DEVICE=bond0 BOOTPROTO=none ONBOOT=yes BRIDGE=172.16.64.0 NM_CONTROLLED=no BONDING_OPTS="..." bond0 00:15:17:3D:46:34 vifx.0 ifconfig 172.16.64.0 172.16.64.0 Link encap:ethernet HWaddr 00:15:17:3D:46:34 inet addr:172.16.64.193 Bcast:172.16.64.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 27
Virtual Network Cards Network cards for virtual machines are defined by a MAC address It will be connected to a bridge (virtual switch) Tip: For downloaded VM's: check the name of the switch Computer - XEN N e t w o r k eth1 dom0 Bridge: Bridge xenbr0 172.16.64.193 172.16.64.0 00:15:17:3D:46:34 domu-x eth4 00:15:17:3D:46:34 bond0 00:15:17:3D:46:34 vifx.0 172.16.64.225 eth0 # vm.cfg vif = ['mac=00:21:f6:00:01:07,bridge=172.16.64.0'] 28
Virtual Network Cards # vm.cfg vif = ['mac=00:21:f6:00:01:07,bridge=172.16.64.0'] 29
Add additional networks Different types of networks Server management Cluster heartbeat Storage (nfs) Life migration Virtual machines 30
Add additional networks 31
Storage As documented, the next step is to define Storage / Storage servers But that does not work... at least for storage on LUN's We first have to define a server pool 32
Server Pool What is a Server Pool? Group of OVM Servers Each server is attached to a pool Usually clustered Sharing resources (storage) High availability Move VM's between servers in a pool One server is the master (with a VIP), used for communication with ovm manager / em12c Common Pool filesystem (shared storage: nfs / ocfs2) On NFS: - Pool filesystem is a file on NFS - Containing an ocfs2 filesystem, mounted on the servers 33
Server Pool Virtual IP Started on the master server If down, failover to another server 172.16.64.0:0 Link encap:ethernet HWaddr 00:15:17:3D:46:34 inet addr:172.16.64.188 Bcast:172.16.64.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 34
Storage Repository What is a Storage Repository? Disk space to store Virtual Machine's diskfiles Usually shared storage between all servers in a pool Mountpoint on OVM servers /OVS/repositories/<uuid_of_repository> 35
Storage Repository 36
Storage Repository DO NOT forget to present servers Oracle does not ask if you want to present (mount) the repo to the servers 37
Integration of OVM in EM12c completed 38
Prepare for Virtual Machines Import templates, ISO images, virtual disks 39
Importing Templates Sometimes there are slight differences between OVMM and EM12c... No FTP protocol with EM12c But with OVMM, ftp is possible... 40
Creating a VM Example: creating a VM from a template 41
Creating a VM 42
Virtual console access Download and install Oracle java http://www.oracle.com/technetwork/java/javase/downloads/index.html e.g. jre-6u31-linux-x64.bin Open with: /<path>/ jre1.6.0_31/bin/javaws If you get error about missing TightVnc: on OVM Manager host, install - rpm -ivh http://oss.oracle.com/oraclevm/manager/rpms/tightvnc-java-1.3.9-3.noarch.rpm 43
Core Messages OVM3 can be managed by EM12c OVM Manager is still required (not the GUI, but the agent API) OVM Manager GUI and EM12c can co-exist Different layout / arrangement of elements - Sometimes easier, sometimes more complicated Only EM12c offers historical monitoring 44
Questions and Answers For more information about Oracle VM 3 Visit the DOAG Seminar "Berliner Expertenseminar: Oracle VM 3.0 mit Martin Bracher" 23. / 24. May 2012 http://www.doag.org/termine/termine.php?tid=436229 Questions? 45
THANK YOU. Trivadis AG Martin Bracher Europa-Strasse 5 8152 Glattbrugg Tel. +41 31 928 09 60 / +41 44 808 70 20 Fax +41 44 808 70 21 info@trivadis.com www.trivadis.com BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN 46 Title of Presentation Insert Header & Footer Date