How to add Oracle VM Server to existing Server Pool – Part 14


Step 1: Login to Oracle VM Manager as admin

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

Step 2: Discover the new Oracle VM Server

OVM> discoverServer ipaddress=ovs02.lab.local password=********** takeOwnership=Yes
Command: discoverServer ipaddress=ovs02.lab.local password=**** takeOwnership=Yes
Status: Success
Time: 2017-12-30 06:10:06,997 EST
JobId: 1514632190427

Step 3: Attach existing FileServer to new Oracle VM Server

OVM> list FileServer
Command: list FileServer
Status: Success
Time: 2017-12-30 06:10:39,887 EST
Data:
id:0004fb0000090000371a9d6db792e728 name:MYSANRec
id:0004fb000009000030d16d353855168b name:Local FS ovs01.lab.local
id:0004fb000009000031ef15ebfd64864b name:Local FS ovs02.lab.local

OVM> addAdminServer FileServer name=MYSANRec server=ovs02.lab.local
Command: addAdminServer FileServer name=MYSANRec server=ovs02.lab.local
Status: Success
Time: 2017-12-30 06:11:24,290 EST
JobId: 1514632283791

OVM> addRefreshServer FileServer name=MYSANRec server=ovs02.lab.local
Command: addRefreshServer FileServer name=MYSANRec server=ovs02.lab.local
Status: Success
Time: 2017-12-30 06:11:54,250 EST
JobId: 1514632314003

OVM> refresh FileServer name=MYSANRec
Command: refresh FileServer name=MYSANRec
Status: Success
Time: 2017-12-30 06:12:10,568 EST
JobId: 1514632328802

Step 4: Attach new Oracle VM server to existing VLAN interface

OVM> list Network
Command: list Network
Status: Success
Time: 2017-12-30 06:13:18,171 EST
Data:
id:0a0a0a00 name:10.10.10.0
id:10aafb998c name:VMNet

OVM> list Server
Command: list Server
Status: Success
Time: 2017-12-30 06:13:51,135 EST
Data:
id:56:4d:88:59:8d:10:18:09:9d:1a:5d:a3:f2:8d:f7:97 name:ovs01.lab.local
id:56:4d:d5:a4:e0:32:e8:f9:98:85:b6:db:16:56:aa:cc name:ovs02.lab.local

OVM> show Server name=ovs02.lab.local
Command: show Server name=ovs02.lab.local
Status: Success
Time: 2017-12-30 06:14:02,226 EST
Data:
Status = Running
........
Ethernet Port 1 = 0004fb00002000009484d6243391378c [eth0 on ovs02.lab.local]
Ethernet Port 2 = 0004fb0000200000baf56305d148910c [eth1 on ovs02.lab.local]
........

OVM> add Port id=0004fb0000200000baf56305d148910c to Network name=VMNet
Command: add Port id=0004fb0000200000baf56305d148910c to Network name=VMNet
Status: Success
Time: 2017-12-30 06:15:09,567 EST
JobId: 1514632505563

Step 5: Add new Oracle VM Server to existing Server Pool

OVM> list FileSystem
Command: list FileSystem
Status: Success
Time: 2017-12-30 06:20:28,899 EST
Data:
id:0004fb0000050000778bab4e27014113 name:Server Pool File System
id:9f4e1109-2c5b-4bae-834b-0ccc203e5ab6 name:nfs on mgmtsrv.lab.local:/repo2
id:f3834a16-6fcb-4f82-9a2a-b3d3ed936ae3 name:nfs on mgmtsrv.lab.local:/repo1

OVM> list ServerPool
Command: list ServerPool
Status: Success
Time: 2017-12-30 06:21:14,991 EST
Data:
id:0004fb00000200002d1d67487c79ed89 name:Pool_01

OVM> add Server name=ovs02.lab.local to ServerPool name=Pool_01
Command: add Server name=ovs02.lab.local to ServerPool name=Pool_01
Status: Success
Time: 2017-12-30 06:21:36,694 EST
JobId: 1514632896237

