Below are examples of ovm_vmcontrol
commands
and their respective output.
Display detailed information of a particular virtual machine:
# ./ovm_vmcontrol -u admin -p password
-h localhost -v MyVM02 -c info
Oracle VM VM Control utility 0.5.2.
Connected.
Command : info
Virtual Machine : MyVM02
Status : Running
Memory : 1024
Uptime : 83 Minutes
Server : OVS_01
Pool : MyServerPool1
HA Mode: false
VCPU : 2
Type : Xen HVM
OS : Oracle Linux 6
vminfo 'MyVM02' completed.
Check the status of a particular virtual machine:
# ./ovm_vmcontrol -u admin -p password
-h localhost -v MyVM02 -c status
Oracle VM VM Control utility 0.5.2.
Connected.
Command : status
Virtual Machine : 'MyVM02' status : 'Running' on server 'OVS_01' serverpool : 'MyServerPool1'.
Stop a particular virtual machine:
# ./ovm_vmcontrol -u admin -p password
-h localhost -v MyVM01 -c stop
Oracle VM VM Control utility 0.5.2.
Connected.
Command : stop
stopvm 'MyVM01' completed.
Start a particular virtual machine:
# ./ovm_vmcontrol -u admin -p password
-h localhost -v MyVM01 -c start
Oracle VM VM Control utility 0.5.2.
Connected.
Command : start
startvm 'MyVM01' completed.
Lock a particular virtual machine:
# ./ovm_vmcontrol -u admin -p password
-h localhost -v MyVM01 -c lock
Oracle VM VM Control utility 0.5.2.
Connected.
Command : lock
Locking VM 'MyVM01'
Press Ctrl-C to unlock.
The lock command will sleep until you press
Ctrl+C
to release the lock. If the
ovm_control
utility is killed, the VM
would be unlocked as well.