The ovm_vmcontrol utility operates on a virtual machine. It passes basic virtual machine control commands from the command line to Oracle VM Manager. This utility allows you to lock a virtual machine, send and receive messages from a virtual machine, or set CPU pinning (hard partitioning).
Syntax
ovm_vmcontrol
{
-u
} {
username
-p
|
password
-E
} {
-h
} {
hostname
-c
} [
command
-v
] [
vm_name
-s
...
] [
cpu_thread
-T
...
] {
tag
-C
{
preserve
|
restart
|
coredump-restart
|
coredump-destroy
|
none
}
}
Where
is:
command
{
lock
|
vcpuset
|
vcpuget
|
settags
|
gettags
|
setoncrash
|
getoncrash
|
setsuperpage
|
unsetsuperpage
}
Options
The following table shows the available options for this command.
Option | Description |
---|---|
| The username of an Oracle VM Manager admin user. This option is required. |
{
|
The # export OVMUTIL_PASS=
This option is required. |
| The hostname of the server running Oracle VM Manager. This option is required. |
| The command to execute. This option is required.
The
The lock command sleeps until you
press
The
The |
| The virtual machine name. |
| A comma separated list of physical thread numbers with which to bind virtual CPUs.
The list of thread numbers can be a range, or a
specific list of physical CPU threads. For example,
This command must be used in combination with:
|
| A comma separated list of strings to be associated with a virtual machine as metadata This command must be used in combination with:
|
| Change a virtual machine's on_crash setting. This command must be used in combination with:
|
Examples
Example 2.1 Locking a virtual machine
# ./ovm_vmcontrol -u admin -E -h localhost -v MyVM01 -c lock
Oracle VM VM Control utility version
.
Connected.
Command : lock
Locking VM 'MyVM01'
Press Ctrl-C to unlock.
Example 2.2 Checking CPU pinning for a virtual machine
This example shows the virtual CPUs of the virtual machine are bound to threads 0 and 1.
# ./ovm_vmcontrol -u admin -E -h localhost -v MyVM01 -c vcpuget
Oracle VM VM Control utility version
.
Connecting with a secure connection.
Connected.
Command : vcpuget
Current pinning of virtual CPUs to physical threads : 0-1
Example 2.3 Setting CPU pinning for a virtual machine
This example binds the virtual CPUs of the virtual machine to thread 0.
# ./ovm_vmcontrol -u admin -E -h localhost -v MyVM01 -c vcpuset -s 0
Oracle VM VM Control utility version
.
Connecting with a secure connection.
Connected.
Command : vcpuset
Pinning virtual CPUs
Pinning of virtual CPUs to physical threads '0' 'vm1' completed.