OVM> show ServerPool name=Pool_01
Command: show ServerPool name=Pool_01
Status: Success
Time: 2017-12-30 06:21:49,006 EST
Data:
Server 1 = 56:4d:88:59:8d:10:18:09:9d:1a:5d:a3:f2:8d:f7:97 [ovs01.lab.local]
Server 2 = 56:4d:d5:a4:e0:32:e8:f9:98:85:b6:db:16:56:aa:cc [ovs02.lab.local]

Cluster Enabled = Yes
Timeout for Cluster(seconds) = 120
Keymap Name = en-us
Virtual IP = 10.10.10.200
Vm Migrate SSL = No
Server Count = 2
Master Server = 56:4d:88:59:8d:10:18:09:9d:1a:5d:a3:f2:8d:f7:97 [ovs01.lab.local]
File System Type = Unknown
Vm 1 = 0004fb0000060000524f9d3e43fd71f3 [FirstVM]
StartPolicy = Current Server
Policy Mode = Off
Policy CPU Enabled = No
Policy Period (minutes) = 10
Policy CPU Threshold = 75
Id = 0004fb00000200002d1d67487c79ed89 [Pool_01]
Name = Pool_01
Description = First Oracle Server Cluster
Locked = false

Step 5: Attach the new OVS server to exisiting storage repository

OVM> list Repository
Command: list Repository
Status: Success
Time: 2017-12-30 06:24:22,864 EST
Data:
id:0004fb000003000082b0d717e2f9871d name:OraRepo

OVM> add Server name=ovs02.lab.local to Repository name=OraRepo
Command: add Server name=ovs02.lab.local to Repository name=OraRepo
Status: Success
Time: 2017-12-30 06:26:48,646 EST
JobId: 1514633207814

OVM> refresh Repository name=OraRepo
Command: refresh Repository name=OraRepo
Status: Success
Time: 2017-12-30 06:26:54,170 EST
JobId: 1514633213719

OVM> show Repository name=OraRepo
Command: show Repository name=OraRepo
Status: Success
Time: 2017-12-30 06:26:57,710 EST
Data:
File System = 9f4e1109-2c5b-4bae-834b-0ccc203e5ab6 [nfs on mgmtsrv.lab.local:/repo2]
Manager UUID = 0004fb00000100009157557324ed168d
File System Free (GiB) = 19.25
File System Total (GiB) = 24.48
File System Used (GiB) = 5.23
Used % = 21.0
Refreshed = Yes
Presented = Yes
Presented Server 1 = 56:4d:88:59:8d:10:18:09:9d:1a:5d:a3:f2:8d:f7:97 [ovs01.lab.local]
Presented Server 2 = 56:4d:d5:a4:e0:32:e8:f9:98:85:b6:db:16:56:aa:cc [ovs02.lab.local]
VirtualDisk 1 = 0004fb0000120000590b281ac02ac9b2.img [0004fb0000120000590b281ac02ac9b2.img]
VirtualCdrom 1 = 0004fb0000150000006463c3fe40be43.iso [0004fb0000150000006463c3fe40be43.iso]
Vm 1 = 0004fb0000060000524f9d3e43fd71f3 [FirstVM]
Id = 0004fb000003000082b0d717e2f9871d [OraRepo]
Name = OraRepo
Locked = false

Oracle VM Set CPU Pinning/Affinity – Part 13


Step 1: Login to Oracle VM server as root

[root@mgmtsrv ~]# ssh ovm.lab.local
root@ovm.lab.local's password:
Last login: Sun Dec 17 05:34:13 2017 from 10.10.10.1
[root@ovm ~]#

Step 2: Enable TCPS [Secure way to connect and perform the tasks]

[root@ovm ~]# cd /u01/app/oracle/ovm-manager-3/bin/
[root@ovm bin]# ./secureOvmmTcpGenKeyStore.sh
Generate OVMM TCP over SSL key store by following steps:
Enter keystore password: ## Enter the password ##
Re-enter new password: ## Re-enter the password ##
What is your first and last name?
[Unknown]: Ora Admin
What is the name of your organizational unit?
[Unknown]: LAB
What is the name of your organization?
[Unknown]: TEST
What is the name of your City or Locality?
[Unknown]: Chennai
What is the name of your State or Province?
[Unknown]: Tamil Nadu
What is the two-letter country code for this unit?
[Unknown]: IN
Is CN=Ora Admin, OU=LAB, O=TEST, L=Chennai, ST=Tamil Nadu, C=IN correct?
[no]: yes


