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 3.0.3 Updates
|
Roddy Rodstein
|
01/12/12
|
|
1.2
|
Oracle VM 3.1.1 Updates
|
Roddy Rodstein
|
05/23/12
|
|
1.3
|
Content Refresh
|
Roddy Rodstein
|
12/18/12
|
|
1.4
|
Content Refresh
|
Roddy Rodstein
|
01/19/13
|
| 1.5 |
Oracle VM 3.2.x Updates |
Roddy Rodstein |
04/10/13 |
| 1.6 |
Oracle VM Manager user management & How to Disable IPv6 |
Roddy Rodstein |
04/27/13 |
This chapter of the Oracle Cloud Cookbook describes how to plan for, install, update and recover Oracle VM Manager. This chapter applies to all Oracle VM 3 releases.
Oracle VM Manager Introduction
At Oracle OpenWorld 2007, Oracle announced its entry into the x86 server virtualization market with the first release of Oracle VM. The first release of Oracle VM was actually version 2.1 because of Larry Ellison's aversion to using 1.0 for Oracle product releases to help drive early adoption. As of this writing, there has been a total of 12 Oracle VM Releases.
A key component of a successful Oracle VM deployment is acquiring and vetting new releases, patches and updates for production systems. New Oracle VM releases, patches and updates must be researched to identify which release, patches and updates are applicable to your environment. Newly released versions, patches and updates should be vetted before being deployed into production. A best practice is to run the latest stable release of Oracle VM. As of this writing, the latest stable Oracle VM release is 3.1.1 with the
Oracle VM Manager 3.1.1-625 patch (patch ID 14227416).
Tip: To support the Oracle VM 3.1.1 release, from the Oracle Unbreakable Linux Network, please subscribe your yum server to the Oracle VM 3.1.1 Server Installation Media copy RPM channel and the Oracle VM 3.1.1 Server Patches RPM channels. Patch jobs using the latest RPM channel will update hosts to their respected latest version update with the latest software patches, updates and fixes. A patch job executed on a Oracle VM 3.1.1 host using the latest RPM channel would update the host from 3.1.1 to 3.2.x with the latest software patches, updates and fixes.
The relevant parts of Oracle VM releases are:
- Major release numbers: 2.1, 2.2, 3.0, 3.1 and 3.2
- Minor release numbers: 2.1.x, 2.2.x and 3.0.x
Oracle VM 3.0.1 Release
- Oracle VM 3.0.1 was released on August 23rd 2011. Oracle VM 3.0.1 was the first Oracle VM 3.0 release.
Oracle VM 3.0.2 Release
- Oracle VM 3.0.2 was released on September 30th 2011. Oracle VM 3.0.2 includes over 140 fixes without any new features.
Oracle VM 3.0.3 Release
- Oracle VM 3.0.3 was released on Janurary 20th 2012. Oracle VM 3.0.3 includes numerious bug fixes along with several new features.
Oracle VM 3.1.1 Release
- Oracle VM 3.1.1 was released on May 8th 2012. Oracle VM 3.1.1 includes numerious bug fixes along with several new features.
Oracle VM 3.2.1 Release
- Oracle VM 3.2.1 was released on Janurary 18th 2013. Oracle VM 3.2.1 includes numerious bug fixes along with several new features.
Oracle VM 3.2.2 Release
- Oracle VM 3.2.2 was released on March 18th 2013. Oracle VM 3.2.2 includes numerious bug fixes.
Even after a fresh installation of Oracle VM Manager, if a patch update is available, a best practice is to patch Oracle VM Manager before using Oracle VM Manager to avoid previously patched bugs. When updating Oracle VM, Oracle VM Manager must be updated first, followed by the Oracle VM Servers managed by Oracle VM Manager. As of this writing (04-14-2013), there are three Oracle VM Manager patch updates; Oracle VM Manager Release 3.0.3.546, Oracle VM Manager Release 3.1.1.625, and Oracle VM Manager Release 3.2.2.521.
Table 1 lists the Oracle VM Manager Patch Updates.
Oracle VM uses the concept of a "server pool" to group together and centrally manage one or more server pools with up to 32 Oracle VM servers per server pool. If more than one location exists, Oracle VM server pools may be dispersed to different locations. Oracle VM Manager with Oracle Enterprise Manager 12c Cloud Control provide comprehensive centralized virtual infrastructure and cloud lifecycle management for one or more dispersed Oracle VM server pools.
The Oracle VM product family; Oracle VM Server, Oracle VM Manager, Oracle VM Templates and Assemblies can be managed with Oracle VM Manager and Cloud Control. Unlike Oracle VM 2.x, which could only be managed by Oracle VM Manager or Oracle Enterprise Manager Grid Control, not both, Oracle VM 3.0.2 and above can be managed simultaneously by Oracle VM Manager along with Cloud Control.
Oracle VM is a default Cloud Control feature that provides Infrastructure as a Service (IaaS), Database as a Service (DBaaS), Platform as a Service (PaaS) and Testing as a Service (TaaS) provisioning with a self-service portal. Oracle VM can be enabled in Cloud Control by installing an Oracle Management Agent with the Virtualization plug-in on a managed Linux target with Oracle VM Manager. Once Oracle VM is enabled, Oracle VM Servers, virtual machines, Oracle VM Templates and Assemblies can be managed, monitored and provisioned with Cloud Control.
Tip: Oracle VM Servers, pools, storage, networks, virtual machines, templates, assemblies, etc, can be setup using Oracle VM Manager and/or Cloud Control.
Table 2 contrasts the high-level feature set from Oracle VM Manager and Oracle Enterprise Manager 12c Cloud Control.
|
Capabilities
|
Oracle VM Manager
|
Cloud Control
|
|
Centralized Virtual Infrastructure Life Cycle Management (Oracle VM Server Pools, Oracle VM Servers, Networks, Storage, Virtual Machines, Templates, Assemblies)
|
|
|
|
Self Service Provisioning:
- Infrastructure as a Service (IaaS)
- Database as a Service (DBaaS)
- Platform as a Service (PaaS)
- Testing as a Service (TaaS)
|
|
|
|
Operating System Life Cycle Management:
- Provisioning
- Patching
- Configuration Management
- Monitoring
- Alerting with Automated Help Desk Ticketing
(Physical and Virtual: Oracle VM, Linux, UNIX & Windows)
|
|
|
|
Application Life Cycle Management:
- Database
- Middleware
- Applications
(Oracle and non Oracle)
|
|
|
|
Software Provisioning (Oracle and non Oracle)
|
|
|
Oracle VM Manager is a traditional Oracle application consisting of an Oracle Database, one Oracle WebLogic server hosting J2EE web applications with a browser based application development framework (ADF) GUI. All of the Oracle VM Manager components are supported exclusively on Oracle Linux and Red Hat Enterprise Linux 5U5 x86_64 bit or later and Oracle Linux and Red Hat Enterprise Linux 6+. In the context of Oracle VM Manager, the Oracle Database repository stores configuration data for Oracle VM server pools, including the data displayed in the GUI as well as the data collected by the Oracle VM Server Agents. WebLogic is the J2EE platform which hosts Oracle VM Manager (GUI) and the Core API. The Oracle VM Manager application and the Core API are deployed on WebLogic in the Oracle Middleware home. The Oracle Middleware home is the parent directory of the Oracle WebLogic Server home. 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.
The Oracle VM Manager installer provides two installation options. Oracle VM 3.0.1 up to 3.1.1 offers a Demo or Production installation. Oracle VM 3.2.1 and above offers a Simple or Custom installation.
Table 3 Shows the Oracle VM Manager Installaion Options.
|
Installation Option
|
Explanation
|
|
Simple Installation
Oracle VM 3.2.1 and Above
|
A Simple installation is an all-in-one installation with Oracle MySQL Enterprise Edition v5.5, WebLogic 11g, and the Oracle VM Manager applications.
A Simple installation is fully supported for production environments.
|
|
Custom or Production Installation
All Oracle VM Releases
|
Custom and Production Oracle VM Manager installations are identical and will install WebLogic 11g with the Oracle VM Manager applications using an existing local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database.
Custom and Production installations are fully supported for production environments.
Oracle VM 3.2.1 and above use the word Custom for a local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database installation.
Oracle VM 3.0.1 up to 3.1.1 use the word Production for a local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database installation.
|
|
Demo Installation
Oracle VM 3.0.1 up to 3.1.1
|
A Demo installation is an all-in-one installation with Oracle 11g Express Database, WebLogic 11g, and the Oracle VM Manager applications.
A Demo installation is intended only for evaluations, not for production environments. Demo installations are a great option for testing.
Note: A Demo installation is not supported by Cloud Control or Oracle support due to the use of the Oracle 11g Express Database, which is a free unsupported version of the Oracle Database.
|
For large environments (>33 hosts), the Oracle VM Manager Database repository should be on dedicated virtual or physical servers. If your Oracle VM environment starts out small and scales out, make sure to have a plan to scale up Oracle VM Manager with more RAM and CPUs and scale out the Oracle VM Manager Database repository on dedicated virtual or physical servers with RAC.
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 can be accessed from Linux, MAC and Windows using Firefox 3.5 and above, Safari 5.0 and above, Chrome 1.0 and above and Internet Explorer 9.0 and above on Windows.
The following table shows the Oracle VM Manager Installation Roadmap:
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
Oracle VM Manager Hardware and Software Requirements
Table 4 shows the hardware and software requirements for Oracle VM Manager.
|
Items
|
Demo (11g Express) Installation Minimum Requirements
Up to Oracle VM 3.1.1
|
Simple (MySQL) Installation Minimum Requirements
Oracle VM 3.2.1 and above
|
Custom/Production (11g EE) Installation Minimum Requirements
All Oracle VM Releases
|
|
RAM
|
4 GB
|
8 GB |
1.5 GB without an Oracle Database - 4 GB is recommended
6 GB with an Oracle Database Standard Edition or Enterprise Edition
|
|
CPU Type
|
64 bit
|
64 bit |
64 bit
|
|
Processor Speed
|
1.83 GHz*1
|
1.83 GHz*1 |
1.83 GHz*1
|
|
Swap Space
|
2.1 GB
|
2.1 GB |
2.1 GB with SE or EE Oracle Database
|
|
Hard Disk Space
|
5 GB in /u01
2 GB in /tmp
|
5.5 GB in /u01
2 GB in /tmp
500 MB in /var
500 MB in /usr
|
12 GB in /u01
2 GB in /tmp
|
|
Operating System
|
Oracle & Red Hat Enterprise Linux 5 Update 5 64-bit or later
Oracle & Red Hat Enterprise Linux 6 64-bit or later
|
Oracle & Red Hat Enterprise Linux 5 Update 5 64-bit or later
Oracle & Red Hat Enterprise Linux 6 64-bit or later
|
Oracle & Red Hat Enterprise Linux 5 Update 5 64-bit or later
Oracle & Red Hat Enterprise Linux 6 64-bit or later
|
|
RPM Packages
|
libaio, bc, unzip
|
unzip |
Without an Oracle Database: unzip
With a SE or EE Oracle Database:
- 5U5 oracle-validated, unzip
- 6.x oracle-rdbms-server-11gR2-preinstall, unzip
|
| Oracle Database Standard Edition or Enterprise Edition Release |
|
|
Oracle Database Release 10.2.0.4 or greater Oracle Database Release 11.1.0.7 or greater Oracle Database Release 11.2.0.1 or greater |
Oracle VM Manager Inter Component Communication and Data Exchange
The Oracle VM Manager GUI, 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 5 shows the default ports used by Oracle VM Manager.
|
Port
|
Usage
|
|
TCP 7001
|
Client PC to the Oracle VM Manager GUI (HTTP). |
| TCP 7002 |
Client PC to the Oracle VM Manager GUI (HTTPS). |
| TCP 15901 |
Client PC to Oracle VM Manager for the Secure VNC Proxy. 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. |
| TCP 8080 |
Client PC to to the Oracle Database XE web console (HTTP). Only for Oracle Database 11g Express Edition (XE). |
| TCP 22 |
Client PC to Oracle VM Server for SSH access |
| TCP 7788 |
Client PC to Cloud Control (HTTP) |
| TCP 7799 |
Client PC to Cloud Control (HTTPS) |
| TCP 8899 |
Oracle VM Manager to Oracle VM Agent |
| TCP 6900-6999 (one port per VM) |
Oracle VM Manager to Oracle VM Server for virtual machine VNC access/tunneling. |
| TCP 7900-7999 (one port per VM) |
Oracle VM Manager to Oracle VM Server for virtual machine serial console access/tunneling. |
| TCP 1521 |
Oracle VM Manager to the Oracle Database listener. Only for remote Oracle Database 11g Standard Edition or Enterprise Edition. |
| TCP 7001 |
Oracle VM Server to Oracle VM Manager for the HTTP console. |
|
TCP 7002
|
Oracle VM Server to Oracle VM Manager for the HTTPS console.
|
|
TCP 54322 tcps
|
Oracle VM Server to the Oracle VM Manager Core API.
Note: Since Oracle VM 3.1, tcps is required for Oracle Enterprise Manager integration.
|
| UDP 123 |
Oracle VM Server to Oracle VM Manager for NTP. If iptables is enabled on the Oracle VM Manager host, ensure that UDP port 123 is open. |
| TCP 3872 |
Oracle Management Service to Oracle Management Agent |
| ICMP 7 |
Oracle Management Service to Oracle Management Agent |
| TCP 4889-4897 |
Oracle Management Agent to Oracle Management Service Upload (HTTP). The upload port is the first available port in the range 4889-4897. |
| TCP 1159, 4899-4908 |
Oracle Management Agent to Oracle Management Service Upload (HTTPS). 1159 is the default port. If 1159 is not available, the Oracle Management Service will search in the specified range (4889-4897). |
Figure 1 shows the Oracle VM Manager intra component communication and data exchange.
Download the Oracle VM Manager Installation Media
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
From the Sign In page, enter your Oracle.com user name and password, then click the Sign In button.
Once authenticated, accept the registration/export regulations to access to the Oracle VM and Oracle Linux Media.
Figure 4 shows the registration/export regulations form.
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
Oracle Software Delivery Cloud. 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
Oracle Software Delivery Cloud portal.
Figure 5 shows the Media Pack Search page.

