You are here

Oracle VM Manager Script Tips & Tricks

Applicable for all Oracle VM Releases
The Oracle VM Manager script has several handy options. The options can be listed by typing:
# ./ --help
Oracle VM Manager Release 3.3.1 Installer
Usage: [options]
  -h, --help               Shows this message
  -c, --config <cfgFile>   Use specified config file to do install
  -u, --uuid <uuid>        Manager UUID (install using the provided manager UUID)
  -i, --installtype <type> Install type : Install, Uninstall, Upgrade
  -y, --assumeyes          Automatically answer yes on Continue? questions
  -n, --noprereq           Ignore prerequisite checks
  -k, --cleanup            Clean up temporary config file after installation

To run the Oracle VM runInstaller script follow these steps:

  • Download the Oracle VM Manager installation media (not source) 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.
  • Log in to the Oracle VM Manager host as root, and unzip the file.
  • Mount the ISO file by typing “mount -o loop <FILE NAME>.iso /mnt”
  • Change to the /mnt directory, i.e. “cd /mnt.
  • Run the installer script as root, by typing “./”

Using the script with no options will prompt for each required option.

Table 6 shows the runInstaller options with examples.

[ -h | --help ]
Displays the help screen with parameters and options.
{ -c | --config= }configfile.yml
Specifies an install configuration file for a silent install. 
# ./ --config=/path/configfile.yml --installtype=Install --assumeyes
{ -u | --uuid= } uuid
Sets the UUID for Oracle VM Manager. Restoring Oracle VM Manager includes using the UUID restore switch (-u, or --uuid) with the UUID of the Oracle VM Manager installation that will be restored. The Oracle VM Manager UUID is listed in the “.config ” file on the Oracle VM Manager host in the /u01/app/oracle/ovm-manager-3/ directory as well as in each server pool' .ovspoolfs file (OVS_REPO_MGR_UUID=UUID) located in the pool file system. The UUID restore switch is used with the script, i.e. ./ -u UUID.
{ -i | --installtype= } {Install | Uninstall | Upgrade}
Selects the install type without being prompted. Use this options with a silent install.
# ./ --installtype=Install --assumeyes
The above example would do a silent install with default settings.
{ -y | --assumeyes }
Sets all the install prompts to respond yes. When combined with the --installtype=Install option, a silent install with the default settings is ran.
# ./ --installtype=Install --assumeyes
{ -n | --noprereq }
Sets the installer to ignore all prerequisite checks. This option is really handy to bypass false prerequisite errors. For example if the oracle-rdbms-server-12cR1-preinstall RPM is part of your standatrd OS build, it creates a file named "/etc/security/limits.d/oracle-rdbms-server-12cR1-preinstall.conf" that overrides the limits.conf setting, and stops the Oracle VM installer with a prerequisite error.
# ./ --noprereq
{ -k | --cleanup }
Sets the installer to remove all of the temporary install and configuration files.
# ./ --cleanup

Silent Oracle VM Release 3.3.2 Installation 

The next example shows the command to run a silent Oracle VM Release 3.3.2 install with an answer file:

./ --config=/path/configfile.yml -i install --assumeyes 

Note: Substitute /path/configfile.yml with the path to your YAML formatted configuration file with the following keys and values.
    port : 49500
    user : ovs
    password : password
    user : weblogic
    password : password
    user : admin
    password : password
       FQN :
YAML formatted configuration file notes: 
1) Substitute the password with your MySQL Database and WebLogic passwords, and the FQN with your Oracle VM Manager host's fully qualified domain name. 
2) Ensure that your YAML formatted configuration file does not have hidden special characters. With vim use the :set list option to confirm there are no hidden special characters. The below example shows a YAML formatted configuration file in vim with the ":set list" option to confirm there are no hidden special characters. 

        port : 49500$
        user : ovs$
        password : password$
        user : weblogic$
        password : password$
        user : admin$
        password : password$
        FQN :$

:set list


Silent Oracle VM Release 3.3 Uninstall

The next example shows the command to run a silent Oracle VM Release 3.3 uninstall:

./ -i Uninstall -y

Download PDF Now!