Enter key password for
(RETURN if same as keystore password): ## Enter above given password ##
Re-enter new password: ## Re-enter above given password ##

[root@ovm bin]# ./secureOvmmTcp.sh
Enabling OVMM TCP over SSL service

Please enter the Oracle VM manager user name: admin

Please enter the Oracle VM manager user password: ## Enter Oracle VM Manager admin password ##

Please enter the password for TCPS key store : ## Enter above created key store password ##

The job of enabling OVMM TCPS service is committed, please restart OVMM to take effect.

Restart the OVMM daemon

[root@ovm bin]# /etc/init.d/ovmm restart
Stopping Oracle VM Manager [ OK ]
Starting Oracle VM Manager [ OK ]

Below netstat output show that TCPS port is listening in Oracle VM Manager.

[root@ovm ~]# netstat -antulp | grep 54322
tcp 0 0 :::54322 :::* LISTEN 9042/java

Step 3: Install the Oralce VM Utils

[root@ovm ~]# mkdir OVMM

Download the below zip file from Oracle Support site.

[root@ovm ~]# unzip -d OVMM p13602094_30_Linux-x86-64.zip
Archive: p13602094_30_Linux-x86-64.zip
inflating: OVMM/README.html
extracting: OVMM/ovm_util_3.4.99.10182.zip

[root@ovm ~]# cd OVMM/
[root@ovm OVMM]# ls
ovm_util_3.4.99.10182.zip README.html
[root@ovm OVMM]# unzip ovm_util_3.4.99.10182.zip
Archive: ovm_util_3.4.99.10182.zip
creating: ovm_util/
extracting: ovm_util/ovm-utils_2.1.zip
extracting: ovm_util/ovm_utils_2.0.1.zip
extracting: ovm_util/ovm-utils_1.0.2.zip
inflating: ovm_util/readme-2.0.1
inflating: ovm_util/readme-2.1.0
inflating: ovm_util/readme-1.0.2
[root@ovm OVMM]# cd ovm_util
[root@ovm ovm_util]# ls
ovm-utils_1.0.2.zip ovm-utils_2.1.zip readme-2.0.1
ovm_utils_2.0.1.zip readme-1.0.2 readme-2.1.0

Please use the readme file for the Oracle VM Manager version supported files. Here I’m using 3.3.3, so ovm_utils_2.0.1.zip file need to be used.

[root@ovm ovm_util]# less readme-2.0.1

[root@ovm ovm_util]# unzip -d /u01/app/oracle/ovm-manager-3 ovm_utils_2.0.1.zip Archive: ovm_utils_2.0.1.zip
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/
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_vmcontrol.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_vmhostd.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_vmdisks.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_reporestore.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/man/man8/ovm_vmmessage.8
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmdisks
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmMessage.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmRepoRestore.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmHostd.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmMessage$1.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmHostd$1.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmControl.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmHostd$InsecureTrustManager.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmDisks.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/class/OvmVmMessage$InsecureTrustManager.class
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmcontrol
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmhostd
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/vm-dump-metrics
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_reporestore
creating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/jython.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/log4j.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/OvmClient.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/OvmWsClient.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/ovm_shell.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/commons-logging-1.1.3.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/jline.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/lib/commons-logging.jar
inflating: /u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmmessage

[root@ovm ovm_util]# cd /u01/app/oracle/ovm-manager-3/ovm_utils


[root@ovm ovm_utils]# ls
class man ovm_vmcontrol ovm_vmhostd vm-dump-metrics
lib ovm_reporestore ovm_vmdisks ovm_vmmessage

Step 4: Verify the Oracle VM Server CPU topology and cpu list

Below command explains that Oracle VM Server has 2 Processors and 2 Cores per Processor, which means total 4 vcpu’s.

[root@ovs01 ~]# xenpm get-cpu-topology
CPU core socket node
CPU0 0 0 0
CPU1 1 0 0
CPU2 0 1 0
CPU3 1 1 0

Next I want to check which VM’s are using which CPUs. I have only one VM (0004fb0000060000524f9d3e43fd71f3) names as FirstVM which uses 2 vcpu threads. See CPU column (2,3).