From the Media Pack Search page, click the desired Oracle VM 3.x Media Pack radio button, then the Continue button, or click the Oracle VM 3.x Media Pack hyperlink to go directly to the download page.
Figure 6 shows the Oracle VM Media Pack page.

From the Oracle VM Server 3.x Media Pack for x86 (64 bit) download page, click the desired Oracle VM Manager Revision Download button to download the Oracle VM media pack.
Tip: Oracle VM is distributed as Open Source software, therefore the source code is also available along with the ISO image. The Source Code is not used for the Oracle VM installation.
The next Figure shows the Oracle VM Media Pack page.
The Oracle VM Manager media is packaged 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. Once the zip file is downloaded, use your favorite zip utility to unzip the 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.
Oracle VM Manager Prerequisite Packages
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
Oracle VM Manager 3.x has a total of two operating system prerequisite packages, libaio 0.3.104 or above, which is only necessary with the Oracle XE Database and unzip 3.3.2.4.2 or above. To check if a Linux host has the libaio and unzip packages, as root, type “ rpm -qa libaio unzip” as shown in the next example.
# rpm -qa libaio unzip
unzip-5.52-3.el5
libaio-0.3.106-5
libaio-0.3.106-5
The above example shows that the Oracle VM Manager host has both of the prerequisite packages.
If your Oracle VM Manager host is missing one or both of the prerequisite packages, both RPM packages are available at the Oracle Unbreakable Linux Network, the Oracle public yum repository and on the Oracle Linux media.
If your Oracle VM Manager host is registered with Oracle Unbreakable Linux Network, as root, type “up2date -i libaio” and/or “up2date -i unzip” for Oracle Linux 5 systems, or “yum install libaio” and/or “yum install unzip” for Oracle Linux 6 systems.
To install the RPMs from the Oracle public yum repository, for Oracle Linux 6 systems, as root type the following commands:
# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-el6.repo
# yum install libaio
and/or
# yum install unzip
For Oracle Linux 5 systems, as root type the following commands:
# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-el5.repo
# yum install libaio
and/or
# yum install unzip
To install the libaio and/or the unzip RPMs from the Oracle Linux DVD or ISO file, as root, mount the DVD or ISO file, cd to the directory with the RPMs, and type “rpm -ivh libaio-<version>.rpm” and/or “rpm -ivh unzip-<version>.rpm”.
The next example shows how to download and mount the Oracle Linux installation media file and install RPMs from the installation media.
- Download the Oracle Linux installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal portal.
- Copy the Oracle Linux installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”.
- Change (cd) to the /media directory, i.e. “cd /media and type "find /media -name <RPM NAME> -print" to locate the RPMs.
- Change (cd) to the directory with the RPMs, and type "rpm -ivh libaio-<version>.rpm” and/or “rpm -ivh unzip-<version>.rpm”.
The Oracle VM Manager Host /etc/hosts Requirements
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
All Oracle technology products, including Oracle VM Manager, rely on a properly formatted /etc/hosts file. The hostname in the /etc/hosts file must be associated with the server's public IP address.
The next example shows the proper syntax for an Oracle Linux 5 /etc/hosts file. Note that the localhost entries are on one line, and the IP address with the long and short names are on the next line.
127.0.0.1 localhost.localdomain localhost
192.168.4.8 servername.com servername
The next example shows the proper syntax from an Oracle Linux 6 /etc/hosts file. Note that the localhost entries are on one line, and the IP address with the long and short names are on the next line.
192.168.3.9 servername.com servername
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
An /etc/hosts file can be edited by the root user by typing “vi /etc/hosts”.
The Oracle VM Manager Host NTP Requirements
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
With Oracle VM, accurate time is essential to maintain system stability due to time-sensitive cluster transactions between Oracle VM Servers. Without accurate time, Oracle VM clusters can be brought to a complete standstill.
By default, Oracle VM Servers that are discovered by Oracle VM Manager are configured to use the Oracle VM Manager host as the upstream NTP time host. Oracle VM Manager hosts must have NTP installed and configured to synchronize with upstream Coordinated Universal Time (UTC) sources as well as provide time services to Oracle VM pool members.
The Network Time Protocol (NTP) is used to synchronize computer clocks over a network to a common timebase, usually UTC. UTC is the worlds primary time standard used to regulate clocks and time. There are numerous upstream public UTC time sources that allow the public to synchronize with them.
Oracle Linux and Red Hat Enterprise Linux ship with a default /etc/ntp.conf file that points to three of Red Hat's upstream public UTC time sources. A best practice is to have two internal NTP servers on your local network to provide time services for internal systems and devices. Using internal time servers normalizes system event time-stamps across the Enterprise as well as reduces NTP Internet bandwidth usage.
Oracle VM Manager Host NTP Configuration Roadmap:
1- Install NTP on the Oracle VM Manager host
2- Configure the upstream public UTC time sources
3- Disable the default "noquery" option for the Oracle VM Server Management network and restart the NTP service
4- Validate upstream synchronization by using the ntpq command
1- Install NTP on the Oracle VM Manager host
To validate if the NTP RPM is installed on the Oracle VM Manager host, as root, type "rpm -qa ntp".
The next example shows the output from "rpm -qa ntp" on an Oracle VM Manager host with the NTP RPM installed.
# rpm -qa ntp
ntp-4.2.4p8-2.el6.x86_64
If your Oracle VM Manager host is missing the NTP RPM, the NTP RPM is available at the Oracle Unbreakable Linux Network, the Oracle public yum repository and on the Oracle Linux media.
If your Oracle VM Manager host is registered with Oracle Unbreakable Linux Network, as root, type “up2date -i ntp” for Oracle Linux 5 systems, or “yum install ntp” for Oracle Linux 6 systems followed by "chkconfig ntpd on".
To install the NTP RPM from the Oracle public yum repository, for Oracle Linux 6 systems, as root type the following commands:
# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-el6.repo
# yum install ntp
# chkconfig ntpd on
For Oracle Linux 5 systems, as root type the following commands:
# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-el5.repo
# yum install ntp
# chkconfig ntpd on
To install the NTP RPM from the Oracle Linux DVD or ISO file, as root, mount the DVD or ISO file, cd to the directory with the NTP rpm, and type “rpm -ivh ntp”.
The next example shows how to mount the Oracle Linux ISO file.
- Download the Oracle Linux installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal portal.
- Copy the Oracle Linux installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”.
- Change (cd) to the /media directory, i.e. “cd /media and type "find /media -name ntp -print" to locate the RPM.
- Change (cd) to the directory with the ntp rpm, and type “rpm -ivh ntp”.
- Next, type "chkconfig ntpd on" to automatically start the NTP service when the host boots.
2- Configure the upstream public UTC time sources
An Oracle VM Manager ntp.conf file should use two local NTP servers as the upstream UTC time sources as well as disable the default "noquery" option for the Oracle VM Server Management network. Oracle VM Servers that are discovered by Oracle VM Manager will be configured to use the Oracle VM Manager host as the NTP time host.
The next example shows the default /etc/ntp.conf NTP servers settings for Oracle Linux and Red Hat Enterprise Linux.
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org
As root, edit the /etc/ntp.conf file and replace the Red Hat upstream public UTC time sources with your local NTP servers fully qualified domain names (FQDN) or IP addresses.
3- Disable the default "noquery" option for the Oracle VM Server Management network and restart the NTP service
Next, disable the default "noquery" option for the Oracle VM Server Management network. The next example shows the default /etc/ntp.conf "noquery" option.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Uncomment the line by removing "#", replace 192.168.1.0 with your Oracle VM Server Management network address, and replace 255.255.255.0 with the mask of your Oracle VM Server Management network.
Next, as root, restart the NTP server by typing "service ntpd restart".
# service ntpd restart
Shutting down ntpd: [ OK ]
Starting ntpd: [ OK ]
4- Validate upstream synchronization by using the ntpq command
Once the NTP service has been restarted, use the ntpq command to see the upstream servers with which the host is synchronized. ntpq -p lists the configured time servers, stratum, delay, poll, reach, offset and jitter values. For correct synchronization, the delay and offset values should be non-zero and the jitter value should be under 100.
As root, type "ntpq -p" as shown in the next example.
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================
+dns-pike.sf.mok 149.20.68.17 3 u 34 64 377 0.637 10.165 4.514
*ntp1.Rescomp.Be 128.32.206.55 3 u 61 64 377 28.341 5.549 4.854
Tip: An indication of improper synchronization is when the remote servers have jitter, delay and reach values of 0.
NTP Troubleshooting
-
NTP uses UDP port 123. If iptables is enabled on the Oracle VM Manager host, ensure that UDP port 123 is open.
-
NTP clients, i.e. Oracle VM Servers will only synchronize with upstream servers with a lower than 16 stratum. Once Oracle VM Servers are discovered by Oracle VM Manager, there will be several minute delay before synchronizing with the Oracle VM Manager host.
SELinux and Oracle VM Manager
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
Security Enhanced Linux (SELinux) is a default Linux feature that offers mandatory access controls using Linux kernel security modules (LSM) along with user-space tools. Security Enhanced Linux is not supported with Oracle VM Manager, and if enabled, Security Enhanced Linux will break Oracle VM Manager.
Note: Starting with Oracle Database 11g Release 2 (11.2), Security Enhanced Linux is supported for Oracle Linux 4, Red Hat Enterprise Linux 4, Oracle Linux 5, and Red Hat Enterprise Linux 5.
To confirm the status of SELinux, as root type sestatus as shown in the next example.
# sestatus
SELinux status: disabled
The above example shows a host with SELinux disabled.
Security Enhanced Linux can be temporarily disabled by typing "echo 0 > /selinux/enforce", as root. Security Enhanced Linux can be re-enabled by typing "echo 1 > /selinux/enforce", as root.
Security Enhanced Linux can be permanently disabled by changing the "SELINUX=enforcing" entry to "SELINUX=disabled" in the "/etc/selinux/config" file. Security Enhanced Linux can be re-enabled by changing the "SELINUX=disabled" entry to "SELINUX=enforcing" in the "/etc/selinux/config" file. A re-boot is required after changing the "SELINUX=” value to enable to new settings.
Disable IPv6
| Step 1 |
Step 2 |
Step 3 |
Step 4 |
| Download the Oracle VM Manager Installation Media |
Oracle VM Manager Prerequisites |
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
Even if IPv6 is not being used, IPv6 can still cause problems such a duplicate addresses with Oracle VM Manager (WebLogic). For example, IPv6 uses a dual stack protocol format that runs IPv4 and IPv6 at the same time. IPv6 creates an IPv6 interface for each IPv4 interface. WebLogic and many other Oracle technologies see the IPv6 interfaces as duplicate address. If IPv6 is not being used, a best practice is to disable IPv6.
For Oracle Linux 6+:
Add the following entries to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
To disable IPv6 on a running system, as root type:
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6
or
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
With IPv6 disabled, if X forwarding breaks, edit /etc/ssh/sshd_config and make one of the following changes:
(1) Change the line
#AddressFamily any
to
AddressFamily inet
(inet is ipv4 only; inet6 is ipv6 only)
or
(2) Remove the hash mark (#) in front of the line
#ListenAddress 0.0.0.0
Next, restart ssh.
Next, type chkconfig ip6tables off
Finally, remove the IPv6 entries in the /etc/hosts file to aviod "Bug 13652664 : AGENT DEPLOY FAILS WITH AGENT PORT PASSED BY USER IS BUSY" with Oracle Management Agent installations. The next example shows the Pv6 entries in the /etc/hosts file that should be removed.
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
For Oracle Linux 5+:
Add the following entries to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
To disable IPv6 on a running system, as root type:
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Finally, remove the IPv6 entries in the /etc/hosts file to aviod "Bug 13652664 : AGENT DEPLOY FAILS WITH AGENT PORT PASSED BY USER IS BUSY" with Oracle Management Agent installations. The next example shows the Pv6 entries in the /etc/hosts file that should be removed.
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Oracle VM Manager Environment Configuration Script
| Step 1 |
Step 2 |
Step 3 |
Step 4 |
| Download the Oracle VM Manager Installation Media |
Oracle VM Manager Prerequisites |
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
The createOracle.sh is on the Oracle VM Manager ISO file and can be used to setup the oracle user account, the /u01 directory and iptables for an Oracle VM Manager installation. The createOracle.sh script must be run as root. The createOracle.sh will perform the following tasks:
- Creates the dba group
- Creates the oracle user and adds the oracle user to the dba group
- Creates the /u01 directory
- Configures the /etc/security/limits.conf file
- Opens the required ports in iptables by editing the /etc/sysconfig/iptables file
To run the createOracle.sh script, as root, mount the Oracle VM Manager installer ISO file, change to the mount point and type “./createOracle.sh”.
The next example shows how to mount the Oracle VM Manager installation media and run the createOracle.sh script.
- Download the Oracle VM Manager installation media from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host, and unzip the file.
- Log in to the Oracle VM Manager 3.0 host as root.
- Mount the ISO file by typing “mount -o loop OracleVM-Manager-<VERSION>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Type “./createOracle.sh” to run the createOracle.sh script.
Oracle VM Manager installer expects a directory named /u01 with a minimum of 2.4 GB of available space. Oracle VM Manager and the Core API will be installed into the /u01/app/oracle directory. The “oracle” user account, in the “dba” group, must be the owner of the “/u01/app/oracle” directory.
The /u01 installation directory follows the Optimal Flexible Architecture (OFA) standard. The OFA Optimal Flexible Architecture is a set of recommendations for naming files and folders when installing and implementing an Oracle technology products.
The “/u01/app/oracle” directory can be created and prepared using the configuration script (createOracle.sh ) located in the Oracle VM Manager installation media, or as root by typing the following commands.
# mkdir -p /u01/app/oracle
# chown oracle:dba /u01/app/oracle
Tip: 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, tcp-54321 or tcps-54322, 15901 and 3872 as well as UDP 123.
To open the necessary ports in iptables, as root edit the /etc/sysconfig/iptables file and ensure that the following iptables rules are present.
# 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 54322 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3872 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p udp --dport 123 -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
Oracle VM Manager Simple Installation
| Step 1 |
Step 2 |
Step 3 |
Step 4 |
| Download the Oracle VM Manager Installation Media |
Oracle VM Manager Prerequisites |
Oracle VM Manager Simple Installation (Oracle VM 3.2 and Above) |
Oracle VM Manager Post Installation Checklist
|
The next example shows how to perform a Oracle VM Manager Simple installation (applicable for Oracle VM Release 3.2 and above). A Oracle VM Manager Simple installation is an all-in-one installation with Oracle MySQL Enterprise Edition v5.5, WebLogic 11g, and the Oracle VM Manager applications. A Oracle VM Manager Simple installation is fully supported for production environments.
Note: Restoring Oracle VM Manager includes using the UUID restore switch (-u, or --uuid) with the UUID of the Oracle VM Manager installation that will be restored. The Oracle VM Manager UUID is listed in the “.config ” file on the Oracle VM Manager host in the /u01/app/oracle/ovm-manager-3/ directory as well as in each server pool' .ovsrepo file (OVS_REPO_MGR_UUID=UUID) located in the pool file system. The UUID restore switch is used with the runInstall.sh script, i.e. ./runInstaller.sh -u UUID.
During an Oracle VM Manager Simple installation, the installation program asks for one password for all users created and used during the installation. The password cannot contain special characters and 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.
Tip: The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Verify that host name in the /etc/hosts file is associated with the server's public IP address.
- Run the installer script as root, by typing “./runInstaller.sh”
Note: Remember, do no select passwords containing special character (!;:# etc.)
# ./runInstaller.sh
Oracle VM Manager Release 3.2.2 Installer
Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2013-02-04-205536.log
Please select an installation type:
1: Simple (includes database if necessary)
2: Custom (using existing Oracle database)
3: Uninstall
4: Help
Select Number (1-4): 1
Starting production with local database installation ...
Verifying installation prerequisites ...
One password is used for all users created and used during the installation.
Enter a password for all logins used during the installation:
Enter a password for all logins used during the installation (confirm):
Verifying configuration ...
Start installing the configured components:
1: Continue
2: Abort
Select Number (1-2): 1
Step 1 of 9 : Database Software...
Installing Database Software...
Retrieving MySQL Database 5.5 ...
Unzipping MySQL RPM File ...
Installing MySQL 5.5 RPM package ...
Configuring MySQL Database 5.5 ...
Installing MySQL backup RPM package ...
Step 2 of 9 : Java ...
Installing Java ...
Step 3 of 9 : Database schema ...
Creating database 'ovs' ...
Creating user 'ovs' for database 'ovs'...
Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...
Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Installing Oracle ADF Patch...
Step 6 of 9 : Oracle VM ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...
Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...
Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Granting ovm-admin role to user 'admin' ...
Set Log Rotation ...
Disabling HTTP and enabling HTTPS...
Configuring Https Identity and Trust...
Configuring Weblogic parameters...
Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...
Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...
Retrieving Oracle VM Manager CLI tool ...
Extracting Oracle VM Manager CLI tool...
Installing Oracle VM Manager CLI tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Restarting Oracle VM Manager instance ...
Waiting for the application to initialize ...
Oracle VM Manager is running ...
Oracle VM Manager installed.
Please wait while WebLogic configures the applications... This can take up to 5 minutes.
Installation Summary
--------------------
Database configuration:
Database type : MySQL
Database host name : localhost
Database name : ovs
Database listener port : 49500
Database user : ovs
Weblogic Server configuration:
Administration username : weblogic
Oracle VM Manager configuration:
Username : admin
Core management port : 54321
UUID : 0004fb00000100004533d12e31e78b07
Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Database, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.
Oracle VM Manager UI:
https://<HOSTNAME>:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.
Please note that you need to install tightvnc-java on this computer to access a virtual machine's console.
For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/
Oracle VM Manager installation complete.
Please remove configuration file /tmp/ovm_configzvH9bi.
#
Oracle VM Manager was sucessfully installed.
Next, as suggested by the Oracle VM Manager installer, remove the configuration file in the /tmp directory (see your Oracle VM Manager install message for the file name).
# rm -fr /tmp/file-name
Figure 7 shows the Oracle VM Manager Login page.
To login to Oracle VM Manager, use the "admin" user account with the password entered during the installation. Figure 8 shows the Oracle VM Manager administrative console.

After a successful login, create a server pool by completing the following tasks:
- Discover the Oracle VM Servers
- Setup the Oracle VM Server's networking
- Setup the Networking for the server pool
- Setup NTP
- Setup a YUM server
- Create Tags (optional)
- Register a file server or a storage array
- Create a storage repository to host virtual machine resources
- Create a server pool
Oracle VM Manager Simple Uninstallation
The ability to quickly rebuild, remove and restore Oracle VM Manager is an essential Oracle VM lifecycle operation. If the goal of an Oracle VM Manager uninstall is to start over without the need to preserve previous Oracle VM server pools, simply uninstall and reinstall Oracle VM Manager. If the goal is to recover Oracle VM Manager, with previous Oracle VM server pools, uninstall and reinstall Oracle VM Manager using the UUID restore switch. A UUID Oracle VM Manager installation can be done with or without an Oracle VM Manager Database repository schema backup and restore operation. If the intent is to restore Oracle VM Manager database schema, an Oracle VM Manager uninstall may not be necessary. Regardless of the Oracle VM Manager uninstall intent, it is necessary to completely uninstall each of the Oracle VM Manager components.
The next example shows the steps to perform a Oracle VM Manager Simple uninstall (applicable for Oracle VM Release 3.2 and above).
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Run the installer script as root, by typing “./runInstaller.sh”
# ./runInstaller.sh
Oracle VM Manager Release 3.2.2 Installer
Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2013-04-10-192735.log
Please select an installation type:
1: Simple (includes database if necessary)
2: Custom (using existing Oracle database)
3: Uninstall
4: Help
Select Number (1-4): 3
Uninstall Oracle VM Manager
DB component : MySQL 5.5 RPM package
MySQL 5.5 RPM package installed by OVMM was found...
Uninstall options
1: Uninstall MySQL 5.5 RPM package
2: Skip uninstall of MySQL 5.5 RPM package
Select Number (1-2): 1
Removing MySQL 5.5 RPM package installation ...
Product component : Java in '/u01/app/oracle/java/'
Java is installed ...
Uninstall options
1: Uninstall Java
2: Skip uninstall of Java
Select Number (1-2): 1
Removing Java installation ...
Product component : Oracle VM Manager in '/u01/app/oracle/ovm-manager-3/'
Oracle VM Manager is installed ...
Uninstall options
1: Uninstall Oracle VM 3.2.2 Manager
2: Skip uninstall of Oracle VM 3.2.2 Manager
Select Number (1-2): 1
Removing Oracle VM Manager installation ...
Product component : Oracle WebLogic Server in '/u01/app/oracle/Middleware/'
Oracle WebLogic Server is installed
Uninstall options
1: Uninstall Oracle WebLogic Server
2: Skip uninstall of Oracle WebLogic Server
Select Number (1-2): 1
Removing Oracle WebLogic Server installation ...
Uninstall completed ...
#
Oracle VM Manager has been successfully uninstalled.
Oracle VM Manager Custom Installation
| Step 1 |
Step 2 |
Step 3 |
Step 4 |
| Download the Oracle VM Manager Installation Media |
Oracle VM Manager Prerequisites |
Oracle VM Manager Custom Installation (Oracle VM 3.2 and Above) |
Oracle VM Manager Post Installation Checklist
|
The next example shows how to perform a Oracle VM Manager Custom installation (Oracle VM 3.2 and Above). A Oracle VM Manager Custom installations will install WebLogic 11g with the Oracle VM Manager applications using an existing local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database. Oracle VM 3.2.1 and above use the word Custom for a local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database installation. Oracle VM Release 3.0.1 up to 3.1.1 use the word Production for a local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database installation. Custom and Production installations are fully supported for production environments.
Note: Restoring Oracle VM Manager includes using the UUID restore switch (-u, or --uuid) with the UUID of the Oracle VM Manager installation that will be restored. The Oracle VM Manager UUID is listed in the “.config ” file on the Oracle VM Manager host in the /u01/app/oracle/ovm-manager-3/ directory as well as in each server pool' .ovsrepo file (OVS_REPO_MGR_UUID=UUID) located in the pool file system. The UUID restore switch is used with the runInstall.sh script, i.e. ./runInstaller.sh -u UUID.
A Oracle VM Manager Custom installation require that a Oracle SE or EE Database has already been created. The Oracle VM Manager install program will ask for the Oracle Database System ID (SID), the Oracle Database SYSTEM password, the Oracle Database listener port (the default is 1521), the Oracle VM Manager database schema (the default name is “ovs”, any name can be used), and the Oracle VM Manager database schema password.
During the Oracle VM Manager installation, the installation program asks for the following passwords:
The Oracle VM Manager OVS Database schema password must be selected.
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.
Simple passwords will be rejected.
The Oracle 11g SE and EE Database SYSTEM password must be selected.
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 one digit and one alpha character.
Simple passwords will be rejected.
The Oracle WebLogic admin account password must be selected.
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
The Oracle VM Manager admin account must be selected.
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
Each service has a slightly different password policy. Select your passwords carefully to avoid installation errors and post installation challenges.
Tip: The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Verify that host name in the /etc/hosts file is associated with the server's public IP address.
- Run the installer script as root, by typing “./runInstaller.sh”
./runInstaller.sh
Oracle VM Manager Release 3.2.2 Installer
Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2013-04-10-180800.log
Please select an installation type:
1: Simple (includes database if necessary)
2: Custom (using existing Oracle database)
3: Uninstall
4: Help
Select Number (1-4): 2
Starting production installation ...
Verifying installation prerequisites ...
Database Repository
==========================
Use an existing database
Enter the Oracle Database hostname [localhost]:
Enter the Oracle Database System ID (SID) [ORCL]:
Enter the Oracle Database SYSTEM password:
Enter the Oracle Database listener port [1521]:
Enter the Oracle VM Manager database schema [ovs]:
Enter the Oracle VM Manager database password:
Enter the Oracle VM Manager database password (confirm):
Oracle Weblogic Server 11g
==========================
Enter the Oracle WebLogic Server 11g user [weblogic]:
Enter the Oracle WebLogic Server 11g user password:
Enter the Oracle WebLogic Server 11g user password (confirm):
Oracle VM Manager application
=============================
Enter the username for the Oracle VM Manager administration user [admin]:
Enter the admin user password:
Enter the admin user password (confirm):
Verifying configuration ...
Start installing the configured components:
1: Continue
2: Abort
Select Number (1-2): 1
Step 1 of 9 : Database Software...
Installing Database Software...
Database Software installation skipped ...
Step 2 of 9 : Java ...
Installing Java ...
Step 3 of 9 : Database schema ...
Creating database schema 'ovs' ...
Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...
Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Installing Oracle ADF Patch...
Step 6 of 9 : Oracle VM ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...
Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...
Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Granting ovm-admin role to user 'admin' ...
Set Log Rotation ...
Disabling HTTP and enabling HTTPS...
Configuring Https Identity and Trust...
Configuring Weblogic parameters...
Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...
Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...
Retrieving Oracle VM Manager CLI tool ...
Extracting Oracle VM Manager CLI tool...
Installing Oracle VM Manager CLI tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Restarting Oracle VM Manager instance ...
Waiting for the application to initialize ...
Oracle VM Manager is running ...
Oracle VM Manager installed.
Please wait while WebLogic configures the applications... This can take up to 5 minutes.
Installation Summary
--------------------
Database configuration:
Database type : OracleDB
Database host name : localhost
Database instance name (SID): ORCL
Database listener port : 1521
Application Express port : None
Oracle VM Manager schema : ovs
Weblogic Server configuration:
Administration username : weblogic
Oracle VM Manager configuration:
Username : admin
Core management port : 54321
UUID : 0004fb0000010000e6ff42a4f2dc0290
Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Database, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.
Oracle VM Manager UI:
https://<HOST NAME>:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.
Please note that you need to install tightvnc-java on this computer to access a virtual machine's console.
For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/
Oracle VM Manager installation complete.
Please remove configuration file /tmp/ovm_config2qR366.
#
Next, as suggested by the Oracle VM Manager installer, remove the configuration file in the /tmp directory (see your Oracle VM Manager install message for the file name).
# rm -fr /tmp/file-name
Figure 9 shows the Oracle VM Manager Login page.
To login to Oracle VM Manager, use the "admin" user account with the password entered during the installation. Figure 10 shows the Oracle VM Manager administrative console.
After a successful login, create a server pool by completing the following tasks:
-
Discover the Oracle VM Servers
-
Setup the Oracle VM Server's networking
-
Setup the Networking for the server pool
-
Setup NTP
-
Setup a YUM server
-
Create Tags (optional)
-
Register a file server or a storage array
-
Create a storage repository to host virtual machine resources
-
Create a server pool
Oracle VM Manager Custom Uninstallation
The ability to quickly rebuild, remove and restore Oracle VM Manager is an essential Oracle VM lifecycle operation. If the goal of an Oracle VM Manager uninstall is to start over without the need to preserve previous Oracle VM server pools, simply uninstall and reinstall Oracle VM Manager. If the goal is to recover Oracle VM Manager, with previous Oracle VM server pools, uninstall and reinstall Oracle VM Manager using the UUID restore switch. A UUID Oracle VM Manager installation can be done with or without an Oracle VM Manager Database repository schema backup and restore operation. If the intent is to restore Oracle VM Manager database schema, an Oracle VM Manager uninstall may not be necessary. Regardless of the Oracle VM Manager uninstall intent, it is necessary to completely uninstall each of the Oracle VM Manager components.
The next example shows the steps to perform a Oracle VM Manager Custom uninstall (Oracle VM 3.2 and Above).
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Verify that host name in the /etc/hosts file is associated with the server's public IP address.
- Run the installer script as root, by typing “./runInstaller.sh”
./runInstaller.sh
Oracle VM Manager Release 3.2.2 Installer
Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2013-04-10-190922.log
Please select an installation type:
1: Simple (includes database if necessary)
2: Custom (using existing Oracle database)
3: Uninstall
4: Help
Select Number (1-4): 3
Uninstall Oracle VM Manager
DB component : MySQL 5.5 RPM package
MySQL 5.5 RPM package is not installed by OVMM
Product component : Java in '/u01/app/oracle/java/'
Java is installed ...
Uninstall options
1: Uninstall Java
2: Skip uninstall of Java
Select Number (1-2): 1
Removing Java installation ...
Product component : Oracle VM Manager in '/u01/app/oracle/ovm-manager-3/'
Oracle VM Manager is installed ...
Uninstall options
1: Uninstall Oracle VM 3.2.2 Manager
2: Skip uninstall of Oracle VM 3.2.2 Manager
Select Number (1-2): 1
Removing Oracle VM Manager installation ...
Product component : Oracle WebLogic Server in '/u01/app/oracle/Middleware/'
Oracle WebLogic Server is installed
Uninstall options
1: Uninstall Oracle WebLogic Server
2: Skip uninstall of Oracle WebLogic Server
Select Number (1-2): 1
Removing Oracle WebLogic Server installation ...
Uninstall completed ...
#
Oracle VM Manager has been successfully uninstalled.
Oracle VM Manager Production Installation
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Oracle VM Manager Production Installaion (Oracle VM 3.0.1 up to 3.1.1)
|
Oracle VM Manager Post Installation Checklist
|
The next example shows how to perform a Oracle VM Manager Production installation (Oracle VM 3.0.1 up to 3.1.1). A Oracle VM Manager Production installations will install WebLogic 11g with the Oracle VM Manager applications using an existing local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database. Oracle VM Release 3.0.1 up to 3.1.1 use the word Production for a local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database installation. Oracle VM 3.2.1 and above use the word Custom for a local or remote Oracle 11g Standard or Enterprise Edition database and/or a RAC database installation. Custom and Production installations are fully supported for production environments.
Note: Restoring Oracle VM Manager includes using the UUID restore switch (-u, or --uuid) with the UUID of the Oracle VM Manager installation that will be restored. The Oracle VM Manager UUID is listed in the “.config ” file on the Oracle VM Manager host in the /u01/app/oracle/ovm-manager-3/ directory as well as in each server pool' .ovsrepo file (OVS_REPO_MGR_UUID=UUID) located in the pool file system. The UUID restore switch is used with the runInstall.sh script, i.e. ./runInstaller.sh -u UUID.
A Oracle VM Manager Production installation requires that a Oracle SE or EE Database has already been created. The Oracle VM Manager install program will ask for the Oracle Database System ID (SID), the Oracle Database SYSTEM password, the Oracle Database listener port (the default is 1521), the Oracle VM Manager database schema (the default name is “ovs”, any name can be used), and the Oracle VM Manager database schema password.
During the Oracle VM Manager installation, the installation program asks for the following passwords:
The Oracle VM Manager OVS Database schema password must be selected.
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.
Simple passwords will be rejected.
The Oracle 11g SE and EE Database SYSTEM password must be selected.
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 one digit and one alpha character.
Simple passwords will be rejected.
The Oracle WebLogic admin account password must be selected.
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
The Oracle VM Manager admin account must be selected.
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
Each service has a slightly different password policy. Select your passwords carefully to avoid installation errors and post installation challenges.
Tip: The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Verify that host name in the /etc/hosts file is associated with the server's public IP address.
- Run the installer script as root, by typing “./runInstaller.sh”
# ./runInstaller.sh
Oracle VM Manager Release 3.1.1 Installer
Oracle VM Manager Installer log file:
/tmp/install-2012-05-23-091242.log
Please select an installation type:
1: Demo
2: Production
3: Uninstall
4: Help
Select Number (1-4): 2
Starting production installation ...
Verifying installation prerequisites ...
Oracle Database Repository
==========================
Use an existing Oracle database
Enter the Oracle Database hostname [localhost]:
Enter the Oracle Database System ID (SID) [XE]: orcl
Enter the Oracle Database SYSTEM password:
Enter the Oracle Database listener port [1521]:
Enter the Oracle VM Manager database schema [ovs]:
Enter the Oracle VM Manager database schema password:
Enter the Oracle VM Manager database schema password (confirm):
Oracle Weblogic Server 11g
==========================
Enter the Oracle WebLogic Server 11g user [weblogic]:
Enter the Oracle WebLogic Server 11g user password:
Enter the Oracle WebLogic Server 11g user password (confirm):
Oracle VM Manager application
=============================
Enter the username for the Oracle VM Manager administration user [admin]:
Enter the admin user password:
Enter the admin user password (confirm):
Verifying configuration ...
Start installing the configured components:
1: Continue
2: Abort
Select Number (1-2): 1
Step 1 of 9 : Database ...
Installing Database ...
Database installation skipped ...
Step 2 of 9 : Java ...
Installing Java ...
Step 3 of 9 : Database Schema ...
Creating database schema 'ovs' ...
Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...
Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Installing Oracle ADF Patch...
Step 6 of 9 : Oracle VM ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...
Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...
Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Enabling HTTPS ...
Granting ovm-admin role to user 'admin' ...
Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...
Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Restarting Oracle VM Manager instance ...
Waiting 15 seconds for the application to initialize ...
Oracle VM Manager is running ...
Oracle VM Manager installed.
Please wait while WebLogic configures the applications... This can take up to 5 minutes.
Installation Summary
--------------------
Database configuration:
Database host name : localhost
Database instance name (SID): orcl
Database listener port : 1521
Application Express port : None
Oracle VM Manager schema : ovs
Weblogic Server configuration:
Administration username : weblogic
Oracle VM Manager configuration:
Username : admin
Core management port : 54321
UUID : 0004fb00000100004aa039092e1841f3
Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Oracle Database 11g XE, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.
Oracle VM Manager UI:
http://<ORACLE VM MANAGER HOST>:7001/ovm/console
https://<ORACLE VM MANAGER HOST>:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.
Please note that you need to install tightvnc-java on this computer to access a virtual machine's console.
For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/
Oracle VM Manager installation complete.
Please remove configuration file /tmp/ovm_configK5B1Xk.
#
Oracle VM Manager was sucessfully installed.
Next, as suggested by the Oracle VM Manager installer, remove the configuration file in the /tmp directory (see your Oracle VM Manager install message for the file name).
# rm -fr /tmp/file-name
Figure 11 shows the Oracle VM Manager Login page.
To login to Oracle VM Manager, use the "admin" user account with the password entered during the installation. Figure 12 shows the Oracle VM Manager administrative console.
After a successful login, create a server pool by completing the following tasks:
- Discover the Oracle VM Servers
- Setup the Oracle VM Server's networking
- Setup the Networking for the server pool
- Setup NTP
- Setup a YUM server
- Create Tags (optional)
- Register a file server or a storage array
- Create a storage repository to host virtual machine resources
- Create a server pool
Oracle VM Manager Production Uninstallation
The ability to quickly rebuild, remove and restore Oracle VM Manager is an essential Oracle VM lifecycle operation. If the goal of an Oracle VM Manager uninstall is to start over without the need to preserve previous Oracle VM server pools, simply uninstall and reinstall Oracle VM Manager. If the goal is to recover Oracle VM Manager, with previous Oracle VM server pools, uninstall and reinstall Oracle VM Manager using the UUID restore switch. A UUID Oracle VM Manager installation can be done with or without an Oracle VM Manager Database repository schema backup and restore operation. If the intent is to restore Oracle VM Manager database schema, an Oracle VM Manager uninstall may not be necessary. Regardless of the Oracle VM Manager uninstall intent, it is necessary to completely uninstall each of the Oracle VM Manager components.
The next example shows the steps to perform a Oracle VM Manager Production uninstall (applicable for Oracle VM 3.0.1 up to 3.1.1).
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Verify that host name in the /etc/hosts file is associated with the server's public IP address.
- Run the installer script as root, by typing “./runInstaller.sh”
# ./runInstaller.sh
Oracle VM Manager Release 3.1.1 Installer
Oracle VM Manager Installer log file:
/tmp/install-2012-06-01-064122.log
Please select an installation type:
1: Demo
2: Production
3: Uninstall
4: Help
Select Number (1-4): 3
Uninstall Oracle VM Manager
Product component : Oracle 11g XE in '/u01/app/oracle/product'
Oracle 11g XE is not installed
Product component : Java in '/u01/app/oracle/java/'
Java is installed ...
Uninstall options
1: Uninstall Java
2: Skip uninstall of Java
Select Number (1-2): 1
Removing Java installation ...
Product component : Oracle VM Manager in '/u01/app/oracle/ovm-manager-3/'
Oracle VM Manager is installed ...
Uninstall options
1: Uninstall Oracle VM 3.0 Manager
2: Skip uninstall of Oracle VM 3.0 Manager
Select Number (1-2): 1
Removing Oracle VM Manager installation ...
Product component : Oracle WebLogic Server in '/u01/app/oracle/Middleware/'
Oracle WebLogic Server is installed
Uninstall options
1: Uninstall Oracle WebLogic Server
2: Skip uninstall of Oracle WebLogic Server
Select Number (1-2): 1
Removing Oracle WebLogic Server installation ...
Uninstall completed ...
#
Oracle VM Manager has been successfully uninstalled.
Oracle VM Manager Demo Installation
| Step 1 |
Step 2 |
Step 3 |
Step 4 |
| Download the Oracle VM Manager Installation Media |
Oracle VM Manager Prerequisites |
Oracle VM Manager Demo Installation (Oracle VM 3.0.1 up to 3.1.1) |
Oracle VM Manager Post Installation Checklist
|
The next example shows how to perform a Demo Oracle VM Manager installation (applicable for Oracle VM Release 3.0.1 up to 3.1.1). Please note that a Demo installation is not supported by Oracle Enterprise Manager or Oracle support due to the use of the Oracle 11g XE Database. The Oracle 11g XE Database is a free unsupported release of the Oracle Database.
Note: Restoring Oracle VM Manager includes using the UUID restore switch (-u, or --uuid) with the UUID of the Oracle VM Manager installation that will be restored. The Oracle VM Manager UUID is listed in the “.config ” file on the Oracle VM Manager host in the /u01/app/oracle/ovm-manager-3/ directory as well as in each server pool' .ovsrepo file (OVS_REPO_MGR_UUID=UUID) located in the pool file system. The UUID restore switch is used with the runInstall.sh script, i.e. ./runInstaller.sh -u UUID.
During an Oracle VM Manager Demo installation, the installation program asks for the following passwords:
- 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 must be selected. The password cannot contain special characters and 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.
- The Oracle WebLogic admin account password must be selected. The password must be between 8 and 16 characters in length and must have at least 1 lower case and 1 upper case letter. The password must have at least 1 numeric value or special character
- The Oracle VM Manager admin account password must be selected. The password must be between 8 and 16 characters in length and must have at least 1 lower case and 1 upper case letter. The password must have at least 1 numeric value or special character
Each service has a slightly different password policy. Select your passwords carefully to avoid installation errors and post installation challenges.
Tip: The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Verify that host name in the /etc/hosts file is associated with the server's public IP address.
- Run the installer script as root, by typing “./runInstaller.sh”
# ./runInstaller.sh
Oracle VM Manager Release 3.1.1 Installer
Oracle VM Manager Installer log file:
/tmp/install-2012-09-11-212603.log
Please select an installation type:
1: Demo
2: Production
3: Uninstall
4: Help
Select Number (1-4): 1
Starting demo installation ...
The Demo installation type will use an XE database. The usage of XE is for *demo purposes only* and is not supported for production. Please *do not* plan to start with XE and migrate to a supported version of the database as this may not be possible. For production environments or any long term usage please use the "Production" option with an SE or EE database.
1: Continue
2: Abort
Select Number (1-2): 1
Verifying installation prerequisites ...
One password is used for all users created and used during the installation.
Enter a password for all logins used during the installation:
Enter a password for all logins used during the installation (confirm):
Verifying configuration ...
Start installing the configured components:
1: Continue
2: Abort
Select Number (1-2): 1
Step 1 of 9 : Database ...
Installing Database ...
Retrieving Oracle Database 11g XE ...
Installing Oracle Database 11g XE ...
Configuring Oracle Database 11g XE ...
Step 2 of 9 : Java ...
Installing Java ...
Step 3 of 9 : Database Schema ...
Creating database schema 'ovs' ...
Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...
Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Installing Oracle ADF Patch...
Step 6 of 9 : Oracle VM ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...
Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...
Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Enabling HTTPS ...
Granting ovm-admin role to user 'admin' ...
Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...
Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Restarting Oracle VM Manager instance ...
Waiting 15 seconds for the application to initialize ...
Oracle VM Manager is running ...
Oracle VM Manager installed.
Please wait while WebLogic configures the applications... This can take up to 5 minutes.
Installation Summary
--------------------
Database configuration:
Database host name : localhost
Database instance name (SID): XE
Database listener port : 1521
Application Express port : 8080
Oracle VM Manager schema : ovs
Weblogic Server configuration:
Administration username : weblogic
Oracle VM Manager configuration:
Username : admin
Core management port : 54321
UUID : 0004fb000001000080fc581c280f9d86
Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Oracle Database 11g XE, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.
Oracle VM Manager UI:
http://<HOSTNAME>:7001/ovm/console
https://<HOSTNAME>:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.
Please note that you need to install tightvnc-java on this computer to access a virtual machine's console.
For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/
Oracle VM Manager installation complete.
Please remove configuration file /tmp/ovm_configuREcOz.
#
Oracle VM Manager was sucessfully installed.
Next, as suggested by the Oracle VM Manager installer, remove the configuration file in the /tmp directory (see your Oracle VM Manager install message for the file name).
# rm -fr /tmp/file-name
Figure 12 shows the Oracle VM Manager Login page.
To login to Oracle VM Manager, use the "admin" user account with the password entered during the installation. Figure 13 shows the Oracle VM Manager administrative console.
After a successful login, create a server pool by completing the following tasks:
- Discover the Oracle VM Servers
- Setup the Oracle VM Server's networking
- Setup the Networking for the server pool
- Setup NTP
- Setup a YUM server
- Create Tags (optional)
- Register a file server or a storage array
- Create a storage repository to host virtual machine resources
- Create a server pool
Oracle VM Manager Demo Uninstallation
The ability to quickly rebuild, remove and restore Oracle VM Manager is an essential Oracle VM lifecycle operation. If the goal of an Oracle VM Manager uninstall is to start over without the need to preserve previous Oracle VM server pools, simply uninstall and reinstall Oracle VM Manager. If the goal is to recover Oracle VM Manager, with previous Oracle VM server pools, uninstall and reinstall Oracle VM Manager using the UUID restore switch. A UUID Oracle VM Manager installation can be done with or without an Oracle VM Manager Database repository schema backup and restore operation. If the intent is to restore Oracle VM Manager database schema, an Oracle VM Manager uninstall may not be necessary. Regardless of the Oracle VM Manager uninstall intent, it is necessary to completely uninstall each of the Oracle VM Manager components.
The next example shows the steps to perform a Oracle VM Manager Demo uninstall (applicable for Oracle VM 3.0.1 up to 3.1.1).
- Download the Oracle VM Manager installation media (not source) from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
- Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host.
- Log in to the Oracle VM Manager host as root, and unzip the file.
- Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /media”
- Change to the /media directory, i.e. “cd /media.
- Verify that host name in the /etc/hosts file is associated with the server's public IP address.
- Run the installer script as root, by typing “./runInstaller.sh”
./runInstaller.sh
Oracle VM Manager Release 3.0.3 Installer
Oracle VM Manager Installer log file:
/tmp/ovmm-installer.selfextract_gx5525/install-2011-09-10-160853.log
Please select an installation type:
1: Demo
2: Production
3: Uninstall
4: Help
Select Number (1-4): 3
Uninstall Oracle VM Manager
Product component : Oracle 11g XE in '/u01/app/oracle/product'
Oracle 11g XE is installed ...
Uninstall options
1: Uninstall Oracle 11g XE
2: Skip uninstall of Oracle 11g XE
Select Number (1-2): 1
Removing Oracle 11g XE installation ...
Product component : Java in '/u01/app/oracle/java/'
Java is installed ...
Uninstall options
1: Uninstall Java
2: Skip uninstall of Java
Select Number (1-2): 1
Removing Java installation ...
Product component : Oracle VM Manager in '/u01/app/oracle/ovm-manager-3/'
Oracle VM Manager is installed ...
Uninstall options
1: Uninstall Oracle VM 3.0 Manager
2: Skip uninstall of Oracle VM 3.0 Manager
Select Number (1-2): 1
Removing Oracle VM Manager installation ...
Product component : Oracle WebLogic Server in '/u01/app/oracle/Middleware/'
Oracle WebLogic Server is installed
Uninstall options
1: Uninstall Oracle WebLogic Server
2: Skip uninstall of Oracle WebLogic Server
Select Number (1-2): 1
Removing Oracle WebLogic Server installation ...
Uninstall completed ...
#
Oracle VM Manager has been successfully uninstalled.
Oracle VM Manager Post Installation Checklist
|
Step 1
|
Step 2
|
Step 3
|
Step 4
|
|
Download the Oracle VM Manager Installation Media
|
Oracle VM Manager Prerequisites
|
Install Oracle VM Manager
|
Oracle VM Manager Post Installation Checklist
|
After installing Oracle VM Manager, please review and complete the tasks on the post-installation checklist.
1. Enable the Virtual Machine VNC and Serial Consoles
Applicable to all Oracle VM 3.x Releases.
Oracle VM Manager utilizes the Remote Access Service (RAS) java applet to proxy virtual machine VNC and serial console connections from an Oracle VM Server's ovm-consoled service to your desktop. To enable the VNC and serial console, download and install the TightVNC RPM package and the Java Telnet Application (JTA2) RPM package on the Oracle VM Manager host. The TightVNC and Java Telnet Application (JTA2) packages can be downloaded and installed in any directory, i.e. /tmp on the Oracle Linux host.
Note: I recommend installing the RealVNC client on your workstation to connect to the virtual machine VNC console. The RealVNC client is more full featured than the default TightVNC client.
There is only one VNC packages for both Oracle Linux 5 and 6, and the following two Java Telnet Application (JTA2) RPM packages for Oracle Linux 5 and 6:
JTA (Oracle Linux 5): http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/jta-2.6-1.noarch.rpm
JTA (Oracle Linux 6): http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/jta-2.6-1.noarch.rpm
The next example shows how to download and install the TightVNC and Java Telnet Application (JTA2) packages on a Oracle Linux 6 Oracle VM Manager host.
# cd /tmp
# wget http://oss.oracle.com/oraclevm/manager/RPMS/tightvnc-java-1.3.9-3.noarch.rpm
# wget http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/jta-2.6-1.noarch.rpm
# rpm -ivh tightvnc-java*
warning: tightvnc-java-1.3.9-3.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 1e5e0159: NOKEY
Preparing... ########################################### [100%]
1:tightvnc-java ########################################### [100%]
# rpm -ivh jta-2.6-1.noarch.rpm
Preparing... ########################################### [100%]
1:jta ########################################### [100%]
2. Download and Install the Oracle VM Manager Utilities
Applicable to all Oracle VM 3.x Releases.
The Oracle VM utilities provide a command line interface to the Oracle VM Manager Core API. The Oracle VM utilities allows Oracle VM Manager administrative tasks to be performed from the command line or executed using scripts.
Tip: The Oracle VM utilities are a great command line alternative to Oracle VM Manager and offer exceptional performance over WAN connections when Oracle VM Manager is not an option.
There are a total of seven [7] Oracle VM utilities:
- ovm_managercontrol
- ovm_poolcontrol
- ovm_repocontrol
- ovm_servercontrol
- ovm_vmcontrol
- ovm_vmdisks
- ovm_vmmessage
The Oracle VM utilities are available as a patch download from http://support.oracle.com. As of this writing the latest release is patch 13602094. Once downloaded, unzip the files on the Oracle VM Manager host in the /u01/app/oracle/ovm-manager-3 directory.
# unzip ovm_utils_0.5.2.zip -d /u01/app/oracle/ovm-manager-3
Archive: ovm_utils_0.5.2.zip
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_servercontrol
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_repocontrol
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_vmmessage.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_poolcontrol.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_repocontrol.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_vmcontrol.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_servercontrol.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_managercontrol.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_vmdisks.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_managercontrol
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmdisks
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmmessage
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmcontrol
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmPoolControl.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmCoreControl.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmMessage.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmBackup.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmRepoControl.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmControl.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmServerControl.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_poolcontrol
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/commons-logging.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/OvmClient.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/log4j.jar
3. VMPinfo3 Installation for Diagnostic Capture & Troubleshooting
Applicable to all Oracle VM 3.x Releases.
VMPinfo3 is a modified version of sosreport for Oracle VM. VMPinfo3 is a set of tools with a command line interface that use the Oracle VM API to collect log files and troubleshooting information from Oracle VM Server pools. VMPinfo3 runs from the Oracle VM Manager host and collects and consolidates log files from each Oracle VM Server managed by Oracle VM Manager.
Tip: VMPinfo3 is Oracle support's primary tool for working Oracle VM Service Requests (SRs). To expedite your Oracle VM SRs, always include a VMPinfo3 diagnostic capture.
Table 6 Shows the Oracle VM VMPInfo3 Support Matrix:
|
Oracle VM Release
|
Default Feature
|
Command to Run VMPinfo3
|
|
Oracle VM 3.0.2 up to 3.1.1
|
NO
Note: VMPinfo is not installed by default
|
# cd /home/oracle
# ./vmpinfo3.sh --username=admin --password=PASSWORD
Note: The diagnostic capture will be created in the /tmp directory with the following name, date and format “vmpinfo3-<date-time>.tar.bz2”.
|
|
Oracle VM 3.2 and Above
|
YES
Note: VMPinfo is installed by default
|
# cd /u01/app/oracle/ovm-manager-3/ovm_shell/tools/vmpinfo
# ./vmpinfo3.sh --username=admin --password=PASSWORD
Note: The diagnostic capture will be created in the /tmp directory with the following name, date and format “vmpinfo3-<date-time>.tar.bz2”.
|
Applicable for Oracle VM 3.0.1 up to 3.1.1:
VMPinfo3 consists of two RPM packages. The vmpinfo-manager-1.0.0-1.noarch.rpm RPM is installed on the Oracle VM Manager host. The vmpinfo-sosreport-1.0.3-1.noarch.rpm RPM is installed on each Oracle VM Server. The VMPinfo3 RPMs are downloadable from My Oracle Support via ID 1364933.1.
Once you have downloaded the VMPinfo3 RPMs, copy the vmpinfo-manager-1.0.0-1.noarch.rpm RPM to the Oracle VM Manager host, and vmpinfo-sosreport-1.0.3-1.noarch.rpm RPM to each Oracle VM Server.
On the Oracle VM manager host, as root type “rpm -ivh vmpinfo-manager-1.0.0-1.noarch.rpm”
to install the vmpinfo-manager RPM.
On Oracle VM Server 3.1.1 and above, before installing the vmpinfo-sosreport-1.0.3-1.noarch.rpm RPM, remove the conflicting “vmpinfo3-sosreport-1.0.0-4.el5.noarch” RPM package by typing “rpm -e “vmpinfo3-sosreport-1.0.0-4.el5.noarch”. Next, type “rpm -ivh vmpinfo-sosreport-1.0.3-1.noarch.rpm” to install vmpinfo3-sosreport.
To run VMPinfo3 and create a diagnostic capture, access the Oracle VM Manager host as the oracle user, and change to the “/home/oracle/vmpinfo3/” directory. From the vmpinfo3 directory, run the vmpinfo3.sh script as show in the next example.
$ cd vmpinfo3/
$ ./vmpinfo3.sh --username=admin --password=<ADMIN PASSWORD>
The password used for the vmpinfo3.sh script is for the Oracle VM Manager “admin” user account. The diagnostic capture will be created in the /tmp directory with the following name, date and format “vmpinfo3-<date-time>.tar.bz2”.
4. Patch Oracle VM Manager
Applicable to Oracle VM 3.0.3, 3.1.1 and 3.2.2
Even after a fresh installation of Oracle VM Manager, if a patch update is available, a best practice is to patch Oracle VM Manager before using Oracle VM Manager to avoid previously fixed bugs. When updating Oracle VM, Oracle VM Manager must be updated first, followed by the Oracle VM Servers managed by Oracle VM Manager. As of this writing (04-14-2013), there are three Oracle VM Manager patch updates; Oracle VM Manager Release 3.0.3.546, Oracle VM Manager Release 3.1.1.625, and Oracle VM Manager Release 3.2.2.521.
Table 7 lists the Oracle VM Manager Patch Updates.
|
Oracle VM Release
|
Latest Oracle VM Patch Update
Available From My Oracle Support
|
Oracle VM Upgrades
Available From eDelivery
|
|
Oracle VM 3.0.1
|
|
|
|
Oracle VM 3.0.2
|
|
Oracle VM Manager 3.0.2 - Upgrade only
upgrade Oracle VM Manager 3.0.1
|
|
Oracle VM 3.0.3
|
Patch 13614645: ORACLE VM MANAGER PATCH 3.0.3-546 RELEASE
|
Oracle VM Manager 3.0.3 - Upgrade only
Upgrade from Oracle VM Manager 3.0.1 or Oracle VM Manager 3.0.2
|
|
Oracle VM 3.1.1
|
Patch 14227416: ORACLE VM MANAGER PATCH 3.1.1-625 RELEASE (Patch)
|
Oracle VM Manager 3.1.1 - Upgrade only
Upgrade from Oracle VM Manager 3.0.2 or Oracle VM Manager 3.0.3
|
|
Oracle VM 3.2.1
|
|
Oracle VM Manager 3.2.1 - Upgrade only
Upgrade from Oracle VM Manager 3.0.3 or Oracle VM Manager 3.1.1
|
|
Oracle VM 3.2.2 (Build 520)
|
Patch 16410417: ORACLE VM 3.2.3 MANAGER UPGRADE ISO RELEASE (Patch) (Build 521)
|
Oracle VM Manager 3.2.2 - Upgrade only
Upgrade from Oracle VM Manager 3.0.3 or Oracle VM Manager 3.1.1
|
I actually have a whole chapter of the Oracle Cloud Cookbook,
Oracle VM Patch Updates, devoted to applying patch updates to Oracle VM Manager and Oracle VM Server.
5. Create Oracle VM Manager Admin Users
A best practice is to create an individual user account for each administrator that access Oracle VM Manager. Oracle VM Manager has two default administrative user accounts; the admin user account and the weblogic user account (lowercase). The passwords for the admin and the weboigic accounts are set during the Oracle VM Manager installation. By default Oracle VM Manager user accounts are local user accounts that are stored and managed using WebLogic and the ovm_admin script. User accounts can be created, deleted, listed, modified, locked, and unlocked using WebLogic and the Oracle VM Manager ovm_admin script.
Oracle VM Manager does not support role based access control. All administrative users with access to the Oracle VM Manager GUI have root administrative access to all of the objects managed by Oracle VM Manager. If role based access control is a requirement, role based access control can be configured for Oracle VM Manager using Enterprise Manager Cloud Control. With Cloud Control, each object managed by Oracle VM Manager can be configured using role based access control. The Oracle VM product family; Oracle VM Server, Oracle VM Manager, Oracle VM Templates and Assemblies can be managed with Oracle VM Manager and Oracle Enterprise Manager 12c Cloud Control. Unlike Oracle VM 2.x, which could only be managed by Oracle VM Manager or Oracle Enterprise Manager, not both, Oracle VM 3 and above can be managed simultaneously by Oracle VM Manager along with Oracle Enterprise Manager 12c Cloud Control.
Tip: Oracle VM Manager as well as Enterprise Manager support LDAP integration for user management and authentication.
User accounts can be created, deleted, listed, modified, locked, and unlocked using the Oracle VM Manager ovm_admin script.
Table 8 shows the ovm_admin script options. Type /u01/app/oracle/ovm-manager-3/bin/ovm_admin --help to list the options.
| Options |
| --help |
Shows this message |
| --createuser <admin> <password> |
Create new Oracle VM Manager admin user |
| --deleteuser <admin> |
Delete Oracle VM Manager admin user |
| --listusers |
List Oracle VM Manager users |
| --modifyuser <admin> <password> <new_password> |
Modify Oracle VM Manager user password |
| --lockusers <tries> |
Max login tries before locking account. This setting is global. |
| --unlockuser <admin> |
Unlock user account |
| --modifyds <SID> <host> <port> <schema> <password> |
Modify Data Store 'OVMDS' |
| --listconfig |
List configuration |
| --rotatelogsdaily <time> |
Rotate Logs Daily (HH:MM) |
| --rotatelogsbysize <size> |
Rotate Logs By Size (KB) |
The following examples how how to create, list, modify and delete an Oracle VM Manager administrative users. The example user name is user1. Change the example user name user1 to the desired user name.
As root, access an Oracle VM Manager host, and type "/u01/app/oracle/ovm-manager-3/bin/ovm_admin --createuser" as shown in the next example.
# /u01/app/oracle/ovm-manager-3/bin/ovm_admin --createuser
Oracle VM Manager Release 3.2.3 Admin tool
Please enter the username : user1
Please enter the password for user1 (minimum 8 chars. with one numeric/special char.) :
Please re-enter the password :
Please enter the password for weblogic :
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to WebLogic server ...
Connected ...
Creating user 'user1' ...
Created user 'user1' successfully ...
Exiting...
The next examples how how to list the Oracle VM Manager administrative users. As root, access an Oracle VM Manager host, and type "/u01/app/oracle/ovm-manager-3/bin/ovm_admin --listusers" as shown in the next example.
# /u01/app/oracle/ovm-manager-3/bin/ovm_admin --listusers
Oracle VM Manager Release 3.2.3 Admin tool
Please enter the password for weblogic :
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to WebLogic server ...
Connected ...
Listing Oracle VM users ...
User : admin
User : user1
Listed users successfully ...
Exiting...
The next examples how how to change an Oracle VM Manager administrative users password. As root, access an Oracle VM Manager host, and type "/u01/app/oracle/ovm-manager-3/bin/ovm_admin --modifyuser" as shown in the next example.
# /u01/app/oracle/ovm-manager-3/bin/ovm_admin --modifyuser
Oracle VM Manager Release 3.2.3 Admin tool
Please enter the username : user1
Please enter the current password :
Please enter a new password for user1 (minimum 8 chars. with one numeric/special char.) :
Please re-enter the password :
Please enter the password for weblogic :
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to WebLogic server ...
Connected ...
Modifying user 'roddyr' ...
Failed to modify user 'roddyr' ...
Exiting...
The next examples how how to delete an Oracle VM Manager administrative users password. As root, access an Oracle VM Manager host, and type "/u01/app/oracle/ovm-manager-3/bin/ovm_admin --deleteuser username" as shown in the next example.
# /u01/app/oracle/ovm-manager-3/bin/ovm_admin --deleteuser user1
Oracle VM Manager Release 3.2.3 Admin tool
Please enter the password for weblogic :
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to WebLogic server ...
Connected ...
Deleting user 'user1' ...
Deleted user 'user1' successfully ...
Exiting...
Oracle VM Manager Log Files and Log File Analysis
When things go wrong with Oracle VM Manager, being able to quickly determine the “root cause” of an issue can eliminate or reduce down time. The most effective way to identify problems with Oracle VM Manager is to analyze the WebLogic application logs on the Oracle VM Manager host.
The WebLogic application logs contain all of the Oracle VM Manager messages. The WebLogic application logs are located in the following directory:
/u01/app/oracle/ovm-manager-3/machine1/base_adf_domain/servers/AdminServer/logs
Table 8 lists each of the WebLogic application logs for Oracle VM Manager.
| Log File Name |
Description |
| access.log |
The access.log shows each GET and POST method for Oracle VM Manager. |
| AdminServer-diagnostic.log |
The AdminServer-diagnostic.log shows the WebLogic Admin Server's diagnostic logs. |
| AdminServer.log |
The AdminServer.log shows the WebLogic Admin Server's logs. |
| base_adf_domain.log |
The base_adf_domain.log shows the Oracle Application Development Framework (ADF) logs. |
Use grep to quickly find errors, i.e.
grep -i "error" /u01/app/oracle/ovm-manager-3/machine1/base_adf_domain/servers/AdminServer/logs/AdminServer*
Restore Oracle VM Manager
The ability to quickly restore Oracle VM Manager is an essential Oracle VM lifecycle operation. If the goal is to start over without the need to preserve previous Oracle VM server pools, a restore is not necessary, simply uninstall and reinstall Oracle VM Manager. If the goal is to recover Oracle VM Manager, with previous Oracle VM server pools, uninstall and reinstall Oracle VM Manager using the UUID restore switch. The UUID restore switch enables Oracle VM Manager to re-discover existing server pools without interrupting running Oracle VM Servers and virtual machines. A Oracle VM Manager UUID restore installation can be done with or without an Oracle VM Manager Database repository schema backup and restore opertaion. If the intent is to restore Oracle VM Manager database schema, Oracle VM Manager would only need to be uninstalled and reinstalled, if it is crashed and is unrecoverable. Regardless of the Oracle VM Manager recovery use case (excluding a Database repository schema restore), if Oracle VM Manager is installed on the host to be recovered, it is necessary to completely uninstall each of the Oracle VM Manager components.
If Oracle VM Manager is installed on the host to be restored, Oracle VM Manager must be completely uninstalled before conducting the Oracle VM Manager installation using the UUID restore option. Uninstalling Oracle VM Manager wipes the previous Oracle VM Manager installation without disrupting existing server pool configurations. Oracle VM Server pool configurations are saved in each Oracle VM Server pool's pool file system (poolfs). Uninstalling Oracle VM Manager with its Database repository does not delete a server pool's configurations. If the goal of a reinstall is to start over without previous pools, simply uninstall and reinstall Oracle VM Manager. If the goal is to recover Oracle VM Manager with previous pools, uninstall and reinstall Oracle VM Manager using the UUID restore switch.
Restoring Oracle VM Manager includes a Oracle VM Manager installation with the UUID restore switch (-u, or --uuid) using the UUID from the previous Oracle VM Manager installation, followed by discovering the Oracle VM Server, and configurating the storage in Oracle VM Manager. The UUID restore switch enables Oracle VM Manager to re-discover existing server pools. If a production Oracle VM Manager system crashes and is unrecoverable, a fresh installation of Oracle VM Manager using the UUID restore switch will have no impact to the running Oracle VM Servers and virtual machines. Oracle VM Manager can be restored without interrupting running Oracle VM Servers and virtual machines.
Oracle VM Manager Restore Roadmap
1- Delete the Standard or Enterprise Edition Oracle VM Manager Database Repository (This step is only for Custom and Production Installations. XE and MySQL Databases are removed as part of a the uninstall).
2- Completely uninstall Oracle VM Manager using the runInstaller script.
3- Install Oracle VM Manager using the runInstaller script with the UUID restore switch.
4- From Oracle VM Manager Discover the Oracle VM Servers and Configure the Storage
Delete the Standard or Enterprise Edition Oracle VM Manager Database Repository (This step is only for Production Installations. XE and MySQL Databases are removed as part of the uninstall).
The first step to uninstall a Custom or Production Oracle VM Manager installation is to remove the Oracle VM Manager database repository schema. There are two options, the first option is to access the Oracle VM Manager database repository and drop the OVS user and the OVMM_PROFILE profile. The second option is to access the Oracle VM Manager host and run the ovm_upgrade.sh script with the switches to remove Oracle VM Manager database repository.
The first step is to stop Oracle VM Manager, i.e. the ovmm service. As root type "service ovmm stop" to stop Oracle VM Manager.
The next example shows the steps to drop the OVS user from the Oracle VM Manager database repository using sqlplus. The following sqlplus example uses the "oracle" user account with the environment variables set in the ~/.bash_profile file. If the account you are using does not have the environment variables set, and your unable to run sqlplus, please engage your DBA for assistance.xx
# sqlplus / AS SYSDBA
SQL> drop user ovs cascade;
User dropped.
SQL>
Note: Only for Oracle VM 3.2.x and above, it is also necessary to delete the OVMM_PROFILE. Fro example, with the OVMM_PROFILE the Oracle VM installer throws the "ORA-02379: profile OVMM_PROFILE already exists" error and prompty fails. The next example shows how to drop the OVMM_PROFILE.
SQL> drop profile OVMM_PROFILE cascade;
Profile dropped.
SQL>
The next example shows the steps to delete the Oracle VM Manager database repository using the ovm_upgrade.sh script.
Note: Replace the bold sections with the proper entries for your enviroment.
# chmod 755 /u01/app/oracle/ovm-manager-3/ovm_upgrade/bin/ovm_upgrade.sh
# /u01/app/oracle/ovm-manager-3/bin/ovm_upgrade.sh --dbhost=localhost --dbport=1521 --dbsid=orcl --dbuser=ovs --dbpass=PASSWORD --deletedb
COMMAND: /u01/app/oracle/ovm-manager-3/ovm_upgrade/bin/ovm_upgrade.sh --dbhost=localhost --dbport=1521 --dbsid=orcl --dbuser=ovs --dbpass=PASSWORD --deletedb
Using existing transform XSL files
Copying deleted classes files to patch path location
`./deletedClasses.xml' -> `/tmp/ovmpatches/deletedClasses.xml'
INFO (OvmUpgrade.java:206) Oracle OVM Manager Upgrade Processor
INFO (OvmUpgrade.java:207)
INFO (OvmUpgrade.java:488) Upgrade Initialization Starting
INFO (OdofDirector.java:220) Oracle Distributed Object Fabric (ODOF): Copyright (C) 2007, 2012 Oracle. All rights reserved.
INFO (OdofDirector.java:221) ODOF Version: 1.0.0.0
INFO (OdofDirector.java:222) Initializing...
INFO (OdofDirector.java:279) Initialization Complete!
INFO (OvmUpgrade.java:490) Upgrade Initialization Complete
INFO (WipeDbStage.java:23) Database Wipe Starting
INFO (ObjectStore.java:613) Wiping Exchange
INFO (RelationalStore.java:542) Initializing / Clearing Database Tables
INFO (ObjectStore.java:641) Wiping Complete!
INFO (WipeDbStage.java:26) Database Wipe Complete
Oracle VM Manager Installation with the UUID Restore Switch
Restoring Oracle VM Manager includes a Oracle VM Manager installation with the UUID restore switch (-u, or --uuid) using the UUID from the previous Oracle VM Manager installation, followed by discovering the Oracle VM Server, and configurating the storage in Oracle VM Manager. The UUID restore switch enables Oracle VM Manager to re-discover existing server pools. Oracle VM Manager can be restored without interrupting running Oracle VM Servers and virtual machines.
The Oracle VM Manager UUID is listed in the following three files:
- On the Oracle VM Manager host, the “.config ” file in the Oracle VM Manager home /u01/app/oracle/ovm-manager-3/
- On the Oracle VM Manager host, the /etc/sysconfig/ovmm file
- The .ovsrepo file in the pool file system (in the quorum disk), i.e. /poolfsmnt/UUID/.ovsrepo
The next example shows the content of the .config file with the Oracle VM Manager UUID in bold.
# cat /u01/app/oracle/ovm-manager-3/.config
DBHOST=localhost
SID=orcl
LSNR=1521
APEX=None
OVSSCHEMA=ovs
WLSADMIN=weblogic
OVSADMIN=admin
COREPORT=54321
UUID=0004fb00000100009edfaa0f93184f44
BUILDID=3.0.3.126
The next example shows the content of the ovmm file with the Oracle VM Manager UUID in bold.
# cat /etc/sysconfig/ovmm
RUN_OVMM=YES
JVM_MEMORY_MAX=4096m
JVM_MAX_PERM=512m
DBBACKUP=/u01/app/oracle/mysql/dbbackup
DBBACKUP_CMD=/opt/mysql/meb-3.8/bin/mysqlbackup
UUID=0004fb00000100009edfaa0f93184f44
The next example shows the content of the .ovsrepo file with the Oracle VM Manager UUID in bold.
# cat .ovsrepo
OVS_REPO_UUID=0004fb0000030000554308a6997a6b2f
OVS_REPO_MGR_UUID=0004fb00000100009edfaa0f93184f44
OVS_REPO_VERSION=3.0
The next example shows how to restore the Oracle VM Manager pool with UUID=0004fb00000100009edfaa0f93184f44.
# ./runInstaller.sh -u 0004fb00000100009edfaa0f93184f44
Discover the Oracle VM Servers and Configure the Storage
UNDER CONSTRUCTION
The following images show a complete UUID restore.
Figure 14
Figure 15
Oracle VM Manager Backups
Before upgrading Oracle VM Manager, a best practice is to backup the Oracle VM Manager configuration file as well as the Oracle VM Manager Database repository. To be able to restore Oracle VM Manager from backup, a backup of the Oracle VM Manager configuration file and the Oracle VM Manager Database repository is required.
To restore Oracle VM Manager from backup, a backup of the Oracle VM Manager hosts' “.config” file is used with the Oracle VM Manager runInstaller.sh script to re-install Oracle VM Manager using the backed up configurations. The runInstaller.sh script is located in the Oracle VM Manager ISO image. When Oracle VM Manager is re-installed with a backup of the .config file, Oracle VM Manager can re-discover the Oracle VM Servers, repositories and virtual machines resources.
Tip: The Oracle VM Manager installation parameters can be listed by running “runInstaller.sh -h”.
If the Oracle VM Manager Database repository needs to be restored from backup, access the Database system and restore the Oracle VM Manager ovs database schema from a backup.
In the event that Oracle VM Manager configurations need to be modified to restore from backup, the “ovm_admin" utility is used to modify Oracle VM Manager configurations. The next example shows the help file from the ovm_admin utility.
/u01/app/oracle/ovm-manager-3/bin/ovm_admin --help
Oracle VM Manager Release 3.2.3 Admin tool
Table 10 shows the ovm_admin options: /u01/app/oracle/ovm-manager-3/bin/ovm_admin [options]
| Options |
| --help |
Shows this message |
| --createuser <admin> <password> |
Create new Oracle VM Manager admin user |
| --deleteuser <admin> |
Delete Oracle VM Manager admin user |
| --listusers |
List Oracle VM Manager users |
| --modifyuser <admin> <password> <new_password> |
Modify Oracle VM Manager user password |
| --lockusers <tries> |
Max login tries before locking account. This setting is global. |
| --unlockuser <admin> |
Unlock user account |
| --modifyds <SID> <host> <port> <schema> <password> |
Modify Data Store 'OVMDS' |
| --listconfig |
List configuration |
| --rotatelogsdaily <time> |
Rotate Logs Daily (HH:MM) |
| --rotatelogsbysize <size> |
Rotate Logs By Size (KB) |
Backup Oracle VM Manager Configuration File
The Oracle VM Manager configuration file “.config ” is located on the Oracle VM Manager host(s) in the /u01/app/oracle/ovm-manager-3/ directory. The next example shows the syntax of the Oracle VM Manager .config file.
DBHOST=<THE HOSTNAME OF THE DATABASE SERVER>
SID=<ORACLE DATABASE SID>
LSNR=<THE LISTENER PORT FOR THE DATABASE>
APEX=<THE APPLICATION EXPRESS PORT>
OVSSCHEMA=<THE DEFAULT ORACLE VM MANAGER DATABASE SCHEMA NAME>
WLSADMIN=<THE DEFAULT WEBLOGIC SERVER ADMIN NAME>
OVSADMIN=<THE DEFAULT ORACLE VM MANAGER ADMIN NAME>
COREPORT=<THE DEFAULT ORACLE VM MANAGER CORE PORT>
UUID=<THE ORACLE VM MANAGER UUID>
The next example shows a .config file from a production Oracle VM Manager host.
# cat /u01/app/oracle/ovm-manager-3/.config
# cat .config
DBHOST=localhost
SID=orcl
LSNR=1521
APEX=None
OVSSCHEMA=ovs
WLSADMIN=weblogic
OVSADMIN=admin
COREPORT=54321
UUID=0004fb00000100009edfaa0f93184f44
BUILDID=3.1.1.305
FROMVERSION=3.0.3
TOVERSION=3.1.1
Before backing up the .config file, Oracle VM Manager must be shut down. To shut down Oracle VM Manager, access the Oracle VM Manager host as the root user, and type “service ovmm stop”, as shown in the next example.
# service ovmm stop
Stopping Oracle VM Manager [ OK ]
Once Oracle VM Manager is stopped, backup the /u01/app/oracle/ovm-manager-3/.config. The next example shows how to backup the .config file in the root users home directly with a descriptive name “ovm-back-” and the date.
# zip -9r /~ovm-back-`hostname -s`-`date +%F`.zip /u01/app/oracle/ovm-manager-3/.config
Once the .config file is backed up, start Oracle VM Manager by typing “service ovmm start” as shown in the following example.
# service ovmm start
Starting Oracle VM Manager [ OK ]
Oracle VM Manager Database Repository Backup
Once the Oracle VM Manager configuration file is backed up, and Oracle VM Manager is running, the Oracle VM Manager repository should be backed up. Oracle recommends a full database repository backup. If you're brave, “only” backup the ovs schema.
The following example shows how to do a full Oracle Express, Standard or Enterprise Edition Database repository backup using the exp utility.
Note: The exp utility is one of many applications that can be used to do a full Oracle VM Manager Database repository backup.
The exp utility can be run in one of three modes: interactive dialogue, controlled through bypassed parameters and parameter file controlled. For the sake of brevity, we will use the interactive dialogue mode to do a full Oracle VM Manager 11g Standard or Enterprise Edition Database repository backup.
The exp utility usage is a field unto itself, a detailed review is beyond the scope of this book. The goal of this section is to explain how to do a full Oracle VM Manager 11g Standard or Enterprise Edition Database repository backup using the exp utility.
Oracle 11g Standard or Enterprise Edition Database Repository Backup
The following example shows how to do a full Oracle VM Manager 11g Standard or Enterprise Edition Database repository backup using the exp utility.
Log into the Oracle VM Manager Database repository system as the oracle user, or as root and type “su - oracle” to change to the oracle user.
Tip: The exp utility help files are available by typing “exp help=yes”
# su - oracle
$ exp
Export: Release 11.1.0.6.0 - Production on Tue Oct 4 14:03:33 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Username: <USER NAME>
Password: <PASSWORD>
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Enter array fetch buffer size: 4096 >
Export file: expdat.dmp >
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > 1
Export grants (yes/no): yes >
Export table data (yes/no): yes >
Compress extents (yes/no): yes >
/
Export terminated successfully with warnings.
The above example creates a back up of the Database repository named expdat.dmp in the working directory.
The next example shows how to backup “only” the Oracle VM Manager 11g Standard or Enterprise Edition Database repository ovs schema. Change the user name and password for your environment.
$ exp USERID=<USER NAME>/<PASSWORD> OWNER=ovs FILE=exp_ovs.dmp
Export: Release 11.1.0.6.0 - Production on Mon Oct 3 16:24:09 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8MSWIN1252 character set (possible charset conversion)
/
Export terminated successfully with warnings.
How to Backup an Oracle 11g Express Database Repository
The next example shows how to backup an Oracle 11g Express Database repository using the exp utility.
Log into the Oracle VM Manager host as the oracle user, or as root and type “su - oracle” to change to the oracle user. As the oracle user type the following commands to backup the Oracle VM Manager 11g XE Database repository.
Note: Replace <PASSWORD> with the ovs database schema password that was selected during the Oracle VM Manager installation. In the below example a file named “ovsbackup.dmp” is created in the /tmp directory. Any name or directory can be used with the “file=” argument.
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=XE