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

NOTE: When creating a vPar using the hpvmcreate command, resource reservations and
AutoBoot are not set by default, as is the default when using the vparcreate command. The
following two commands are functionally equivalent:
vparcreate -P vparName
hpvmcreate -P vparName -B auto -x vm_type=vpar -x resources_reserved=true
13.5 Transformation between VM and vPar
A VM can be transformed into a vPar by setting its vm_type attribute to vpar using the
hpvmmodify command. Also a vPar, created using the vparcreate or hpvmcreate command
can be transformed into a VM by changing the vm_type attribute to shared. While making the
transformation between VM and vPar, additional changes might be required for VM or vPar
configuration to get the expected or default behaviour of a VM or vPar. The VM or vPar must be
shutdown before making the transformation.
Resource Reservations
For a vPar created using the vparcreate command, the resources_reserved attribute is
disabled by default for a VM and enabled by default for a vPar. For more information about
resource reservation, see Section 5.3 (page 57). During the transformation between VM and vPar,
the resources_reserved attribute must be changed to get the desired VM or vPar behaviour.
# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # Type OS Type State #VCPUs #Devs #Nets Memory
==================== ===== ==== ======= ========= ====== ===== ===== =======
vm1 9 SH HPUX On (OS) 2 1 1 2 GB
vpar1 11 VP HPUX On (OS) 1 1 1 2 GB
To transform a VM into a vPar,
# hpvmstop -P vm1 -g
# hpvmmodify -P vm1 -x vm_type=vpar -x resources_reserved=true
# hpvmstart -P vm1
# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # Type OS Type State #VCPUs #Devs #Nets Memory
==================== ===== ==== ======= ========= ====== ===== ===== =======
vm1 9 VP HPUX On (OS) 2 1 1 2 GB
vpar1 11 VP HPUX On (OS) 1 1 1 2 GB
Similarly, to transform a vPar into a VM,
# hpvmstop -P vpar1 -g
# hpvmmodify -P vpar1 -x vm_type=shared -x resources_reserved=false
# hpvmstart -P vpar1
# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # Type OS Type State #VCPUs #Devs #Nets Memory
==================== ===== ==== ======= ========= ====== ===== ===== =======
vm1 9 VP HPUX On (OS) 2 1 1 2 GB
vpar1 11 SH HPUX On (OS) 1 1 1 2 GB
CPU entitlement
When a vPar is created, its CPU entitlement (-e) is automatically set to (forced) 100%. Converting
a VM to a vPar automatically adjusts its entitlement to 100%, while converting a vPar to a VM
does not change the entitlement (it remains 100% unless modified using the -e option).
13.5 Transformation between VM and vPar 221