[root@ovs01 ~]# xm vcpu-list
Name ID VCPU CPU State Time(s) CPU Affinity
0004fb0000060000524f9d3e43fd71f3 2 0 2 -b- 390.9 any cpu
0004fb0000060000524f9d3e43fd71f3 2 1 3 -b- 29.2 any cpu
Domain-0 0 0 1 -b- 237.7 any cpu
Domain-0 0 1 0 r-- 278.1 any cpu
Domain-0 0 2 3 -b- 152.5 any cpu
Domain-0 0 3 2 -b- 241.0 any cpu

Step 5: Check whether CPU’s are pinned for the new VM.

[root@ovm ovm_utils]# ./ovm_vmcontrol -u admin -p ************ -h ovm.lab.local -v FirstVM -c vcpuget
Oracle VM VM Control utility 2.0.1.
Connecting with a secure connection.
Connected.
Command : vcpuget
No vcpu's pinned for this Virtual Machine
.

Above output shows that CPU’s are not pinned for the VM.

Step 6: Pin both CPUs to core 0 and 1.

It is recommend to reboot the VMs after CPU pinning to get the changes effective.

[root@ovm ovm_utils]# ./ovm_vmcontrol -u admin -p ************ -h ovm.lab.local -v FirstVM -c vcpuset -s 0,1
Oracle VM VM Control utility 2.0.1.
Connecting with a secure connection.
Connected.
Command : vcpuset
Pinning virtual CPUs
Pinning of virtual CPUs to physical threads '0,1' 'FirstVM' completed.

[root@ovm ovm_utils]# ./ovm_vmcontrol -u admin -p ************ -h ovm.lab.local -v FirstVM -c vcpuget
Oracle VM VM Control utility 2.0.1.
Connecting with a secure connection.
Connected.
Command : vcpuget
Current pinning of virtual CPUs to physical threads : 0,1

Step 7: Confirm the CPU pinning by access and run the below command in the Oracle VM Server.

[root@ovs01 ~]# xm vcpu-list
Name ID VCPU CPU State Time(s) CPU Affinity
0004fb0000060000524f9d3e43fd71f3 2 0 0 -b- 401.6 0-1
0004fb0000060000524f9d3e43fd71f3 2 1 1 -b- 29.4 0-1
Domain-0 0 0 3 -b- 240.0 any cpu
Domain-0 0 1 3 r-- 282.2 any cpu
Domain-0 0 2 2 -b- 154.2 any cpu
Domain-0 0 3 0 -b- 244.2 any cpu

Step 8: Alternate method to set CPUs from Oracle VM server

[root@ovs01 ~]# xm vcpu-pin 2 all 2-3


[root@ovs01 ~]# xm vcpu-list
Name ID VCPU CPU State Time(s) CPU Affinity
0004fb0000060000524f9d3e43fd71f3 2 0 3 -b- 409.8 2-3
0004fb0000060000524f9d3e43fd71f3 2 1 3 -b- 29.5 2-3
Domain-0 0 0 0 -b- 242.3 any cpu
Domain-0 0 1 2 -b- 285.7 any cpu
Domain-0 0 2 1 r-- 155.6 any cpu
Domain-0 0 3 0 -b- 247.2 any cpu

How to Restore Oracle VM Manager without Database Backup or Admin Password – Part 12


In our previous post (Part 8) we have discussed how to recover the Oracle VM Manager using MySQL database. For that we need MySQL backup and admin & weblogic user password. But sometimes we might have chance to forget the admin or weblogic user password and also no backup of Oracle VM Manager MySQL database. In that case, we need to follow the below steps to recover the Oracle VM Manager.

Before starting our VM manager installation we need the existing Manager UUID value. The Oracle VM Manager UUID is located in Oracle VM Manager server (/u01/app/oracle/ovm-manager-3/.config) file and as well as in each server pool’ .ovsrepo file (OVS_REPO_MGR_UUID=UUID) located in the pool file system.

[root@mgmtsrv ~]# cat /repo2/.ovsrepo
OVS_REPO_UUID=0004fb000003000082b0d717e2f9871d
OVS_REPO_VERSION=3.0
OVS_REPO_MGR_UUID=0004fb00000100009157557324ed168d
OVS_REPO_ALIAS=OraRepo

