This example imports a virtual machine template named
OVM_OL5U7_X86_64_PVM_10GB.tgz
from an external template repository at the URL
'http://example.com/assemblies/OEL6/OVM_OL6U1_x86_PVHVM.tgz'.
Note the
single quotation marks that enclose the URL. The template is assigned the name
OL5U7
, and is imported into the
odarpo1
repository:
oakcli import vmtemplate OL5U7 -files 'http://example.com/assemblies/OEL6/
OVM_OL6U1_x86_PVHVM.tgz'-repo odarepo1
Configuring a Virtual Machine Template
Use the
oakcli configure vmtemplate
command to configure a virtual machine
template on Oracle Database Appliance Virtualized Platform.
The values become the default values for any virtual machine cloned from this
template. You can change any or all of them later with the
oakcli configure vm
command.
Example
Set values for the virtual machine template named
myol5u7_10gb
:
oakcli configure vmtemplate myol5u7_10gb -vcpu 2 -maxvcpu 4 -cpucap 40
-memory 1536M -maxmemory 2G -os OTHER_LINUX
•
-vcpu 2
sets the number of CPUs to be assigned when the virtual machine starts
up to 2.
•
-maxvcpu 4
sets the maximum number of CPUs that can be assigned to the virtual
machine to 4.
•
-cpucap 40
sets the maximum percentage of a CPU's capacity that can be
assigned to the virtual machine to 40%.
•
-memory 1536M
sets the amount of memory to be assigned when the virtual
machine starts up to 1536 MB.
•
-maxmemory 2G
sets the maximum amount of memory that can be assigned to the
virtual machine to 2 GB.
•
-os OTHER_LINUX
sets OTHER_LINUX as the operating system used by the virtual
machine.
Showing Configured Values for a Virtual Machine Template
Use the
oakcli show vmtemplate
command to show values for the configurable
options in a virtual machine template.
Example
Display information about the
sample1_odarepo1
virtual template:
oakcli show vmtemplate sample_odarepo1
Resource: sample1_odarepo1
CPUPriority : 100
Disks : |file:/OVS/Repositories/odarepo1/Te
mplates/otml_sample1_odarepo1/Syste
m.img,xvda,w||file:/OVS/Repositorie
Chapter 12
How to Manage Virtual Machine Templates
12-19
Summary of Contents for Database Appliance X6-2-HA
Page 15: ...Index xv...