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

# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # Type OS Type State #VCPUs #Devs #Nets Memory
==================== ===== ======= ========= ====== ===== ===== ===== =======
config1 1 SH HPUX Off 1 5 1 512 MB
config2 2 SH HPUX Off 1 7 1 1 GB
guest1 5 SH HPUX On (OS) 1 5 1 1 GB
host1 13 SH UNKNOWN On (EFI) 1 0 0 2 GB
For more information about using the hpvmstatus command, see Chapter 13 (page 217).
NOTE: When configuring or starting Integrity VM guests, the following warning message might
be displayed if storage associated with the guest appears to be performing very poorly.
hpvmcreate: WARNING (host): Device /dev/rdisk/c6t9d0 took 32 seconds to open.
9.4 Changing VM configurations
You can create a VM with characteristics that the VSP cannot supply at the time of creation. This
allows you to create VMs to run, after system configuration changes. For example, the following
command creates the VM host1 with 3 vCPUs and 4 GB of allocated memory:
# hpvmcreate -P host1 -c 3 -r 4G
HPVM guest host1 configuration problems:
Warning 1: Guest's vcpus exceeds server's physical cpus.
Warning 2: Insufficient cpu resource for guest.
These problems may prevent HPVM guest host1 from starting.
hpvmcreate: The creation process is continuing.
Because the VSP is currently not configured to support the new VM, warning messages indicate
the specific characteristics that are inadequate.
When you start a VM, the VSP determines whether the current system configuration can support
the characteristics of the VM. The ability of the system to run the VM can be affected by the other
VMs that are currently running, because the VMs share the physical processors and memory. Any
allocated vswitches must be started, and storage devices must be made available to the VM. If the
VM cannot be started, the following type of message is generated:
# hpvmstart -P host1
HPVM guest host1 configuration problems:
Warning 1: Insufficient free memory for guest.
Warning 2: Insufficient cpu resource for guest.
These problems may prevent HPVM guest host1 from booting.
hpvmstart: Unable to continue.
You can either change the system configuration, or modify the VM. To modify the characteristics
of a VM, use the hpvmmodify command. When you use the hpvmmodify command to modify
a guest, the entire guest configuration is re-evaluated. Any problems that might prevent the guest
from starting are reported. For example, if a guest has a reference to a host device that no longer
exists, and you enter an hpvmmodify command that modifies the guest but does not fix the bad
reference, a warning message is displayed. Table 22 (page 143) lists the options that can be used
with the hpvmmodify command.
For example, to modify the characteristics of the problematic VM host1 to remove vCPUs and
memory, enter the following command:
# hpvmmodify -P host1 -c 1 -r 2G
This command changes the following characteristics of the VM named host1:
The -c 1 option specifies one vCPU.
The -r 2G option specifies two GB of memory.
142 Administering VMs