In this post, I will share with you my experience installing OVMM 3.0.3 under OVM 3.0.3 Dom0 host, including:
- A short and sweet action plan to get it up and running ASAP
- A detailed explanation with error messages and solutions
- Clean run output
What you need
Here is a list of things you will need to get started:
- A host with Oracle VM Server 3.0.3 installed, and at least 4GB of RAM (I used the ISO file V29655-01.iso from Oracle eDelivery to install the VM Server)
NOTE: I increased the default root volume size to 8GB and swap partition to 16GB. This allowed me to install OVMM under the root volume.
- Oracle VM Manager 3.0.3 installation media (I used the V29653-01.iso image file).
- bc RPM (I used bc-1.06-21.x86_64.rpm, just Google it to get the RPM)
- A bit of time ;) It may take you ~1-2 hours, depending on luck and hardware speed. The OVMM installation took 25 minutes in my case.
Short and sweet instructions to get things up and running ASAP
- Install the “bc” RPM (see “What you need” above) on the VM Server.
“bc” is used by scripts to calculate the SGA_TARGET init.ora parameter. If you miss installing it, the XE database creation will fail.
- Edit the /boot/grub/grub.conf file.
Change ” kernel /xen.gz dom0_mem=582M” line to ” kernel /xen.gz dom0_mem=4000M” and restart the VM Server. This effectively increases the RAM available for your Dom0 host. You can reduce it after the installation; in my case, I reduced it to 2G. Please let me know how low you manage to go :)
- Add an “oracle” Linux user and a “dba” group.
groupadd dba useradd oracle -g dba
- Add the following 2 lines to /etc/security/limits.conf file.
* soft nofile 65536 * hard nofile 65536
- Create an empty “/u01” directory.
- Adjust one of the installation scripts:
- Start runInstaller.sh.
- Select “1: Demo” as first answer.
- Just before confirming by answering ” 1: Continue,” open a second ssh session and edit the “/tmp/ovmm-installer.selfextract_*/ovm/installer/prerequisites.py” file.
- Find “def verifyLinuxVersion(self)” section and replace two “return False” lines with “return True”.
After this step just sit back, relax and finish the installation, entering passwords and providing default answers.
Detailed explanation with error messages and solutions
This section describes issues and solutions I came up with in chronological order. Most probably you will face these in the order I’ve listed below, if you don’t implement the solutions I provided in the previous section :)
PIT STOP 1
[root@vm04 ~]# /u03/runInstaller.sh Please select an installation type: 1: Demo 2: Production 3: Uninstall 4: Help Select Number (1-4): 1 1: Continue 2: Abort Select Number (1-2): 1 Verifying installation prerequisites ... Oracle VM Manager can only be installed on a 64 bit Oracle Linux version 5.5 and higher. Current version is 'redhat' version '3.0.3' Not enough memory. At least 1500 MB RAM is required but only 580 MB RAM available User 'oracle' does not exist, create this user before installing hardnofiles should be set to 8192 but was 0 Directory or mountpoint /u01 is required Configuration verification failed ... [root@vm04 ~]#
This is where the installer complains about 5 of the 6 issues I encountered. Items 2 through 6 in the above section provide the fixes I came up with for all 5 issues. The only tricky one I think is the OS version check. I didn’t find any other way to convince installer to ignore the fact that we are trying to install OVMM on version ‘3.0.3’ of the operating system. Effectively, I just disabled the check. :) The trick is that the script where we should make the adjustment isn’t available before we start the installer. Therefore, we should start it before we even try to adjust the script.
NOTE: Be sure to delete “/tmp/ovmm-installer.selfextract_*” directories after any unsuccessful installation. Otherwise, you will end up with multiple installation staging areas.
PIT STOP 2
Later on during the installation, after providing passwords and answering other questions, you may possibly find an XE database configuration step failing as follows:
... Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]: Starting Oracle Net Listener...Done Configuring database... Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details
You may also discover the following error message in one of the log files.
[root@vm04 ~]# cat /u01/app/oracle/product/11.2.0/xe/config/log/CloneRmanRestore.log LRM-00116: syntax error at 'sessions' following '=' ORA-01078: failure in processing system parameters ...
The problem here is that the installer scripts use the “bc” Linux utility to calculate a value to be assigned to the sga_target init.ora parameter. “bc” isn’t installed as part of Oracle VM Server 3.0.3. Therefore, we should install it (see item 1 under previous section) to address the issue.
Clean run output
NOTE: I have provided some additional steps I used before kicking off the installation. You may find these useful as well.
-- Initial Setup [root@vm04 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 7.8G 635M 6.8G 9% / /dev/sda1 99M 37M 58M 39% /boot tmpfs 296M 6.5M 289M 3% /dev/shm none 291M 40K 291M 1% /var/lib/xenstored [root@vm04 ~]# grep -i total /proc/meminfo MemTotal: 594432 kB SwapTotal: 16779884 kB VmallocTotal: 34359738367 kB [root@vm04 ~]# -- Adding Partition to store installation media -- Added 50GB external partition (Extended + Logical on top of it) [root@vm04 ~]# fdisk /dev/sda Re-reading the partition table failed with error 16: Device or resource busy. -- To resolve the warning without rebooting [root@vm04 ~]# partprobe /dev/sda -- Making filesystem [root@vm04 ~]# mkfs.ext3 /dev/sda5 [root@vm04 ~]# mkdir /u02 [root@vm04 ~]# grep u02 /etc/fstab /dev/sda5 /u02 ext3 defaults 0 0 [root@vm04 ~]# mount /u02 [root@vm04 ~]# df -h /u02 Filesystem Size Used Avail Use% Mounted on /dev/sda5 47G 181M 45G 1% /u02 [root@vm04 ~]# -- Mount Oracle VM Manager installation ISO [root@vm04 ~]# mkdir /u03 [root@vm04 ~]# mount -o loop /u02/V29653-01.iso /u03 [root@vm04 ~]# df -h /u03 Filesystem Size Used Avail Use% Mounted on /u02/V29653-01.iso 2.4G 2.4G 0 100% /u03 [root@vm04 ~]# -- Starting installation [root@vm04 ~]# /u03/runInstaller.sh Oracle VM Manager Release 3.0.3 Installer Oracle VM Manager Installer log file: /tmp/ovmm-installer.selfextract_QB7274/install-2012-01-28-152236.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 ... Oracle VM Manager can only be installed on a 64 bit Oracle Linux version 5.5 and higher. Current version is 'redhat' version '3.0.3' 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 ... 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 : 0004fb0000010000905ec3901f7d6f52 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://vm04.fun.com:7001/ovm/console https://vm04.fun.com: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_configPk_4fp. [root@vm04 ~]# date Sat Jan 28 15:47:05 EST 2012 [root@vm04 ~]# started: 15:22 - 15:47 => 25 mins
Interested in working with Yury? Schedule a tech call.