Upgrade Oracle VM Server from Command Line – Part 10


It is recommended to keep both Oracle VM Manager and VM Server on same version. So here I’m going to upgrade Oracle VM Server to 3.3.5 from 3.3.3 version in command line interface.

Step 1: Create the Yum Repositories using installation media

[root@mgmtsrv ~]# cd /var/www/html/
[root@mgmtsrv html]# mount -t iso9660 /dev/sr0 /mnt/
mount: block device /dev/sr0 is write-protected, mounting read-only

[root@mgmtsrv html]# cp -rp /mnt/* ovs3.3.5/

Step 2: Login in to Oracle VM Manager as admin user

[root@mgmtsrv ~]# ssh -l admin ovm.lab.local -p 10000
admin@ovm.lab.local's password:
OVM>

Step 3: Create VM Manager Server Update Repository

OVM> create ServerUpdateRepository repositoryName=NewRepository3.3.5 url=http://mgmtsrv.lab.local/ovs3.3.5 enabled=Yes pkgSignatureType=GPG pkgSignatureKey=http://mgmtsrv.lab.local/ovs3.3.5/RPM-GPG-KEY name=MyOVSRepo on ServerUpdateGroup id=GlobalX86ServerUpdateConfiguration
Command: create ServerUpdateRepository repositoryName=NewRepository3.3.5 url=http://mgmtsrv.lab.local/ovs3.3.5 enabled=Yes pkgSignatureType=GPG pkgSignatureKey=http://mgmtsrv.lab.local/ovs3.3.5/RPM-GPG-KEY name=MyOVSRepo on ServerUpdateGroup id=GlobalX86ServerUpdateConfiguration
Status: Success
Time: 2017-12-19 06:30:05,854 EST
JobId: 1513682997560
Data:
id:0004fb000031000014f76b016ce471a4 name:MyOVSRepo

OVM> list ServerUpdateRepository
Command: list ServerUpdateRepository
Status: Success
Time: 2017-12-19 06:31:55,639 EST
Data:
id:0004fb000031000014f76b016ce471a4 name:MyOVSRepo

OVM> show ServerUpdateRepository name=MyOVSRepo
Command: show ServerUpdateRepository name=MyOVSRepo
Status: Success
Time: 2017-12-19 06:33:06,074 EST
Data:
Server Update Group = GlobalX86ServerUpdateConfiguration [GlobalX86ServerUpdateConfiguration]
Repository Name = NewRepository3.3.5
Url = http://mgmtsrv.lab.local/ovs3.3.5
Enabled = Yes
Package Signature Type = GPG
Package Signature Key = http://mgmtsrv.lab.local/ovs3.3.5/RPM-GPG-KEY
Id = 0004fb000031000014f76b016ce471a4 [MyOVSRepo]
Name = MyOVSRepo
Locked = false

Step 4: Put Oracle VM Server in to Maintenance Mode

This is step is not needed because when you execute the Step 5 command will place your Oracle VM Server into maintenance mode, checks for any updates in the server update repository, installs any updates, restarts the Oracle VM Server, then takes it out of maintenance mode and returns it to the server pool as a fully functioning member of the pool. But however it is a good practice if we manually put the server in maintenance mode before doing any server related activity.

OVM> setMaintenanceMode Server name=ovs01.lab.local mode=on
Command: setMaintenanceMode Server name=ovs01.lab.local mode=on
Status: Success
Time: 2017-12-19 06:34:22,205 EST
JobId: 1513683001804

Step 5: Upgrade Oracle VM Server

OVM> upgrade Server name=ovs01.lab.local
Command: upgrade Server name=ovs01.lab.local
Status: Success
Time: 2017-12-19 06:46:24,619 EST
JobId: 1513683310258

Step 6: Take out the server from Maintenance Mode

We need to take out the server from maintenance mode, Since we did manually in Step 4.

OVM> setMaintenanceMode Server name=ovs01.lab.local mode=off
Command: setMaintenanceMode Server name=ovs01.lab.local mode=off
Status: Success
Time: 2017-12-19 06:51:54,977 EST
JobId: 1513684314777

Step 7: Delete Server Update Repository

OVM> delete ServerUpdateRepository name=MyOVSRepo
Command: delete ServerUpdateRepository name=MyOVSRepo
Status: Success
Time: 2017-12-19 06:56:19,409 EST
JobId: 1513684574493

OVM> list ServerUpdateRepository
Command: list ServerUpdateRepository
Status: Success
Time: 2017-12-19 06:57:21,744 EST
Data:
None

That’s it. Now login to Oracle VM Server and the check the version.

How to upgrade Oracle VM Manager – Part 9


Step 1: Mount the required ISO into VM Manager.

[root@ovm ~]# mount -t iso9660 /dev/sr0 /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

Step 2: Trigger the upgrade command

[root@ovm ~]# cd /mnt

