You are here

Oracle VM Manager Environment Configuration Script


Oracle VM Manager Environment Configuration Script

Step 1 Step 2 Step 3 Step 4
Download the Oracle VM Manager Installation Media Oracle VM Manager Prerequisites
Install Oracle VM Manager
Oracle VM Manager Post Installation Checklist
 
Applicable for all Oracle VM Releases
The createOracle.sh is on the Oracle VM Manager ISO file, and should be used to setup the oracle user account, the /u01 directory and iptables for an Oracle VM Manager installation. The createOracle.sh script must be run as root. The createOracle.sh will perform the following tasks:
  • Creates the dba group
  • Creates the oracle user and adds the oracle user to the dba group
  • Creates the /u01 directory
  • Configures the /etc/security/limits.conf file
  • Opens the required ports in iptables by editing the /etc/sysconfig/iptables file


To run the createOracle.sh script, as root, mount the Oracle VM Manager installer ISO file, change to the mount point and type “./createOracle.sh”.

The next example shows how to mount the Oracle VM Manager installation media and run the createOracle.sh script.

  • Download the Oracle VM Manager installation media from the Oracle Software Delivery Cloud - Oracle Linux and Oracle VM portal.
  • Copy the Oracle VM Manager installation media to a directory on the Oracle VM Manager host, and unzip the file.
  • Log in to the Oracle VM Manager 3.0 host as root.
  • Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /mnt”
  • Change to the /mnt directory, i.e. “cd /mnt.
  • Type “./createOracle.sh” to run the createOracle.sh script.

Oracle VM Manager installer expects a directory named /u01 with a minimum of 2.4 GB of available space. Oracle VM Manager and the Core API will be installed into the /u01/app/oracle directory. The “oracle” user account, in the “dba” group, must be the owner of the “/u01/app/oracle” directory.

The /u01 installation directory follows the Optimal Flexible Architecture (OFA) standard. The OFA Optimal Flexible Architecture is a set of recommendations for naming files and folders when installing and implementing an Oracle technology products.

The “/u01” directory can be created and prepared using the configuration script (createOracle.sh ) located in the Oracle VM Manager installation media, or as root by typing the following commands.
# mkdir /u01

Tip: The default firewall used by an Oracle Linux 5U5 and above Oracle VM Manager host is iptables. In order to use Oracle VM Manager, the Core API and the Oracle Management Agent with iptables enabled, it is necessary to open tcp ports 7001, 7002, tcp-54321 or tcps-54322, 15901 and 3872 as well as UDP 123.

To open the necessary ports in iptables, as root edit the /etc/sysconfig/iptables file and ensure that the following iptables rules are present.
 
# vi /etc/sysconfig/iptables
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7001 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7002 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 15901 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 54322 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3872 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p udp --dport 123 -j ACCEPT
COMMIT
:wq!

Next, restart iptables, by typing the following command:
# /etc/init.d/iptables restart

If you experience connection challenges, a troubleshooting first step is to “temporarily” disable iptables.

To disable iptables, as root, type the following command:
# /etc/init.d/iptables stop && chkconfig iptables off
To re-enable iptables, as root, type the following command:
# chkconfig iptables on && /etc/init.d/iptables start
Download PDF Now!