Distribution of the Oracle Cloud Cookbook or derivative of the work in any form for commercial purposes is prohibited unless prior permission is obtained from the copyright holder.
Author: Roddy Rodstein Change Log
Revision Change Description Updated By Date
1.0 First Release Roddy Rodstein 09/19/11
1.1 Oracle VM Manager Backup Roddy Rodstein 10/15/11 1.2
Oracle Enterprise Manager 12c Agent Installation & Oracle VM Manager 3.0
Roddy Rodstein 10/18/11 1.3 Oracle VM 3.0.3 Updates Roddy Rodstein 01/12/12 1.4 Introduction Updates & New
Images Roddy Rodstein 04/02/12
1.5
Oracle VM Manager 3.0 Inter Component Communication and Data Exchange Updates
Roddy Rodstein 04/03/12 1.6 Chapter Updates Roddy Rodstein 04/06/12
Table of Contents
Oracle VM Manager Introduction
Oracle VM Manager Installation Options Oracle VM Manager Design Considerations
Oracle VM Manager Inter Component Communication and Data Exchange Oracle VM Manager Firewall Requirements
How to Download the Oracle VM Manager Installation Media How to Mount the Oracle VM Manager Installer Media Oracle VM Manager Installation Passwords Requirements Oracle VM Manager Prerequisite Packages
Oracle VM Manager Host Oracle XE User Requirements
The Oracle VM Manager Host /u01 Installation Directory Requirements The Oracle VM Manager Host /etc/hosts Requirements
How to Run the Oracle VM Manager Environment Configuration Script Oracle VM Manager Demo Installation
Oracle VM Manager Production Installation How to Uninstall Oracle VM Manager How to Backup Oracle VM Manager
...How to Backup Oracle VM Manager Configuration File ...How to Backup the Oracle VM Manager Database Repository
...How to Backup an Oracle 11g Standard or Enterprise Edition Database Repository ...How to Backup an Oracle 11g Express Database Repository Backup
Oracle VM Manager Introduction
Oracle VM Manager 3.x is a traditional Oracle application consisting of an Oracle Database, one Oracle WebLogic servers hosting a J2EE web application with an
Manager components are supported exclusively on Oracle Linux 5U5 x86_64 bit or later and Oracle Linux 6+. In the context of Oracle VM Manager, the Oracle Database
repository stores the configuration data for an Oracle VM environment, including the data collected by the Oracle VM Server Agents. WebLogic is the J2EE platform which hosts the Oracle VM Manager application and the Core API. Oracle VM Manager provides a
limited-use license for a Standard Edition or Enterprise Edition Oracle Database and a limited-use license for Standard Edition or Enterprise Edition WebLogic, as long as they are “only” used for Oracle VM Manager.
Tip: Oracle Support Requests (SRs) for the limited-use license versions of Standard
Edition or Enterprise Edition Oracle Database and WebLogic should be created with the Oracle VM customer support identifier (CSI).
The Oracle Database repository is an Oracle 11g Database that stores all of the configuration data for an Oracle VM environment, including the data collected by the Oracle VM Server Agents. The Oracle VM Manager application and the Core API are deployed on a WebLogic server in the Oracle Middleware home. The Oracle Middleware home is the parent directory of the Oracle WebLogic Server home. Administrative operations made in the Oracle VM Manager console are dispatched to each Oracle VM server pool' master agent. The Oracle VM Manager console can be accessed using Firefox 3.5 and above, Safari 5.0 and above, Chrome 1.0 and above and Internet Explorer 9.0 and above.
As shown in Figure 1, an Oracle VM 3.0 deployment, has the following components: List 1 explains each of the components from an Oracle VM 3.0 deployment.
List 1
Oracle VM Manager Console: The Oracle VM Manager console is used to configure and
manage the entire Oracle VM environment. The Oracle VM Manager console can be
accessed with the the default “admin” account via http or https using Firefox 3.5 and above, Safari 5.0 and above, Chrome 1.0 and above and Internet Explorer 9.0 and above. The next example shows the http and https URLs for the Oracle VM Manager 3.0 console:
https://<ORACLE VM MANAGER 3.0 HOST>:7002/ovm/console/faces/login.jspx
Note: The WebLogic Server Administration console is available at:
https://<ORACLE VM MANAGER 3.0 HOST>:7001/console/login/LoginForm.jsp
Oracle VM Manager Host: The Oracle Linux 5 or 6 x64 virtual or physical hosts on
which Oracle VM Manager 3.x is installed. The Oracle VM Manager host runs the administrative console and Core. Administrative operations made in the Oracle VM Manager console are dispatched using XML RPC calls from Oracle VM Manager to each Oracle VM server pool' master agent.
Oracle Management Agent and the Virtualization plug-in: The Oracle VM product
family; Oracle VM Servers, Oracle VM Manager, Oracle VM Templates and Oracle
Virtual Assembly Builder can be managed with Oracle VM Manager and Oracle Enterprise Manager Cloud Control. To be able to manage the Oracle VM product family with
Enterprise Manager Cloud Control, the Oracle VM Manager host must have the Oracle Management Agent (OMA) along with the Virtualization plug-in installed, as well as be a monitored target in Oracle Enterprise Manager 12c.
Note: The Virtualization plug-in is supported exclusively with a Production Oracle VM Manager installation. The Demo installation is not supported by the Virtualization plug-in.
Oracle VM Server(s): Oracle VM Server is installed bare metal on x64 hardware with
Intel or AMD CPUs. An Oracle VM Server installation “only” requires 3GB of local storage using an on-board SSD or flash module, i.e. no traditional hard drives required. Oracle VM Servers must belong to an Oracle VM server pool. Each server pool can have up to 32 Oracle VM Servers. There are a total of three Oracle VM Server pools show in Figure 1.
Oracle VM Agent: Oracle VM Manager facilitates centralized management of server
pools and their resources using an agent-based architecture. The Oracle VM Agent is an Oracle VM Server default component. There are a total of three Oracle VM Agent roles; 1) the Server Pool Master, 2) the Utility Server and 3) the Virtual Machine Server. Oracle VM Manager dispatches commands using XML RPC to each server pool master agent, which, in turn, dispatches commands to other pool members over a dedicated management interfac. The Oracle VM Agents are shown as blue dots within each Oracle VM Server in Figure 1.
Server Pools: Oracle VM Manager uses the concept of a server pool to group together and
manage one or more clustered Oracle VM Servers. A Server Pool defines the management boundaries of its Oracle VM Servers, virtual machines, and server pool resources. Once a server pool is created, resources such as storage, networks, Oracle VM Servers, virtual machines, operating system installation ISO files, Oracle VM templates can be configured and managed within the context of the server pool.
Storage: Oracle VM uses two unique types of storage repositories supported on Fiber
Channel SAN, iSCSI and/or NFS. The first type of storage repository is the pool file system that is used to host a server pool's cluster configurations. There can only be one pool file system repository per server pool. The other type of storage repository is the virtual
machine file system (VMFS) used to host virtual machine configuration files, images, ISO files, templates and assemblies.
Berkeley DB: Each Oracle VM Server has a local Berkeley DB that hosts persistent cluster
configurations such as mount points and OCFS2 locks. Each Oracle VM server pool also has a shared Berkeley DB located in the pool file system that is managed by the Oracle VM agent. The Berkeley DBs are shown as red dots within each Oracle VM Server in Figure 1.
Oracle VM Manager Installation Options
The Oracle VM Manager application installer provides the option to select a Demo or Production installation. A Demo installation is an all-in-one installation with Oracle 11g Express Database, WebLogic 11g 10.3.5.0, and the Oracle VM Manager applications. A Production installation installs WebLogic 11g 10.3.5.0, and the Oracle VM Manager applications using an existing local or remote Oracle 11g Standard or Enterprise Edition database. A Demo installation is “unsupported” by Oracle Enterprise Manager and Oracle support due to the use of the Oracle 11g Express Database, which is a free unsupported version of the Oracle Database.
Tip: An Oracle VM Manager Demo installation is intended “only” for evaluations, not for
production.
Oracle VM Manager Design Considerations
The Oracle VM Manager Database repository, WebLogic and Oracle VM Manager can be installed in an “unsupported” all-in-one configuration for evaluations (Demo Mode) or in a multi-tier architecture for production (Production Mode). A Production Oracle VM
Manager installation should not be placed on a single server, nor should the Oracle VM Manager Database repository be shared with production or test databases on the same server. For production, the Oracle VM Manager Database repository as well as the WebLogic hosts should be on dedicated virtual or physical servers. If your Oracle VM environment starts out small, make sure to have a plan to scale out your Oracle VM Manager infrastructure.
For the Oracle VM Manager Database repository, scaling out means moving from a single server Database to a multi node RAC cluster. An important consideration when scaling out an Oracle VM Manager environment is to determine if the underlying hardware where the Oracle VM Manager Database repository runs is capable to transition to RAC. If the hardware is not capable to transition to RAC, it is possible to move and/or export the Oracle VM Manager Database repository to a different system with more resources.
Oracle VM Manager Inter Component Communication and Data Exchange
The Oracle VM Manager console, the Oracle Database repository and the WebLogic server running Oracle VM Manager can be on different hosts throughout your enterprise.
Understanding Oracle VM Manager intra component communication and data exchange will help configure firewalls in order to allow Oracle VM Manager to operate in your enterprise. During the Oracle VM Manager installation, the default communication ports for each component will be selected and assigned. If the default ports are modified be sure to use the new port assignments when you configure your firewalls.
Table 1 shows the default ports used by Oracle VM Manager.
Port Usage
7001 HTTP access to the Oracle VM Manager console. 7002 HTTPS access to the Oracle VM Manager console.
Note: By default Oracle VM Manager uses a self-signed SSL certificate.
54321 The Oracle VM Manager Core API management port. 1521 The Oracle Database listener.
8080 Oracle Database 11g Express Edition (XE) Only: HTTP access to the Oracle Database XE console.
15901 Oracle VM uses the Remote Access Service java applet to proxy all virtual machine VNC console access from the Oracle VM Manager host to the “ovs-consoled” service on the Oracle VM servers.
Figure 2 shows the Oracle VM Manager intra component communication and data exchange.
Oracle VM Manager Firewall Requirements
The default firewall used by an Oracle Linux 5U5 and above Oracle VM Manager host is iptables. In order to use Oracle VM Manager, the Core API and the Oracle Management Agent with iptables enabled, it is necessary to open tcp ports 7001, 7002, 54321, 15901 and 3872. To open the necessary ports in iptables, edit the /etc/sysconfig/iptables file, or run the environment configuration script (createOracle.sh) located in the Oracle VM Manager installation media.
Note: The environment configuration script (createOracle.sh) does not open port 3872 used
for the OEM Agent.
To open the necessary ports in iptables, as root edit the /etc/sysconfig/iptables add the bold iptables rules as shown in the following example.
# vi /etc/sysconfig/iptables *filter
:INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7001 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 7002 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 15901 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 54321 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 3872 -j ACCEPT COMMIT
:wq!
Next, restart iptables, by typing the following command: # /etc/init.d/iptables restart
If you experience connection challenges, a troubleshooting first step is to “temporarily” disable iptables.
To disable iptables, as root, type the following command: # /etc/init.d/iptables stop && chkconfig iptables off
To re-enable iptables, as root, type the following command: # chkconfig iptables on && /etc/init.d/iptables start
How to Download the Oracle VM Manager Installation Media
The Oracle VM Media Pack is available at the Oracle Linux and Oracle VM Cloud Portal. Access to the Oracle Linux and Oracle VM Cloud Portal requires an Oracle.com user account and password to authenticate in to the Oracle Linux and Oracle VM Cloud Portal. If you do not already have an Oracle.com user account, visit the Oracle Linux and Oracle VM Cloud Portal, click the Sign In / Register link or button to create an Oracle.com account.
From the Sign In page, enter your Oracle.com user name and password, then click the Sign In button.
Figure 4 shows the Oracle Linux and Oracle VM Cloud Portal Sign In page.
Once authenticated, accept the registration/export regulations to access to the Oracle VM and Oracle Linux Media.
After completing the registration/export regulation form, you will be redirected to the Media Pack Search page. From the Media Pack Search page, select Oracle VM from the Select a Product Pack dropdown menu. Next, select x86 64-bit from the Platform dropdown menu, then click the Go button to be taken to the Oracle VM Media Pack download page.
Tip: If you do not see Oracle VM from the Select a Product Pack dropdown menu, you are
not in the Oracle Linux and Oracle VM section of the Cloud Portal. Click the Cloud Portal link in the page header, then click the Oracle Linux/VM drop down menu to be redirected to the Oracle Linux and Oracle VM section of the Cloud Portal.
From the Oracle VM Media Pack page, click the desired Oracle VM Manager 3.0.x radio button, then the Continue button, or click the Oracle VM Manager 3.x hyperlink to go directly to the download page.
Figure 7 shows the Oracle VM Media Pack page highlighting the Oracle VM Manager 3.0.1 hyperlink with the Continue button.
From the Oracle VM Manager 3.x Media Pack download page, click the Oracle VM Server 3..x for x86 64 (64 bit) Download button to download the Oracle VM Server 3.0.x media pack.
The Oracle VM Manager media is delivered as a zip file. The zip file name corresponds to the Part Number listed on the download page. The zip file contains the Oracle VM Manager ISO file. The Oracle VM Manager ISO file contains: Oracle Database 11g Express,
WebLogic 11g 10.3.5.0, and two J2EE applications, the Core API, and the Oracle
Application Development Framework 11g Faces user interface. The two J2EE applications are deployed in to the WebLogic server in the Oracle Middleware home. The Oracle Middleware home is the parent directory of the Oracle WebLogic Server home. Once the zip file is downloaded, use your favorite zip utility to unzip the Oracle VM Manager ISO file. Next, burn the ISO file to DVD to be able to install Oracle VM Manager with a CD-ROM drive, or copy the ISO file to the Oracle VM Manager host, mount the ISO file and then perform the installation.
How to Mount the Oracle VM Manager Installer Media
In order to run the Oracle VM Manager installer, the installation media must be made available to the Oracle VM Manager host. The Oracle VM Manager installation media can be burned to DVD for a CD-ROM installation, or the ISO file can be copied to Oracle VM Manager host and mounted locally to start the install program.
The next example shows how to mount the Oracle VM Manager ISO file and start the installer program.
1. Download the Oracle VM Manager ISO file from the Oracle Linux and Oracle VM Cloud Portal.
2. Use your favorite zip utility to unzip the Oracle VM Manager ISO file.
3. Copy the Oracle VM Manager ISO file to a directory on the Oracle VM Manager host, i.e. to the /home/oracle directory. Note: The directory must be writable by the oracle user account.
4. Log in to the Oracle VM Manager host as root.
5. Create a directory to mount the ISO file, i.e. mkdir -p /home/oracle/mount-point. 6. Mount the ISO file by typing “mount -o loop OracleVM-Manager-
<VERSION>.iso /home/oracle/mount-point”
7. Change to the directory where the ISO file is mounted, i.e. “cd /home/oracle/mount-point.
8. Run the installer script as root, by typing “./runInstaller.sh”
Oracle VM Manager Installation Passwords Requirements
During the Oracle VM Manager installation, the installation program asks for the following passwords:
If the Oracle 11g XE Database is selected, the Oracle XE SYS and SYSTEM account passwords must be selected. The Oracle XE SYS and SYSTEM account passwords cannot contain special characters
The Oracle VM Manager OVS Database schema password:
Oracle 11g XE Database
The password cannot contain special characters
Passwords must be between 8 and 16 characters in length.
Passwords must contain at least 1 lower case and 1 upper case letter. Passwords must contain at least 1 numeric value or special character.
Oracle 11g SE and EE Database
The password must be a minimum of 8 characters in length The password cannot be the same as the username
The password cannot be the same length as the username The password cannot be the username spelled backwards
The password cannot be the same as the server name or the server name with digits from 1 to 100 appended
The password must include 1 digit and 1 alpha character
The Oracle 11g SE and EE Database SYSTEM password
The password must be a minimum of 8 characters in length. The password cannot be the same as the username.
The password cannot be the same length as the username. The password cannot be the username spelled backwards.
The password cannot be the same as the server name or the server name with digits from 1 to 100 appended
Simple passwords will be rejected
The password must include one digit and one alpha character
The Oracle WebLogic admin account password
The password must be between 8 and 16 characters in length
The password must have at least 1 lower case and 1 upper case letter The password must have at least 1 numeric value or special character
Tip: The WebLogic Server Administration Console is available after the installation at:
http://<ORACLE VM MANAGER 3.0 HOST>:7001/console/login/LoginForm.jsp
The Oracle VM Manager admin account
The password must be between 8 and 16 characters in length
The password must have at least 1 lower case and 1 upper case letter