Use the oakcli configure vm
command to configure a virtual machine on Oracle Database Appliance Virtualized Platform.
Include a -prefnode
clause, to identify the node where you want the virtual machine to run by default and a -failover
clause to indicate if you want the virtual machine to use the other node when the preferred node is not available (either at startup or while already active).
If you reconfigure a virtual machine that is currently running, then your changes do not take effect until you stop and restart the virtual machine.
Example
Set values for specific resources in the virtual machine named myol15u_test
:
oakcli configure vm myol5u_test -vcpu 2 -cpuprio 150 -cpucap 20 -memory 1G -cpupool linpool -keyboard en-us -mouse USB_MOUSE
Parameter | Description |
---|---|
|
Sets two (2) as the number of CPUs to be assigned to the virtual machine when started |
|
Sets the CPU access priority to 150 |
|
Sets the maximum percentage of a CPU's capacity that will be assigned to the virtual machine to 20% |
|
Sets the amount of memory assigned when the virtual machine starts to 1 GB |
|
Specifies |
|
Defines the keyboard type used to access the virtual machine as |
|
Defines the mouse type used to access the virtual machine as a USB mouse |
These values will override values assigned to these same parameters in the virtual machine template from which this virtual machine was derived. The virtual machine will use default values for parameters that are not defined in either the parent template or in a configuration command.
Note:
CPU capacity is controlled by the CPU pool assigned to a virtual machine by either the -cpupool
parameter or by the default_unpinned_pool (if the virtual machine is not configured with a -cpupool
parameter). Values for -vcpu
and -maxvcpu
parameters that are larger than the number of CPUs in the assigned CPU pool are ignored.