Step 1: Move the OVS agent db directory

This step is not required, however we need to perform if we get any ownership error or warning during discovering the Oracle Virtual Server.

[root@ovs01 ~]# /etc/init.d/ovs-agent stop
Stopping Oracle VM Agent: [ OK ]

[root@ovs01 ~]# mv /etc/ovs-agent/db /etc/ovs-agent/db_bak20171223

[root@ovs01 ~]# /etc/init.d/ovs-agent start
Starting Oracle VM Agent: [ OK ]

Step 2: Login to Oracle VM Manager as admin

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

Step 3: Discover one Oracle VM Server from each server pool

OVM> discoverServer ipaddress=ovs01.lab.local password=********** takeOwnership=Yes
Command: discoverServer ipaddress=ovs01.lab.local password=**** takeOwnership=Yes
Status: Success
Time: 2017-12-23 03:47:27,748 EST
JobId: 1514018774243

Step 4: Discover the storage that contains the server pool file system. Present it to the newly discovered Oracle VM Server. Refresh the storage.

OVM> create FileServer plugin="Oracle Generic Network File System" accessHost=mgmtsrv.lab.local adminServers="ovs01.lab.local" name=MYSANRec
Command: create FileServer plugin="Oracle Generic Network File System" accessHost=mgmtsrv.lab.local adminServers="ovs01.lab.local" name=MYSANRec
Status: Success
Time: 2017-12-23 03:50:08,007 EST
JobId: 1514019007499
Data:
id:0004fb0000090000371a9d6db792e728 name:MYSANRec

OVM> addAdminServer FileServer name=MYSANRec server=ovs01.lab.local
Command: addAdminServer FileServer name=MYSANRec server=ovs01.lab.local
Status: Success
Time: 2017-12-23 03:50:33,884 EST
JobId: 1514019033629

OVM> addRefreshServer FileServer name=MYSANRec server=ovs01.lab.local
Command: addRefreshServer FileServer name=MYSANRec server=ovs01.lab.local
Status: Success
Time: 2017-12-23 03:50:58,303 EST
JobId: 1514019058085

OVM> refresh FileServer name=MYSANRec
Command: refresh FileServer name=MYSANRec
Status: Success
Time: 2017-12-23 03:51:24,544 EST
JobId: 1514019082774

Step 5: Refresh the file systems or physical disks that contain the server pool file system

OVM> list FileSystem
Command: list FileSystem
Status: Success
Time: 2017-12-23 03:51:33,554 EST
Data:
id:9f4e1109-2c5b-4bae-834b-0ccc203e5ab6 name:nfs on mgmtsrv.lab.local:/repo2
id:f3834a16-6fcb-4f82-9a2a-b3d3ed936ae3 name:nfs on mgmtsrv.lab.local:/repo1

OVM> refresh FileSystem name="nfs on mgmtsrv.lab.local://repo1"
Command: refresh FileSystem name="nfs on mgmtsrv.lab.local://repo1"
Status: Success
Time: 2017-12-23 03:52:49,786 EST
JobId: 1514019168044

Step 6: Refresh the file systems or physical disks that contain the repositories used by server pool

OVM> refresh FileSystem name="nfs on mgmtsrv.lab.local://repo2"
Command: refresh FileSystem name="nfs on mgmtsrv.lab.local://repo2"
Status: Success
Time: 2017-12-23 03:52:54,608 EST
JobId: 1514019173387

Step 7: Present the repositories to the Oracle VM Server

OVM> add Server name=ovs01.lab.local to ServerPool name=Pool_01
Command: add Server name=ovs01.lab.local to ServerPool name=Pool_01
Status: Success
Time: 2017-12-23 03:57:10,904 EST
JobId: 1514019424928

OVM> list ServerPool
Command: list ServerPool
Status: Success
Time: 2017-12-23 03:57:18,884 EST
Data:
id:0004fb00000200002d1d67487c79ed89 name:Pool_01

OVM> add ServerPool name=Pool_01 to Repository name=OraRepo
Command: add ServerPool name=Pool_01 to Repository name=OraRepo
Status: Success
Time: 2017-12-23 03:59:06,197 EST
JobId: 1514019545102

