Installing Oracle VM Manager
From InstallationWiki
| Official Page |
| Project Documentation |
| Download |
|
In this tutorial, we will install the Oracle VM Manager.
- Oracle EL U2 installation
- Installing Oracle VM Manager
- Upgrading existing Oracle VM Manager
[edit] What's new in Oracle VM Manager 2.1.2
Let's quickly go through the latest features of Oracle VM Manager 2.1.2:
- Server pool wizard: With this easy to use wizard we can create pools in a matter of seconds
HA for pools: This is inline with the Continuous Availability of Oracle Cloud Farm, where we can make HA (High Available) pools upon creation
- P2V and V2V conversions: Convert machines seamlessly to Oracle format
- Rate limit of VIF: Set limits to the Virtual Network Interface and customize network traffic per VM
Prioritize storage usage with Priority Class option for disk: This way we can define levels of QoS (Quality of Service) per disk, assigning 0 as highest priority and 7 as lowest priority
Clearly Oracle is slowly and gradually working towards the commoditization path of Virtual Infrastructure with Xen, where features such as HA, On-Demand Usage, and Smart Metering make perfect sense for a Cloud Computing model.
[edit] What are the hardware requirements?
This section is quite easy to follow. All we need is a machine with the following minimums:
- Memory: 2 GB RAM
- CPU: 1.8 Ghz
- Swap space: 2 GB
- Hard Disk: 4 GB
For testing purposes, we can also choose to pick up any desktop virtualization software such as Sun's VirtualBox, VMware's Workstation 6.5, VMware's Fusion (for Mac OSX), or any other forms. Eventually we can migrate the VM to our Oracle platform and put it in the HA pool. In practical life, I have seen many production environments using VMM (Virtual Machine Management) Consoles products also as VMs, although it is advisable to use a separate piece of hardware to install VM Management Servers.
[edit] Getting the software
Going to the Oracle's VM site ([http://www.oracle.com/technologies/virtualization/index.html http://www.oracle.com/technologies/virtualization/index.html]) will lead us directly to Oracle's e-delivery center ([http://edelivery.oracle.com/linux http://edelivery.oracle.com/linux]). For more information, go to Oracle's Linux portal:([http://www.oracle.com/technology/tech/linux http://www.oracle.com/technology/tech/linux]).
All we need to do is to read the EULA carefully and we can go ahead and download the software of our choice. There are Oracle VM templates, Oracle Enterprise Linux Servers, and of course Oracle VM Manager and Oracle VM Servers packages.
Oracle has been working hard and keeping the e-delivery center pretty much up-to-date. The Oracle Enterprise Linux 5 UPDATE 2 has been recently made available and can be downloaded the minute we acknowledge and accept the legal agreement and fill in the details. Here, we can choose to download the 32 bit version of Oracle Enterprise Linux 5 Update 2. It has been built from Open Source Linux source code. We will go ahead and perform installation on the 64 bit platform. We will even perform Windows 2003 64 bit installations to demonstrate that Oracle VM Servers can run all Windows flavors.
I will quickly sketch out two configurations that I will be using for the Oracle VM platform.
Oracle VM Manager works fine with both Oracle Enterprise Linux 4 Update 5 upwards and RHEL 4 (Red Hat Enterprise Linux Release 4). We will download the latest media pack, a DVD ISO file of approximately 2.6 GB. I have chosen to do the installation of my VMware Fusion on my Mac Tutorial Pro, which has 4 GB memory and a dual core Intel processor. I intend to build a VM and use it to communicate with the two Oracle VM Servers which I will build on two physical servers.
Following are the Quick VM Manager software minimums and checks that we need to perform:
- OS: Oracle EL 4 Update 5 and upwards OR RHEL Release 4 and upwards
- Web Browser: Firefox 1.5 and upwards, Microsoft IE 6.x and upwards
- Check on
libaio.rpmfile - Port check on 8888 and 8899
Before we get to that, we need to do a quick installation of the Oracle Enterprise Linux 5 Update 2 that we have just downloaded. So let's get on with the installation.
[edit] Installing Oracle EL 5 Update 2
Now that we have downloaded the DVD, it's time to install it.
1. The following screenshot shows the first installation screen:
2. Point to the DVD ISO image to start the installation as shown in the following screenshot:
3. Choose the platform and version.
4. Choose Custom Installation and edit the settings to match the hardware requirements:
5. For instance, we shall choose 20 GB for the hard disk here:
6. Now let's start the machine and ensure that the ISO image is selected and the station is connected:
7. We'll get the following Oracle splash screen. Just press Enter:
8. We can choose to test the DVD ISO, but let's choose to skip it:
9. When the installation screen appears, choose Next:
10. Choose English on both occasions unless of course some other language is preferred:
11. We need to change the IP address to static, and make sure that it is on the same LAN segment as our Oracle VM Servers:
12. Now, we need to adjust our regional settings:
13. Choose a strong, unbreakable password for root:
14. Next up, select Software Development and choose the Customize now radio button:
15. In Desktop Environments, we can either select GNOME Desktop Environment or KDE (K Desktop Environment).
I will be using GNOME as I am more comfortable with it; one can feel free to use the environment of his or her choice.
16. Next, click on Applications and choose Editors and Graphical Internet:
17. Click Development and choose Java Development and Legacy Software Development:
18. Deselect Printing Support in the Servers section as that will not be the primary function of this server,
thus making the Servers section totally deselected.
19. Now, click on Base System and select Java (I often select Administration Tools for troubleshooting purposes):
20. Leave Cluster Storage, Clustering, and Virtualization unchecked and continue with the installation.
21. After the installation is complete, the system reboots itself and we will get the following screen:
22. Now, go ahead and create a user, and continue logging in to the system:
[edit] Final checks before installing Oracle VM Manager
We need to carry out some final checks before the installation process.
[edit] Port test
Make sure that ports 8888 and 8899 are free. If, upon entering the following commands, we don't get any response, then it means that these ports are available.
# netstat -na |grep 8888 # netstat -na |grep 8899
If we do get responses, then we must release these ports and allow them through the firewall by entering the following:
# /usr/bin/system-config-securitylevel
Select Enabled for Security Level and choose customize. In Others add the two ports 8888 and 8899 respectively as follows:
8888:tcp,8899:tcp
[edit] Libaio check
The libaio differs for numerous versions. For our chosen OS we should get the following results:
# /bin/rpm -q libaio.i386 libaio-0.3.106-3.2
If we don't get the desired result, it's time to install that specific version of the libaio. We can get it from sites such as rpmfind, and others. Enter the following to install the required libaio version.
# rpm -ivh libaio-0.3.105-2.i386.rpm
[edit] Other checks: Passwords and ports
The following checks need to be performed:
- 1521: A fresh installation may not really pose a problem with ports such as 1521 (Oracle DB Express Edition that is installed on the system) but if we are carrying out the installation again, we might want to check it once more.
- 8080: Default HTTP port for Oracle Database 10g Express Edition.
Passwords: We will be asked to fill passwords for SYS, SYSTEM, OVS (Oracle VM Manager Schema), OC4J (admin password required), SMTP address for our mail server (we can use google.com for test purposes), and email address and password for the admin account for Oracle VM Manager.
[edit] What comes packaged with the Oracle VM Manager ISO file?
The ISO which we will now use has the following components:
- Oracle Database 10g Express Edition
- Oracle VM Manager package
- Data Collector
- Server performance information
- Realtime VM information
- OVS DataCollector log
- Oracle Containers for J2EE (OC4J)
- XML RPC 3.0
[edit] Installing Oracle VM Manager
Now that we are done with the preparatory work of installing the OS and have conducted our formal checks on ports and libraries, we can go ahead and install the VM Manager.
Oracle VM Manager installation goes rather fast and we should be done in about 5-15 minutes depending on how well we have installed the Operating System.
1. Insert the Oracle VM 2.1.2 ISO (if using a desktop virtualization tool) or CD in the CD/DVD ROM drive.
2. Now, enter the following as the root user to mount it in our Oracle EL OS:
# mkdir mnt-pt # mount /dev/cdrom mnt-pt
3. Here, mnt-pt is the directory where we mount the ISO file. Mounting from a hard drive would go like this:
# mkdir mnt-pt # mount -o loop,ro OracleVM-Manager-2.1.2.iso mnt-pt
4. Next, run the following command from mnt-pt directory:
# sh runInstaller.sh
5. The following installation run is self-explanatory:
[root@vmmgr ~]# cd mnt-pt/ [root@vmmgr mnt-pt]# sh runInstaller.sh Welcome to Oracle VM Manager 2.1.2
6. Now enter 1 to install Oracle VM Manager.
Please enter the choice: [1|2|3] 1. Install Oracle VM Manager 2. Uninstall Oracle VM Manager 3. Upgrade Oracle VM Manager 1 Starting Oracle VM Manager 2.1.2 installation ...
7. We need to choose 1 if we are carrying out a fresh Oracle 10g installation. We need to choose 2 if we want to point the Oracle VM Manager to an existing database. We shall choose 1 here as this is a fresh install:
Do you want to install a new database or use an existing one? [1|2] 1. Install a new Oracle XE database on localhost 2. Use an existing Oracle database in my network 1 Prepare to install the Oracle XE database ... Checking the supported platforms ... Done Checking the prerequisite packages are installed ... Done Checking the available disk space ... Done Installing the oracle-xe-univ package (rpm) now ... Done Oracle Database 10g Express Edition Configuration ------------------------------------------------- This will configure on-boot properties of Oracle Database 10g Express Edition. The following questions will determine whether the database should be starting upon system boot, the ports it will use, and the passwords that will be used for database accounts. Press <Enter> to accept the defaults. Ctrl-C will abort.
8. Simply press enter to choose port 8080.
Specify the HTTP port that will be used for Oracle Application Express [8080]:
9. Simply press enter to choose port 1521, the standard Oracle listener port:
Specify a port that will be used for the database listener [1521]:
10. Choose a typical unbreakable password here:
Specify a password to be used for database accounts. Note that the same password will be used for SYS and SYSTEM. Oracle recommends the use of different passwords for each database account. This can be done after initial configuration: Confirm the password:
11. This option ensures that our database instance is started upon booting, and we would certainly want that:
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: Starting Oracle Net Listener...Done Configuring Database...Done Starting Oracle Database 10g Express Edition Instance...Done Installation Completed Successfully. To access the Database Home Page go to "http://127.0.0.1:8080/apex" Checking the availability of the database ... Set default database schema to 'OVS'. Please enter the password for account 'OVS': Confirm the password: Creating the Oracle VM Manager database schema ...Done Installing the ovs-manager package (rpm) ... Done Installing the oc4j package (rpm) ... Done Please enter the password for account 'oc4jadmin': Confirm the password: Starting OC4J ... Done. To access the OC4J Home Page and change the password go to http://127.0.0.1:8888/em Deploying Oracle VM Manager application to OC4J container. Creating connection pool ... Done Creating data source ... Done Deploying application ... Done Deploying application help ... Done Configuring Oracle VM Manager DataCollector ... Done Please enter the password for the default account 'admin': Confirm the password: Configuring SMTP server ... Please enter the outgoing mail server (SMTP) hostname: smtp.google.com Mail server checking, may need some time, please wait ... Setting the SMTP hostname server to smtp.google.com ... Done Please enter an e-mail address for account 'admin': tarry.singh@gmail.com Confirm the e-mail address: tarry.singh@gmail.com Updating e-mail address for account 'admin' to 'mymail@mymail.com' ... Done The console feature is not enabled by default. For detailed setup, refer to Oracle VM Manager User's Guide Installation of Oracle VM Manager completed successfully. To access the Oracle VM Manager home page go to: http://vmmgr:8888/OVS To access the Oracle VM Manager help page go to: http://vmmgr:8888/help/help [root@vmmgr mnt-pt]#
[edit] Upgrading Oracle VM Manager from 2.1 or 2.1.1 to 2.1.2
Upgrading the Oracle VM Manager from older versions is also an easy procedure:
1. Again, enter the following as the root user to mount it in our Oracle EL OS:
# mkdir mnt-pt # mount /dev/cdrom mnt-pt
2. Here mnt-pt is the directory where we mount the ISO file.
3. Mounting from a hard drive would go like this:
# mkdir mnt-pt # mount -o loop,ro OracleVM-Manager-2.1.2.iso mnt-pt
4. Next, running the installer from the mnt-pt directory:
# sh runInstaller.sh [root@vmmgr ~]# cd mnt-pt/ [root@vmmgr mnt-pt]# sh runInstaller.sh Welcome to Oracle VM Manager 2.1.2
5. This time, enter 3 to upgrade Oracle VM Manager
Please enter the choice: [1|2|3] 1. Install Oracle VM Manager 2. Uninstall Oracle VM Manager 3. Upgrade Oracle VM Manager
6. The upgrade process starts:
Starting Oracle VM Manager 2.1.2 upgrade ...
7. Enter y when prompted:
Are you sure you want to upgrade Oracle VM Manager from version current_version to new_version ? [y|N]: y
8. Enter the required passwords for OVS and oc4jadmin:
Please enter the password for database account 'OVS': Please enter the password for account 'oc4jadmin':
9. Enter y to accept the Oracle VM Manager backup option:
Would you like to back up the Oracle VM Manager database ? [Y|n] (default=y)
10. Upgrade is completed when the following message is displayed:
Upgrade Oracle VM Manager sucessfully.
Now, login to the Oracle VM Manager and check if it has upgraded to version 2.1.2. The OC4J log file can also be investigated and can be located at /opt/oc4j/dump-timestamp.dmp. Any upgrade issues can also be investigated by checking the upgrade_oldversion_newversion.log in the /var/log/ovm-manager directory.
[edit] Uninstalling Oracle VM Manager
Uninstallation may be required if something has gone awry in our installation. The following steps will perform a complete uninstall. It is a simple procedure:
1. Again, enter the following as the root user to mount it in our Oracle EL OS:
# mkdir mnt-pt # mount /dev/cdrom mnt-pt
2. Here mnt-pt is the directory where we mount the ISO file.
3. Mounting from a hard drive would go like this:
# mkdir mnt-pt # mount -o loop,ro OracleVM-Manager-2.1.2.iso mnt-pt
4. Then run the following:
# sh runInstaller.sh [root@vmmgr ~]# cd mnt-pt/ [root@vmmgr mnt-pt]# sh runInstaller.sh Welcome to Oracle VM Manager 2.1.2
5. Here enter 2 to uninstall Oracle VM Manager.
Please enter the choice: [1|2|3] 1. Install Oracle VM Manager 2. Uninstall Oracle VM Manager 3. Upgrade Oracle VM Manager
6. Enter y to confirm the uninstallation:
Are you sure you want to uninstall Oracle VM Manager ?[y|N] (Default=N):y
7. A message stating that the Oracle VM Manager was uninstalled will be displayed:
Oracle VM Manager was removed.
[edit] Logging into WebUI: Oracle VM Manager, Oracle Database, and OC4J homepages
Now that we have successfully installed everything, the Application Server homepage should look like the following:
The Database homepage should look like the following:
And finally our Oracle VM Manager homepage:
[edit] Additional References
- For instructions on Troubleshooting VM Manager, click here
- For instructions on Customizing Apex using Oracle Application Express, click here
- For instructions on Debugging Oracle Scheduler, click here
- For instructions on Installing Oracle Essbase, click here
[edit] Source
The source of this content is Chapter 2: Installing Oracle VM Manager of Oracle VM Manager 2.1.2 by Tarry Singh Packt Publishing, 2009).
