{"id":290,"date":"2013-05-02T00:28:44","date_gmt":"2013-05-02T07:28:44","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=290"},"modified":"2013-05-02T00:28:44","modified_gmt":"2013-05-02T07:28:44","slug":"migrate-ovm-manager-to-a-different-server","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/migrate-ovm-manager-to-a-different-server\/","title":{"rendered":"Migrate OVM Manager to a Different Server"},"content":{"rendered":"

For whatever reason you ever need to migrate an OVM Manager to a different host this would be helpful. I can't imagine that this would need to happen that often but I recently did need to cut it over from a Virtualbox instance to an OVM Hypervisor. This is the OVM 3.2.1 local mysql(not Oracle XE) DB version.<\/p>\n

Find the source UUID:<\/p>\n

\r\n# more \/u01\/app\/oracle\/ovm-manager-3\/.config\r\nDBTYPE=MySQL\r\nDBHOST=localhost\r\nSID=ovs\r\nLSNR=49500\r\nOVSSCHEMA=ovs\r\nAPEX=8080\r\nWLSADMIN=weblogic\r\nOVSADMIN=admin\r\nCOREPORT=54321\r\nUUID=0004fb0000010000434a8179cda0edbd\r\nBUILDID=3.2.1.516\r\n<\/pre>\n

Copy recent backup and stage on new host. You can make a manual mysql backup or I just used the latest Auto backup:<\/p>\n

\r\n# tar cpf a.tar AutoFullBackup-20130501_201957\r\n# scp a.tar root@172.16.97.155:\/root\r\n<\/pre>\n

Some pre-requisites the install would be pointing out:<\/p>\n

\r\n# grep oracle \/etc\/group\r\ndba:x:501:oracle\r\n\r\n# tail -3 \/etc\/security\/limits.conf\r\n* soft nofile 16384\r\n* hard nofile 65536\r\n# End of file\r\n\r\n[root@hovmmanager a]# ulimit -aH\r\n...\r\nopen files                      (-n) 65536\r\n...\r\n<\/pre>\n

Install Manager on new host using old UUID:<\/p>\n

\r\n# pwd\r\n\/mnt\/a\r\n\r\n# .\/runInstaller.sh --uuid 0004fb0000010000434a8179cda0edbd\r\nOracle VM Manager Release 3.2.1 Installer\r\n\r\nOracle VM Manager Installer log file:\r\n\/tmp\/ovm-manager-3-install-2013-05-02-115510.log\r\n\r\nPlease select an installation type:\r\n   1: Simple (includes database if necessary)\r\n   2: Custom (using existing Oracle database)\r\n   3: Uninstall\r\n   4: Help\r\n\r\n   Select Number (1-4): Please enter a valid value\r\n   Select Number (1-4): 1\r\n\r\nStarting production with local database installation ...\r\n\r\nVerifying installation prerequisites ...\r\nUnable to ping hostname 'hovmmanager.keste.com'.\r\n*** WARNING: Recommended memory for the Oracle VM Manager server installation using Local MySql DB is 7680 MB RAM\r\nGroup 'dba' does not exist, create user 'oracle' with group 'dba' before installing\r\nhardnofiles should be set to 8192 but was 4096\r\n<\/pre>\n

*** OK lets try again. Left above in to show the pre-requisites...<\/span><\/p>\n

\r\n# .\/runInstaller.sh --uuid 0004fb0000010000434a8179cda0edbd\r\n\r\nOracle VM Manager Release 3.2.1 Installer\r\n\r\nOracle VM Manager Installer log file:\r\n\/tmp\/ovm-manager-3-install-2013-05-02-120741.log\r\n\r\nPlease select an installation type:\r\n   1: Simple (includes database if necessary)\r\n   2: Custom (using existing Oracle database)\r\n   3: Uninstall\r\n   4: Help\r\n\r\n   Select Number (1-4): 1\r\n\r\nStarting production with local database installation ...\r\n\r\nVerifying installation prerequisites ...\r\n\r\nOne password is used for all users created and used during the installation.\r\nEnter a password for all logins used during the installation:\r\nEnter a password for all logins used during the installation (confirm):\r\n\r\nVerifying configuration ...\r\n\r\nStart installing the configured components:\r\n   1: Continue\r\n   2: Abort\r\n\r\n   Select Number (1-2): 1\r\n\r\nStep 1 of 9 : Database Software...\r\nInstalling Database Software...\r\nRetrieving MySQL Database 5.5 ...\r\nUnzipping MySQL RPM File ...\r\nInstalling MySQL 5.5 RPM package ...\r\nConfiguring MySQL Database 5.5 ...\r\nInstalling MySQL backup RPM package ...\r\n\r\nStep 2 of 9 : Java ...\r\nInstalling Java ...\r\n\r\nStep 3 of 9 : Database schema ...\r\nCreating database 'ovs' ...\r\nCreating user 'ovs' for database 'ovs'...\r\n\r\nStep 4 of 9 : WebLogic ...\r\nRetrieving Oracle WebLogic Server 11g ...\r\nInstalling Oracle WebLogic Server 11g ...\r\n\r\nStep 5 of 9 : ADF ...\r\nRetrieving Oracle Application Development Framework (ADF) ...\r\nUnzipping Oracle ADF ...\r\nInstalling Oracle ADF ...\r\nInstalling Oracle ADF Patch...\r\n\r\nStep 6 of 9 : Oracle VM  ...\r\nRetrieving Oracle VM Manager Application ...\r\nExtracting Oracle VM Manager Application ...\r\nInstalling Oracle VM Manager Core ...\r\n\r\nStep 7 of 9 : Domain creation ...\r\nCreating Oracle WebLogic Server domain ...\r\nStarting Oracle WebLogic Server 11g ...\r\nConfiguring data source 'OVMDS' ...\r\nCreating Oracle VM Manager user 'admin' ...\r\n\r\nStep 8 of 9 : Deploy ...\r\nDeploying Oracle VM Manager Core container ...\r\nDeploying Oracle VM Manager UI Console ...\r\nDeploying Oracle VM Manager Help ...\r\nGranting ovm-admin role to user 'admin' ...\r\nSet Log Rotation ...\r\nDisabling HTTP and enabling HTTPS...\r\nConfiguring Https Identity and Trust...\r\nConfiguring Weblogic parameters...\r\n\r\nStep 9 of 9 : Oracle VM Manager Shell ...\r\nRetrieving Oracle VM Manager Shell & API ...\r\nExtracting Oracle VM Manager Shell & API ...\r\nInstalling Oracle VM Manager Shell & API ...\r\n\r\nRetrieving Oracle VM Manager Upgrade tool ...\r\nExtracting Oracle VM Manager Upgrade tool ...\r\nInstalling Oracle VM Manager Upgrade tool ...\r\n\r\nRetrieving Oracle VM Manager CLI tool ...\r\nExtracting Oracle VM Manager CLI tool...\r\nInstalling Oracle VM Manager CLI tool ...\r\nCopying Oracle VM Manager shell to '\/usr\/bin\/ovm_shell.sh' ...\r\nInstalling ovm_admin.sh in '\/u01\/app\/oracle\/ovm-manager-3\/bin' ...\r\nInstalling ovm_upgrade.sh in '\/u01\/app\/oracle\/ovm-manager-3\/bin' ...\r\nEnabling Oracle VM Manager service ...\r\nShutting down Oracle VM Manager instance ...\r\nRestarting Oracle VM Manager instance ...\r\nWaiting for the application to initialize ...\r\nOracle VM Manager is running ...\r\nOracle VM Manager installed.\r\n\r\nPlease wait while WebLogic configures the applications... This can take up to 5 minutes.\r\n\r\nInstallation Summary\r\n--------------------\r\nDatabase configuration:\r\n  Database type               : MySQL\r\n  Database host name          : localhost\r\n  Database name               : ovs\r\n  Database listener port      : 49500\r\n  Database user               : ovs\r\n\r\nWeblogic Server configuration:\r\n  Administration username     : weblogic\r\n\r\nOracle VM Manager configuration:\r\n  Username                    : admin\r\n  Core management port        : 54321\r\n  UUID                        : 0004fb0000010000434a8179cda0edbd\r\n\r\nPasswords:\r\nThere 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.\r\n\r\nOracle VM Manager UI:\r\n  https:\/\/vmmanager.domain.com:7002\/ovm\/console\r\nLog in with the user 'admin', and the password you set during the installation.\r\n\r\nPlease note that you need to install tightvnc-java on this computer to access a virtual machine's console.\r\n\r\nFor more information about Oracle Virtualization, please visit:\r\n  http:\/\/www.oracle.com\/virtualization\/\r\n\r\nOracle VM Manager installation complete.\r\n\r\nPlease remove configuration file \/tmp\/ovm_configBltiZ5.\r\n\r\nRestore DB:\r\n[bash]\r\n# pwd\r\n\/u01\/app\/oracle\/mysql\/dbbackup\r\n\r\n# mv \/root\/AutoFullBackup-20130501_201957\/ .\/\r\n\r\n# \/etc\/init.d\/ovmm stop\r\nStopping Oracle VM Manager                                 [  OK  ]\r\n# \/etc\/init.d\/ovmm_mysql stop\r\nShutting down OVMM MySQL..\r\n\r\n# su - oracle\r\n$\r\n\r\n$ bash \/u01\/app\/oracle\/ovm-manager-3\/ovm_shell\/tools\/RestoreDatabase.sh AutoFullBackup-20130501_201957\r\nINFO: Expanding the backup image...\r\nINFO: Applying logs to the backup snapshot...\r\nINFO: Restoring the backup...\r\nINFO: Success - Done!\r\nINFO: Log of operations performed is available at: \/u01\/app\/oracle\/mysql\/dbbackup\/AutoFullBackup-20130501_201957\/Restore.log\r\n\r\nIMPORTANT:\r\n      As 'root', please start the OVM Manager database and application using:\r\n               service ovmm_mysql start; service ovmm start\r\n\r\n$ logout\r\n\r\n# \/etc\/init.d\/ovmm_mysql start\r\nStarting OVMM MySQL..                                      [  OK  ]\r\n# \/etc\/init.d\/ovmm start\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

For whatever reason you ever need to migrate an OVM Manager to a different host this would be helpful. I<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-290","post","type-post","status-publish","format-standard","hentry","category-ovm"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=290"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/290\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}