Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
sales@mokumsolutions.com
Copyright 2014 Mokum Solutions, Inc. All rights reserved.
Distribution of the Oracle Cloud Cookbook or derivative of the work in any form
is prohibited unless prior permission is obtained from the Copyright holder.
About Mokum Solutions, Inc.
Founded in March 2011, Mokum Solutions, Inc. specializes in the implementation,
delivery and support of Oracle technologies in private and public clouds. Mokum
corporate headquarters are located in San Francisco, CA http://mokumsolutions.com
or call 1 415 252 9164
About the Author
The author of the Oracle Cloud Cookbook is none other than the owner of
Mokum Solutions, Inc., Roddy Rodstein. Roddy is one of the most respected
Oracle Cloud Computing experts, having designed and managed many of the
worlds largest and most complex Oracle private clouds. Before establishing
Mokum in March 2011, Roddy spent three years at Oracle on the Oracle VM
and Oracle Linux team designing and supporting Oracle's largest and most
complex customer environments. Before Oracle, Roddy spent six years at Citrix,
designing and supporting Citrix's largest and most complex customer environments,
Including Oracle's. With Mr. Rodsteins rich background and knowledge, there
can be no better resource for revealing the Oracle Cloud recipe.
Audience
The Oracle Cloud Cookbook is a comprehensive, field tested reference design that
guides you through each step to move to your Oracle software portfolio to an elastic
Oracle cloud using the Oracle VM product line, Oracle Linux, Oracle Engineered
Systems managed by Oracle Enterprise Manager 12c, with total control over Oracle
processor licensing.
http://mokumsolutions.com
Table of Contents
Oracle VM Releases
Oracle VM Upgrade Roadmap
How to Backup Oracle VM Manager
How to Backup an Oracle VM Manager Conguration File
How to Backup an Oracle VM Manager Database Repository
MySQL Enterprise Edition Database Repository Backup
How to Backup an Oracle VM Manager Standard or Enterprise Edition Database Repository
How to Backup an Oracle VM Manager Express Database Repository
How to Download the Oracle VM Upgrade Media from the Oracle Linux and Oracle VM Cloud Portal
How to Mount the Oracle VM Manager Media and Run the runUpgrader.sh Script
Oracle VM Server Upgrade, Updates and Patching with a Yum Server
Oracle Yum Server Congurtaion Road Map
Register the Oracle Linux Yum Server with the Oracle Unbreakable Linux Network
Install and congure Apache on the Oracle Linux Yum Server
Oracle Unbreakable Linux Network Yum Server Conguration
Populate and Synchronize the Yum Server with Oracle Unbreakable Linux Network
Oracle VM Manager Yum Server Conguration
Appendix
Patch Update Fails with BUILD FAILED Message
Upgrade Oracle VM Manager Build 3.1.1.305
Change Log
Revision
Change Description
Updated By
Date
1.0
First Release
Roddy Rodstein
10/05/11
1.1
Roddy Rodstein
01/20/12
1.2
Roddy Rodstein
05/09/12
1.3
Roddy Rodstein
12/12/12
1.4
Roddy Rodstein
04/20/14
Oracle VM Releases
At Oracle OpenWorld 2007, Oracle announced its entry into the x86 server virtualization market with the rst release of Oracle
VM. The rst 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 13 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.2.7 with
Oracle VM Manager 3.2.7 Build 730.
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 xes. 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 xes.
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 rst Oracle VM 3.0 release.
Oracle VM 3.0.2 Release
4 of 21
http://mokumsolutions.com
Oracle VM 3.0.2 was released on September 30th 2011. Oracle VM 3.0.2 includes over 140 xes 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 numerous bug xes 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 numerous bug xes 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 numerous bug xes 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 numerous bug xes.
Oracle VM 3.2.6 Release
Oracle VM 3.2.6 was released on October 11th 2013. Oracle VM 3.2.6 includes numerous bug xes.
Oracle VM 3.2.7 Release
Oracle VM 3.2.7 was released on December 5th 2013. Oracle VM 3.2.7 includes numerous bug xes.
Oracle VM 3.2.8 Release
Oracle VM 3.2.8 was released on April 4th 2014. Oracle VM 3.2.8 includes numerous bug xes.
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
rst, followed by the Oracle VM Servers managed by Oracle VM Manager. As of this writing (5-2-2014), 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.8.733.
Starting with Oracle VM 3.1.1-625, My Oracle Support only maintains the latest patch update. For example, when Oracle VM
3.2.8-733 was released on April 4th 2014, Oracle VM Manager 3.2.2 Build 520, 521, 524, 726, 730 where retired and replaced with
3.2.8-733.
Tip: Oracle VM server (dom0) updates or upgrades may overwrite custom multipath.conf les. Make a backup of custom
multipath.conf les before updates or upgrades to be able to recover from an overwritten custom multipath.conf le.
Table 1 lists the Oracle VM Manager Patch Updates.
Oracle VM Release
Available From eDelivery
Oracle VM Upgrades
Available From eDelivery
5 of 21
http://mokumsolutions.com
6 of 21
http://mokumsolutions.com
Note: The default path can be changed to accommodate disk space requirements.
To conrm the existence of the Oracle VM Manager MySQL backups, on the Oracle VM Manager host change to the /u01/app/oracle
/mysql/dbbackup directory, and list the contents of the directory. The next example shows how to change to the /u01/app/oracle/mysql
/dbbackup directory and list its contents.
# cd /u01/app/oracle/mysql/dbbackup
# ls -lart
If your daily backups are failing, it is possible to run a manual backup. As root, access the Oracle VM Manager host, and follow these
steps:
# cd /u01/app/oracle/ovm-manager-3/bin
# ./createBackup.sh
Backing up the Oracle VM Manager MySQL Database...
Please enter the Oracle VM manager user name: admin
Please enter the Oracle VM manager user password:
INFO: Succesfully backed up database as AutoFullBackup-20130911_212701
If the above command fails, check if both services are running:
# /etc/init.d/ovmm status
Oracle VM Manager is running...
# /etc/init.d/ovmm_mysql status
MySQL running (1977) [ OK ]
If ether of the two services are not running, restart the failed service.
Manual backups are also retained for 15 backups, before being automatically removed. Using the -n switch with the a user dened
backup name excludes the backup from being automatically removed. The next example shows how to create a backup useing the -n
switch.
# /u01/app/oracle/ovm-manager-3/bin/createBackup.sh -n MyBackup1
7 of 21
http://mokumsolutions.com
How to Download the Oracle VM Upgrade Media from the Oracle Linux and
Oracle VM Cloud Portal
In order to upgrade Oracle VM Manager, the installation or upgrade media must be downloaded and made available to the Oracle VM
Manager host. Oracle VM Server can also be upgraded using the installation media or with a local YUM repository. The Oracle VM
Manager installation and upgrade media can be burned to DVD and applied using a CD-ROM, or the ISO le can be copied to Oracle
VM Manager host and mounted locally to start the upgrade program.
Tip: This chapter of the Oracle Cloud Cookbook covers how to upgrade Oracle VM Server using a local YUM repository.
The Oracle VM installation and upgrade media is available at the Oracle Linux and Oracle VM Cloud Portal. Access to the Oracle Linux
and Oracle VM Cloud Portal requires an Oracle.com user account and password to authenticate into the Oracle Linux and Oracle VM
Cloud Portal. If you do not already have an Oracle.com user account, visit the Oracle Linux and Oracle VM Cloud Portal, click the Sign
In / Register link or button to create an Oracle.com account.
Figure 1 shows the Oracle Linux and Oracle VM Cloud Portal.
From the Sign In page, enter your Oracle.com user name and password, then click the Sign In button.
Figure 2 shows the Oracle Linux and Oracle VM Cloud Portal Sign In page.
8 of 21
http://mokumsolutions.com
Once authenticated, accept the registration/export regulations to access to the Oracle VM and Oracle Linux Media.
Figure 3 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 Cloud Portal. Click the Cloud Portal link in the page header, then click the Oracle Linux/VM drop down menu to be
redirected to the Oracle Linux and Oracle VM section of the Cloud Portal.
Figure 4 shows the Media Pack Search page.
9 of 21
http://mokumsolutions.com
From the Oracle VM Media Pack page, click the desired Oracle VM Media Pack radio button, then the Continue button, or click
the desired Oracle VM Media Pack hyperlink to go to the download page.
From the Oracle VM Media Pack download page, click the desired Oracle VM Manager and Server Download button to download
the Oracle VM Media Pack. As of this writing, the latest installation media for Oracle VM Manager is Oracle VM Manager 3.1.1, and
the latest upgrade media is Oracle VM Manager 3.1.1 - Upgrade only. Oracle VM Manager can be upgraded using the installation
media and/or with the upgrade only media. The upgrade only media is a much smaller and faster to download. The latest installation
media for Oracle VM Servers is Oracle VM Server 3.1.1 for x86_64 (64 bit).
The Oracle VM media is delivered as a zip le. The zip le name corresponds to the Part Number listed on the download page. The
Oracle VM Manager and/or Server zip le contains an ISO le.
Once the zip le(s) is downloaded, use your favorite zip utility to unzip the Oracle VM Manager media. Next, burn the ISO le to DVD
to be able to install and or upgrade Oracle VM with a CD-ROM drive, or copy the ISO le to the Oracle VM Manager host, mount the
ISO le and then perform the upgrade.
How to Mount the Oracle VM Manager Media and Run the runUpgrader.sh Script
In order to run the Oracle VM Manager runUpgrader.sh script, the upgrade or installation media (ISO le) must be made available to
the Oracle VM Manager host. The Oracle VM Manager upgrade or installation media can be burned to DVD and applied using a
CD-ROM, or the ISO le can be copied to Oracle VM Manager host and mounted locally to start the upgrade program.
Note: The workow to apply a patch update or an upgrade is virtually identical. Some of the upgrade and update code may ask you to
stop Oracle VM Manager to proceed, i.e. "service ovmm stop".
List 2 walks through the steps to download, mount and start an Oracle VM Manager patch update or an upgrade.
1.
2.
3.
4.
5.
6.
7.
8.
Download the desired Oracle VM Manager media from the Oracle Linux and Oracle VM Cloud Portal or My Oracle Support.
Use your favorite zip utility to unzip the Oracle VM Manager zip le.
Copy the ISO le to a directory on the Oracle VM Manager host, i.e. to the /media directory.
Note: The directory where the ISO le will be mounted must be writable by the oracle user account.
Log in to the Oracle VM Manager host as root.
Mount the ISO le by typing mount -o loop OracleVM-Manager-<VERSION>.iso /media
Change to the directory where the ISO le is mounted, i.e. cd /media.
Run the installer script as root, by typing ./runUpgrader.sh, as shown in the following example.
The following two examples shows how to install patch ID 14227416 (3.1.1.365), then patch ID 16410417 (3.2.3.521). Patch
ID 14227416 can be applied to Oracle VM Manager 3.0.3 and 3.1.1.. Patch ID 16410417 can be applied to Oracle VM Manager 3.0.3,
3.1.1, 3.2.1, and 3.2.2..
The next example shows how to apply Patch ID 14227416 to Oracle VM Manager 3.0.3 and 3.1.1..
# ./runUpgrader.sh
Stating OVM Manager upgrade on Thu Jul 12 05:23:21 PDT 2012
Oracle VM Manager 3.1.1.365 upgrade utility
Upgrade logle : /tmp/upgrade-2012-07-12-23.log
It is highly recommended to do a full database repository backup prior to upgrading Oracle VM Manager ...
Press any key to continue ...
Oracle VM Manager is running ...
Verifying installation status ...
10 of 21
http://mokumsolutions.com
Read Oracle VM Manager cong le ...
Skipping database upgrade for the same product version (3.1.1 to 3.1.1)
Found Oracle VM Manager install les ...
Found Oracle VM Manager upgrader ...
Found Oracle WebLogic Server ...
Found Java ...
Using the following information :
Database Host
: localhost
Database SID
: orcl
Database LSNR
: 1521
Oracle VM Schema
: ovs
Oracle VM Manager UUID : 0004fb00000100004aa039092e1841f3
Current Build ID
: 3.1.1.305
Upgrade from version : 3.1.1
Upgrade to version
: 3.1.1
Using /tmp/workdir.8tJUbAKhqE for backup and export location.
Using /tmp/patchdir.XZoV9DSQR for patching.
Undeploying previous version of Oracle VM Manager application ...
Undeploying Oracle VM Manager help ...
Undeploying Oracle VM Manager console ...
Undeploying Oracle VM Manager core ...
Waiting for Oracle VM Manager core to fully undeploy...
Waiting...
Finished undeploying previous version ...
Upgrading Oracle VM Manager ...
Backing up old les to /tmp/ovm-manager-3-backup-2012-07-12-052505...
Removing old les ...
Unpacking Oracle VM Manager 3.1.1.365
Refresh system-jazn-data.xml le ...
Redeploying Oracle VM Manager core container ...
Redeploying Oracle VM Manager console ...
Redeploying Oracle VM Manager help ...
Unpacking Oracle VM Manager OVM CLI Tool
Completed upgrade to 3.1.1.365 ...
Writing updated cong in /u01/app/oracle/ovm-manager-3/.cong
Restart WebLogic ...
Stopping Oracle VM Manager
[ OK ]
Starting Oracle VM Managernohup: ignoring input and redirecting stderr to stdout
[ OK ]
OVM Manager upgrade nished on Thu Jul 12 05:27:04 PDT 2012
#
Oracle VM Manager has just been successfully updated.
The new Oracle VM Manager version number can be validated by viewing the release number listed on the BUILDID line in the
.cong le. The next example shows the .cong le before the upgrade.
# cat /u01/app/oracle/ovm-manager-3/.cong
DBHOST=localhost
SID=orcl
LSNR=1521
APEX=None
OVSSCHEMA=ovs
WLSADMIN=weblogic
OVSADMIN=admin
COREPORT=54321
UUID=0004fb00000100004aa039092e1841f3
BUILDID=3.1.1.365
FROMVERSION=3.1.1
TOVERSION=3.1.1
The next examples shows how to install patch ID 16410417. Patch ID 16410417 can be applied to Oracle VM Manager 3.0.3, 3.1.1,
3.2.1, and 3.2.x.
# ./runUpgrader.sh
Upgrade logle : /tmp/ovm-manager-3-upgrade-2014-04-20-17.log
2014-04-20 11:17:21
2014-04-20 11:17:21 Starting Oracle VM Manager upgrade...
2014-04-20 11:17:21
2014-04-20 11:17:21 Oracle VM Manager 3.2.8.733 upgrade utility
2014-04-20 11:17:21
2014-04-20 11:17:21
2014-04-20 11:17:21 It is highly recommended to do a full database repository backup prior to upgrading Oracle VM Manager ...
11 of 21
http://mokumsolutions.com
2014-04-20 11:17:21
2014-04-20 11:17:21 Press [Enter] key to continue ...
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
2014-04-20
Waiting...
11:17:23
11:17:23
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:17:43
11:18:31
11:18:59
11:19:44
cd /u01/app/oracle/ovm-manager-3/weblogic
sh congureIdentityTrust.sh
service ovmm stop
service ovmm start
12 of 21
http://mokumsolutions.com
the desired RPM channels, i.e. Oracle VM 3 latest.
4- Use Oracle' 167283.sh script to populate the RPM channels from the Unbreakable Linux Network.
5- Login to Oracle VM Manager and enter the URL of the Oracle VM 3 latest RPM repository in the Server Update Management (YUM)
dialog box.
6- Update and/or patch the Oracle VM Servers using Oracle VM Manager.
Register the Oracle Linux Yum Server with the Oracle Unbreakable Linux
Network
Before an Oracle Linux or Red Hat Enterprise Linux host can connect to the Oracle Unbreakable Linux Network, Oracles GPG key
must be imported using the rpm command. To import the Oracles GPG key, as root type rpm --import /etc/pki/rpm-gpg
/RPM-GPG-KEY, as shown in the next example.
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY
Once the GPG key has been imported, the Linux host can be registered at the Oracle Unbreakable Linux Network from the command
line or using an X Windows application. Linux 4 and 5 systems use the up2date command as root to access the registration screen by
typing up2date --register for X Windows or "up2date --nox --register" for text mode. Linux 6 systems use the "uln_register" command
as root to access the registration screen. The registration process requires you to enter your Unbreakable Linux Network associated
Oracle Single Sign-on user name and password and a valid Oracle Linux Support Identier number (CSI).
If a proxy server is in the mix, for Oracle Linux 4 and 5 systems, as root type up2date --congure to list and edit the up2date
program defaults. There are ve proxy congurations that can be edited to allow access from your Linux host to the internet. The next
example shows the up2date proxy conguration items with their default settings and item numbers.
3. enableProxy
No
4. enableProxyAuth No
11. httpProxy
21. proxyPassword
22. proxyUser
To edit an up2date program item, type the item number, i.e. enter 3 or 4, etc.... then type C to clear the default value or type q to quit
without saving. Next, type the new value and press Enter to save the new value and to exit. If you need to enter multiple values,
separate them with semicolons (;).
Oracle Linux 6 systems use the --proxy option to specify an http proxy, i.e. # uln_register proxy=<HOST NAME>:<PORT
NUMBER> . If your proxy server requires authentication, use the --proxyUser and --proxyPassword to add a username and
password, i.e # uln_register proxy=<HOST NAME>:<PORT NUMBER> --proxyUser=<USER NAME> --proxyPassword=
<PASSWORD>
List
1.
2.
3.
4.
5.
6.
4 shows the six steps to register a Linux host with the Oracle Unbreakable Linux Network:
Review the Unbreakable Linux Privacy Statement
Register a User Account
Register a System ProleHardware
Register a System ProlePackages
Send Prole Information to the Unbreakable Linux Network
Finished Registration
The following examples walk through the six steps to register a Linux host with the Oracle Unbreakable Linux Network.
Step 1. Review the Unbreakable Linux Privacy Statement
From the Review the Unbreakable Linux Privacy Statement screen use the Alt key to select the Next tab, once the Next tab is
selected press the Enter key to proceed.
Figure 5 shows the Review the Unbreakable Linux Privacy Statement screen.
13 of 21
http://mokumsolutions.com
Step 2. Register a User Account
On the Register a User Account screen, enter your your Unbreakable Linux Network associated Oracle Single Sign-on User
name, Password, Password conrmation and a valid Oracle VM CSI number. Use the Alt key to select the Next tab, and then press
the Enter key to proceed.
Figure 6 shows the Register a User Account screen.
14 of 21
http://mokumsolutions.com
Figure 9 shows the Send Prole Information to the Unbreakable Linux Network screen.
15 of 21
http://mokumsolutions.com
Tip: If you dont see the default Apache test page, check if iptables is blocking http trac on the Apache host. Consider disabling
iptables to test Apache by typing sudo /sbin/service iptables stop.
Next, create a the yum repository base directory in /var/www/html by typing "mkdir -p /var/www/html/yum".
Table 2 shows the approximate disk space requirements for each Oracle VM RPM channel:
Channel
Binaries
ovm*_latest
147M
ovm*_base
400M
ovm*_patch
100M
From the YUM servers Systems Details page click the Edit button, as shown in Figure 13.
From the Edit Systems Properties page, select the Yum Server check box, enter a valid CSI number, then click the Apply Changes
button, as shown in Figure 14.
16 of 21
http://mokumsolutions.com
From the System summary page select the Oracle VM 3 latest channel. Next, click the Save Subscriptions button to save the
changes, as shown in Figure 16.
The yum server has been successfully congured using the the Oracle Unbreakable Linux Network dashboard. The next step is to
populated and synchronize the local yum repository with the Oracle Unbreakable Linux Network using the 167283.sh script.
Populate and Synchronize the Yum Server with Oracle Unbreakable Linux
Network
Local yum repositories are populated and synchronized to the Unbreakable Linux Network using a script (167283.sh) and a cron job,
or with Oracle Enterprise Manager. To populate the yum repository using the 167283.sh script, as root type cd, then wget
http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/167283.sh to download the 167283.sh script. Next, type
chmod 755 167283.sh to make the script executable. Then type nohup sh 167283.sh & to run the script. Once the
17 of 21
http://mokumsolutions.com
167283.sh script completes, the yum RPM repository will be populated and ready to update or patch Oracle VM Servers.
To automatically synchronize your local yum RPM repository to the Unbreakable Linux Network, use a cron job with the 167283.sh
script. As root or any other user with access to the 167283.sh script, type "chrontab -e" to edit your crontab le, or create a new
crontab le if one does not already exist. The next example shows how to create a crontab le as root that will run the 167283.sh
script at midnight every weekday.
# crontab -e
0 0 * * 1-5 /root/167283.sh
:wq!
To view the current cronjob on a Oracle Linux host, type "crontab -l". To edit the cronjob type "crontab -e".
Crontab Syntax:
1 2 3 4 5 /path/to/command arg1 arg2
1: Minute (0-59)
2: Hours (0-23)
3: Day (0-31)
4: Month (0-12 [12 == December])
5: Day of the week(0-7 [7 or 0 == sunday])
/path/to/command - Command name or script to schedule
Enter the following information in the Server Update Management (YUM) page to add a YUM repository:
YUM Base URL: Enter the URL from the Oracle VM latest channel, i.e.:
http://<YUM SERVER IP OR FQDN>/yum/OracleVM/OVM3/latest/x86_64/
Enable GPG Key: GPG keys are used to validate the identity of a Yum server and its RPM packages (RPMs). Select the Enable
GPG Key checkbox to be able to enter the YUM GPG Key.
Note: If you elect"not" to congure the GPG key, it is necessary to type "rpm --import /etc/pki/rpm-gpg/RPM-GPGKEY-oracle" as root on each Oracle VM Server that uses the congured yum reporitory.
YUM GPG Key: An Oracle-signed GPG key for ULN is pre-installed on Oracle Linux hosts at /etc/pki/rpm-gpg/RPM-GPGKEY-oracle. To to use the pre-installed Oracle GPG key, enter le:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle in the YUM GPG
Key text box.
Note: The GPG key eld is only enabled when you select Enable GPG Key.
It is also possible to copy the GPG key from the web server OS to the Yum repository, i.e. as root type cp /etc/pki/rpm-gpg
/RPM-GPG-KEY-oracle /var/www/html/yum/ && chown apache:apache /var/www/html/yum/RPM-GPG-KEY-oracle, next enter
the URL "http://<YUM SERVER IP OR FQDN>/yum/ RPM-GPG-KEY-oracle" in the YUM GPG Key text box.
To validate the path/location of the RPM-GPG-KEY-oracle le, as root, type "nd / -name RPM-GPG-KEY-oracle -print" to print
the path. If necessary substitute the bold text with the correct path: rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle.
To conrm if the RPM-GPG-KEY-oracle key has already been installed, as root type "rpm -q gpg-pubkey-1e5e0159-464d0428"
18 of 21
http://mokumsolutions.com
The Oracle GPG key is also available from "https://oss.oracle.com/el5/RPM-GPG-KEY-oracle"
Click Apply to save the setting.
Once the YUM repository is added, Oracle VM Manager will automatically query all the managed Oracle VM Servers and update the
Update Required status to Yes or No.
Tip: Oracle VM server (dom0) updates or upgrades may overwrite custom multipath.conf les. Make a backup of custom
multipath.conf les before updates or upgrades to be able to recover from an overwritten custom multipath.conf le.
Figure 18 shows the Update Required status.
Select the Update Server option from Oracle VM Manager to upgrade one or more hosts. Upgrading a server automatically puts the
server into maintenance mode and if possible Live Migrates any running VMs to an available node.
Firgure 19 shows the Update Server menu.
Once the Yum repository has been congured, each Oracle VM Server will have a new les named ovm.repo in the /etc/yum.repos.d
directory.
The next example shows the contents of the ovm.repo le.
# cat /etc/yum.repos.d /ovm.repo
[ovm_repo]
gpgkey = http://<YUM SERVER IP OR FQDN>/yum/RPM-GPG-KEY-oracle
gpgcheck = 1
baseurl = http://<YUM SERVER IP OR FQDN>/yum/OracleVM/OVM3/latest/x86_64/
TIP. Oracle VM Servers that are patched and rebooted by Oracle VM Manager restart in Maintenance Mode. Oracle VM Servers in
Maintenance Mode cannot run virtual machine or be edited.
Appendix
Patch Update Fails with BUILD FAILED Message
19 of 21
http://mokumsolutions.com
If an upgrade fails with "Failed undeploying application" and/or "BUILD FAILED" messages below, the solution is to access the
WebLogic Server Administration Console at https://<ORACLE VM MANAGER 3.0 HOST>:7001/console/login/LoginForm.jsp. Login to
the the WebLogic Server Administration Console with the user name and password you seleted during the Oracle VM Manager
installation. Once authenticated, locate the "Change Center" section, then click the "Release Conguration" button. Once the "Release
Conguration" button has been pressed, the Oracle VM Manager upgrade will run without errors.
The following meesage is displayed on the Oracle VM Manager host's console during the upgrade:
Undeploying Oracle VM Manager core ...
Waiting for Oracle VM Manager core to fully undeploy...
Waiting.................................
Failed undeploying application ... Exiting upgrade process.
The following message is displayed on the Oracle VM Manager host in the /tmp/upgrade log le.
BUILD FAILED
weblogic.management.ManagementException: [Deployer:149163]The domain edit lock is owned by another session in non-exclusive
mode - this deployment operation requires exclusive access to the edit lock and hence cannot proceed. If you are using " Automatically
Aquire Lock and Activate Changes" in the console, then the lock will expire shortly so retry this operation.
20 of 21
http://mokumsolutions.com
adding: objs/88/883.cl.xml (deated 81%)
adding: objs/44/445.cl.xml (deated 87%)
adding: objs/62/628.cl.xml (deated 72%)
adding: objs/74/748.cl.xml (deated 87%)
adding: objs/52/5279.cl.xml (deated 83%)
adding: objs/16/161.cl.xml (deated 67%)
adding: objs/89/899.cl.xml (deated 72%)
adding: objs/89/892.cl.xml (deated 81%)
adding: objs/36/3695.cl.xml (deated 73%)
adding: objs/36/3610.cl.xml (deated 73%)
adding: objs/61/615.cl.xml (deated 81%)
adding: objs/60/607.cl.xml (deated 81%)
adding: objs/13/1354.cl.xml (deated 77%)
adding: objs/13/1326.cl.xml (deated 77%)
adding: objs/13/1381.cl.xml (deated 76%)
adding: objs/49/4988.cl.xml (deated 83%)
adding: objs/45/459.cl.xml (deated 69%)
adding: objs/29/2920.cl.xml (deated 71%)
adding: objs/19/193.cl.xml (deated 70%)
adding: objs/14/1408.cl.xml (deated 76%)
adding: objs/14/1435.cl.xml (deated 77%)
adding: objs/32/3224.cl.xml (deated 77%)
adding: objs/12/1241.cl.xml (deated 76%)
adding: objs/12/1297.cl.xml (deated 77%)
adding: objs/76/764.cl.xml (deated 68%)
adding: objs/27/2766.cl.xml (deated 71%)
Selective export is at /tmp/workdir_sel.rDZob29899
31 objects selected (out of 4725) to be upgraded
Transform XSL les used:
-rw-r--r-- 1 root root 56678 May 9 09:44 /tmp/patchdir.xuEM29479/transform_003001001000_010.xsl
-rw-r--r-- 1 root root 10079 May 9 09:44 /tmp/patchdir.xuEM29479/transform_003001001000_020.xsl
Changed classes encountered in selective export set:
com.oracle.ovm.mgr.api.manager.BusinessManagerDbImpl
com.oracle.ovm.mgr.api.manager.ModelManagerDbImpl
com.oracle.ovm.mgr.api.manager.RasManagerDbImpl
com.oracle.ovm.mgr.api.physical.network.BondPortDbImpl
com.oracle.ovm.mgr.api.physical.network.EthernetPortDbImpl
com.oracle.ovm.mgr.api.physical.network.InternalPortDbImpl
com.oracle.ovm.mgr.api.physical.ServerDbImpl
com.oracle.ovm.mgr.api.virtual.VirtualMachineDbImpl
com.oracle.ovm.mgr.api.virtual.VirtualMachineTemplateDbImpl
com.oracle.ovm.mgr.api.virtual.XenHypervisorDbImpl
Upgrading Oracle VM Manager repository ...
Please wait as this can take a long time ...
Oracle VM Manager repository upgrade completed ...
Validating Oracle VM Manager repository ...
Oracle VM Manager repository validation completed ...
Refresh system-jazn-data.xml le ...
Redeploying Oracle VM Manager core container ...
Redeploying Oracle VM Manager console ...
Redeploying Oracle VM Manager help ...
Install ADF Patch ...
Completed upgrade to 3.1.1.305 ...
Writing updated cong in /u01/app/oracle/ovm-manager-3/.cong
Restart WebLogic ...
Stopping Oracle VM Manager
[ OK ]
Starting Oracle VM ManagerTime out...
OVM Manager upgrade nished on Wed May 9 10:18:27 PDT 2012
#
21 of 21