As part of precautionary action, it is recommended to take the Manual backup of Oracle VM Manager before execute the Upgrade task. In case of any failure, we can restore from backup. Please check my previous post for Oracle VM Manager Backup and Restore steps.

Before proceed to upgrade the Oracle VM Manager, please make sure you have valid MySQL database, admin and weblogic user password. If you set a system-wide password during the original installation and have not changed the user password at any stage, admin password should work for above users.

Since this is my lab purpose here I ignored the prerequisites check. But don’t use -n parameter if you are doing in Production server.

[root@ovm mnt]# ./runInstaller.sh --installtype Upgrade -n

Oracle VM Manager Release 3.3.5 Installer

Oracle VM Manager Installer log file:
/var/log/ovmm/ovm-manager-3-install-2017-12-19-041925.log

Ignoring prerequisites check ...
Starting Upgrade ...

Reading database parameters from config ...

==========================
Typically the current Oracle VM Manager database password will be the same as the Oracle VM Manager application password.

==========================
Database Repository
==========================
Please enter the current Oracle VM Manager database password for user ovs: ##Enter OVS MySQL database password##

Oracle VM Manager application
=============================
Please enter the current Oracle VM Manager application password for user admin: ##Enter Oracle VM Manager admin password##

Oracle Weblogic Server 12c
==========================
Please enter the current password for the WebLogic domain administrator: ##Enter weblogic user password##

Please enter your fully qualified domain name, e.g. ovs123.us.oracle.com, (or IP address) of your management server for SSL certification generation 10.10.10.151 [ovm.lab.local]:

Verifying configuration ...

Upgrading from version 3.3.3.1085 to version 3.3.5.1109

Start upgrading Oracle VM Manager:
1: Continue
2: Abort

Select Number (1-2): 1

Running full database backup ...
Successfully backed up database as 3.3.3_preUpgradeBackup-20171219_042023
Running ovm_preUpgrade script, please be patient this may take a long time ...
Exporting weblogic embedded LDAP users
Stopping service on Linux: ovmcli ...
Stopping service on Linux: ovmm ...
Exporting core database, please be patient this may take a long time ...
NOTE: To monitor progress, open another terminal session and run: tail -f /var/log/ovmm/ovm-manager-3-install-2017-12-19-041925.log

Product component : Java in '/u01/app/oracle/java'
Java is installed ...

Removing Java installation ...

Installing Java ...

DB component : MySQL RPM package
MySQL RPM package installed by OVMM was found...
Removing MySQL RPM package installation ...

Installing Database Software...
Retrieving MySQL Database 5.6 ...
Unzipping MySQL RPM File ...
Installing MySQL 5.6 RPM package ...
Configuring MySQL Database 5.6 ...
Installing MySQL backup RPM package ...

Product component : Oracle VM Manager in '/u01/app/oracle/ovm-manager-3/'
Oracle VM Manager is installed ...
Removing Oracle VM Manager installation ...

Product component : Oracle WebLogic Server in '/u01/app/oracle/Middleware/'
Oracle WebLogic Server is installed

Removing Oracle WebLogic Server installation ...
Service ovmm is deleted.
Service ovmcli is deleted.

Retrieving Oracle WebLogic Server 12c and ADF ...
Installing Oracle WebLogic Server 12c and ADF ...
Applying patches to Weblogic ...
Applying patch to ADF ...

Installing Oracle VM Manager Core ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...

Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...

Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 12c ...
Importing weblogic embedded LDAP users
Upgrading core database, please be patient this may take a long time ...
NOTE: To monitor progress, open another terminal session and run: tail -f /var/log/ovmm/ovm-manager-3-install-2017-12-19-041925.log

Retrieving Oracle VM Manager CLI tool ...
Extracting Oracle VM Manager CLI tool...
Installing Oracle VM Manager CLI tool ...

Configuring Existing Https Identity and Trust...
Deploying Oracle VM Manager Core container ...
Configuring Client Cert Login...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Disabling HTTP access ...

Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...

Retrieving Oracle VM Manager Wsh tool ...
Extracting Oracle VM Manager Wsh tool ...
Installing Oracle VM Manager Wsh tool ...

Retrieving Oracle VM Manager Tools ...
Extracting Oracle VM Manager Tools ...
Installing Oracle VM Manager Tools ...
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 ...
Starting Oracle VM Manager instance ...
Waiting for the application to initialize ...
Oracle VM Manager is running ...

Please wait while WebLogic configures the applications...

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 : 0004fb00000100009157557324ed168d

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://ovm.lab.local:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.

Note that you must install the latest ovmcore-console package for your Oracle Linux distribution to gain VNC and serial console access to your Virtual Machines (VMs).
Please refer to the documentation for more information about this package.

For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/

Oracle VM Manager upgrade complete.

Please remove configuration file /tmp/ovm_configTpvifE.