HP-UX vPars and Integrity VM V6.3 Administrator Guide

Table 17 Attributes of a VM (continued)
Default valueCommand optionDescriptionVM attributes
If not specified, resources will
not be reserved when the VM
is off.
-x
resources_reserved=
[true | false]
Enable or disable resource
reservation. For more
information about resource
reservation, see Section 5.3
(page 57)
Resource reservations
If you do not specify this
attribute, user accounts
cannot have admin or oper
privileges.
-u
[+]user[:admin|oper]
Specify user accounts that will
have administrator or operator
privileges to the VM. For more
information about administrator
and operator, see
Section 13.10 (page 225).
User with administrator or
operator privileges
9.1.1 VM name
Use the -P vm-name option to specify the name of the new VM. This option is required for the
hpvmcreate command. In the following example, the new VM is named host1. On the VSP,
enter the following command:
# hpvmcreate -P host1
The VM name can include up to 255 alphanumeric characters, including A-Z, a-z, 0-9, the dash
(—), the underscore (_), and period (.). The VM name must not start with a dash.
9.1.2 Reserved resources
Use the -x resources_reserved={true, false} option to specify whether CPU, memory,
and device resources must be reserved while the VM is in the off state.
nl
# hpvmcreate -P host1 x resources_reserved=true
Resource reservations attempt to guarantee that resources will be available so that the VM can be
started at any time. For more information about reserved resources, see Section 5.3 (page 57).
9.1.3 Virtual CPUs
nl
The following command specifies the number of virtual CPUs to allocate:
nl
# hpvmcreate -c number_vcpus[:minimum[:maximum]]
If you do not specify the number of vCPUs, the default is 1. For example, to set the new VM
nl
host1 to have two vCPUs, enter the following:
# hpvmcreate -P host1 -c 2
The default minimum and maximum boundary values are a minimum of one (1) virtual CPU and
a maximum of 32 virtual CPUs.
To set the new VM to have minimum of 1 vCPU and maximum of 4 vCPU boundary values, and
two (2) virtual CPUs, run the following command:
# hpvmcreate -P host1 -c 2:1:4
9.1.4 CPU entitlement
Use the -e or -E option to specify the CPU entitlement of the VM.
# hpvmcreate -P <vm-name> -e percent[:max_percent]
# hpvmcreate -P <vm-name> -E cycles[:max_cycles]
When you create a VM, you can use the -e option to specify the entitlement as a percentage,
from 5% to 100%. If you do not specify the entitlement, the VM receives 10% entitlement by default.
The maximum entitlement is 100% by default.
For example, to specify an entitlement of 20% for the new VM host1, enter the following command:
9.1 Specifying VM attributes 135