Step 8: Refresh the repositories

OVM> refresh Repository name=OraRepo
Command: refresh Repository name=OraRepo
Status: Success
Time: 2017-12-23 03:59:20,625 EST
JobId: 1514019559448

Step 9: Check the VM list

OVM> list vm
Command: list vm
Status: Success
Time: 2017-12-23 04:04:50,724 EST
Data:
id:0004fb0000060000524f9d3e43fd71f3 name:FirstVM

OVM> start vm name=FirstVM
Command: start vm name=FirstVM
Status: Failure
Time: 2017-12-23 04:05:36,388 EST
JobId: 1514019936121
Error Msg: Job failed on Core: OVMRU_005053E: Virtual Machine: FirstVM, is not associated with any server pool [Sat Dec 23 04:05:36 EST 2017]

In above command, I’m trying to start the Virtual Machine but it failed because the VM “FirstVM” is not associated with any server pool. So we need to move this VM to corresponding Server Pool.

OVM> migrate Vm name=FirstVM destServerPool=Pool_01
Command: migrate Vm name=FirstVM destServerPool=Pool_01
Status: Success
Time: 2017-12-23 04:13:31,390 EST
JobId: 1514020411131

OVM> start vm name=FirstVM
Command: start vm name=FirstVM
Status: Success
Time: 2017-12-23 04:13:45,270 EST
JobId: 1514020416903

Create new Oracle VM Manager user – Part 11


Step 1: Create new user

[root@ovm ~]# cd /u01/app/oracle/ovm-manager-3/bin/

[root@ovm bin]# ./ovm_admin --createuser

Oracle VM Manager Release 3.3.5 Admin tool

Please enter the username : john

Please enter the password for john (minimum 8 chars. with one numeric/special char.) :
Please re-enter the password :

Please enter the password for weblogic :##Enter weblogic user password ##

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 'john' ...
Created user 'john' successfully ...
Disconnected from weblogic server: AdminServer
Exiting...

Exiting WebLogic Scripting Tool.

Step 2: View list of users

[root@ovm bin]# ./ovm_admin --listusers

Oracle VM Manager Release 3.3.5 Admin tool

Please enter the password for weblogic : ##Enter weblogic user password ##

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 : OracleSystemUser
User : weblogic
User : admin
User : john
Listed users successfully ...
Disconnected from weblogic server: AdminServer
Exiting...

Exiting WebLogic Scripting Tool.

Check whether new user able to login to Oracle VM Manager CLI & Console.

[root@mgmtsrv ~]# ssh -l john ovm.lab.local -p 10000
john@ovm.lab.local's password:
OVM>
OVM> list Server
Command: list Server
Status: Success
Time: 2017-12-19 08:09:21,175 EST
Data:
id:56:4d:88:59:8d:10:18:09:9d:1a:5d:a3:f2:8d:f7:97 name:ovs01.lab.local
OVM>
OVM> list ServerPool
Command: list ServerPool
Status: Success
Time: 2017-12-19 08:09:36,752 EST
Data:
id:0004fb000002000085056823cacce55e name:Pool_01
OVM> exit
Connection to ovm.lab.local closed.

Step 3: Changing the user password

[root@ovm bin]# ./ovm_admin --modifyuser

Oracle VM Manager Release 3.3.5 Admin tool

Please enter the username : john

Please enter the current password :

Please enter a new password for john (minimum 8 chars. with one numeric/special char.) :
Please re-enter the password :
Passwords did not match.

Please enter a new password for john (minimum 8 chars. with one numeric/special char.) :
Please re-enter the password :

Please enter the password for weblogic : ##Enter weblogic user password ##

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 'john' ...
Modified user 'john' successfully ...
Disconnected from weblogic server: AdminServer
Exiting...

Exiting WebLogic Scripting Tool.

Step 4: Delete users

[root@ovm bin]# ./ovm_admin --deleteuser john

Oracle VM Manager Release 3.3.5 Admin tool

Please enter the password for weblogic : ##Enter weblogic user password ##

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 'john' ...
Deleted user 'john' successfully ...
Disconnected from weblogic server: AdminServer
Exiting...

Exiting WebLogic Scripting Tool.

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.