This section discusses the methods of starting and stopping Oracle VM Manager. For information on starting and stopping the Oracle VM Manager Command Line Interface, see Starting and Stopping the CLI in the Oracle VM Manager Command Line Interface User's Guide.
It is important to understand that Oracle VM Manager is dependent on the Oracle VM Manager MySQL server instance. These components are separated to run as independent services. In the case where the Oracle VM Manager MySQL service is stopped, it is not possible to start the Oracle VM Manager service. In the case where the Oracle VM Manager service is already running and the Oracle VM Manager MySQL service is stopped, errors are generated by Oracle VM Manager and are logged to the relevant Oracle VM Manager log files. This behavior is documented further in Working with the MySQL Instance in the Oracle VM Administrator's Guide.
Instructions for Oracle VM Manager on Linux for x86
When Oracle VM Manager is installed, it is set to automatically start when the operating system starts. If you want to disable this, enter:
# chkconfig ovmm off
To manually start or stop Oracle VM Manager, and to verify its status, log in as the root user, and use the syntax:
/sbin/service ovmm [start|stop|status|restart]
For example, to start Oracle VM Manager:
# /sbin/service ovmm start
To stop Oracle VM Manager, you must first stop the Oracle VM Manager Command Line Interface, then Oracle VM Manager:
# /sbin/service ovmm stop
To restart Oracle VM Manager:
# /sbin/service ovmm restart
As of Oracle VM Release 3.4.5, a
check_migrate
option can be used with the stop
or
restart
commands, allowing you to check for active VM migration jobs that
are triggered by a server pool load balancing job. VM migration jobs of this type must be
completed first before you stop or restart your Oracle VM Manager instance. Log in as the
root user, and use the syntax:
/sbin/service ovmm [stop check_migrate|restart check_migrate]
The check_migrate
option does not execute when
issuing the stop or restart commands on an Oracle Linux 7
environment. Interactive scripts are not permitted with the
systemctl command and as a result, you must
run the following command first to check if active VM migration
jobs that are triggered by a server pool load balancing job are
present, before proceeding to stop or restart the Oracle VM Manager
instance:
# /u01/app/oracle/ovm-manager-3/ovm_shell/ovm_shell.sh -u admin -i check_migrate_job.py
For example, on an Oracle Linux 6 environment append
check_migrate
to the Oracle VM Manager
/sbin/service ovmm stop command as follows:
# /sbin/service ovmm stop check_migrate
The check_migrate
option displays the following
confirmation message and prompts you for the current Oracle VM Manager
password:
check_migrate option is passed. Script will check for active VM Migrate jobs triggered by PoolLoadBalancer, before proceeding with ovmm stop # Enter ovmm Password:
If the password is accepted, the check_migrate
option executes a script
to check for any active VM migration jobs triggered by a server pool load balancing job. If no
VM migration jobs are active, a success message is displayed and Oracle VM Manager is stopped:
Enter ovmm Password: SUCCESS Stopping Oracle VM Manager
If active VM migration jobs are found as a result of the check_migrate
option, the ovmm stop command is not executed. Instead, an error message is
displayed containing the VM migration and pool load balancer job IDs:
Enter ovmm Password: ERROR: VM Migrate Job with id : [OVMJOB_ID
]PoolLoadBalancer-ID
is still active
You must wait until these VM migration jobs are complete before attempting stop or restart Oracle VM Manager. Use the Oracle VM Manager Command Line Interface show Job command to monitor the progress of the VM migration job to determine when the job completes. For more information, see the CLI Command Reference section in the Oracle VM Manager Command Line Interface User's Guide .
To check the status of Oracle VM Manager:
# /sbin/service ovmm status
The status
option returns whether the Oracle VM Manager
service is running or stopped.
If the Oracle VM Manager host computer runs a full graphical desktop environment, you can also use the Services dialog to start and stop the CLI. From the Applications menu, select System Settings > Server Settings > Services. Or by running the following command in a terminal to display the Services dialog:
# /usr/bin/system-config-services
In the Service Configuration dialog, select ovmm to check the status, and start or stop it.
Instructions for Oracle VM Manager on Solaris for SPARC
When Oracle VM Manager is installed, it runs as a service that can be managed using the standard Solaris Service Management Facility (SMF) tools. Therefore, to obtain a report on the status of the service, you can simply use the svcs tool:
# svcs ovmm
You can use the -l
to print a more detailed
listing, including the full FMRI and restarter service paths.
Starting, stopping and restarting the service can be handled using
the svcadm command. This can either be done on
a temporary basis using the -t
option, or can be
enforced permanently to set the start-up behavior of the service.
As of Oracle VM Release 3.4.5, a check_migrate
option can be used
with the disable
or restart
commands, allowing you to
check for active VM migration jobs that are triggered by a server pool load balancing job.
VM migration jobs of this type must be completed first before you stop or restart your
Oracle VM Manager instance.
For example, to stop Oracle VM Manager from starting up on start-up, run the command:
# svcadm disable ovmm
To stop Oracle VM Manager from running temporarily:
# svcadm disable -t ovmm
To start Oracle VM Manager:
# svcadm enable ovmm
To restart Oracle VM Manager, provided that no migrations for load balancing are ongoing:
# svcadm restart ovmm check_migrate