HP Integrity Virtual Machines Installation, Configuration, and Administration Version A.03.50

9.6.1.3 Modifying a Virtual Machine's Memory Size on the VM Host
Once dynamic memory is configured, a virtual machine's memory size can be changed to any
value between the minimum size (ram_dyn_min) and the maximum size (ram_dyn_max) in
increments of the chunk size (64 MB). Use the following -x option to the hpvmmodify command
to change the memory size:
# hpvmmodify -P compass1 -x ram_target = new memory size
9.6.2 Managing Dynamic Memory from the Guest
Dynamic memory management from the guest is disabled by default and must be enabled from
the VM Host. If the feature is not enabled, dynamic memory information can be displayed , but
the memory size cannot be changed.
Use the hpvmcreate, hpvmmodify, or hpvmclone command and include the -x
dynamic_memory_control option. Specify 1 as the argument to the option. For example, on
the VM Host system, enter the following command to enable dynamic memory control on the
guest named compass1:
# hpvmmodify -P compass1 -x dynamic_memory_control=1
9.6.2.1 Viewing Dynamic Memory Information from the Guest
Use the hpvmmgmt command on the HP-UX guest to view dynamic memory information. This
command is installed when you install the guest management software, as described in Section 4.2
(page 54).
Table 9-5 describes the options to the hpvmmgmt command.
Table 9-5 Options to the hpvmmgmt Command
Specifies the type of data to list more information about.
For type, enter ram.
-l type
Allows you to continually watch and check the dynamic
ram values. For the interval, specify the number of seconds
between fetches of live data.
-l type -t interval
Allows the hpvmmgmt command to continuously refetch
the requested type of data using the value specified for
the interval parameter.
-t interval
Displays the version number of the hpvmmgmt command.-v
Displays detailed information (verbose mode) about the
virtual machines.
-V
Displays verbose attribute and resource information in a
machine-readable format.
-M
Displays verbose attribute and resource information in
the XML format.
-X
Specifies the guest RAM target, where:
0 indicates the guest dynamic memory will be reduced
to a comfortable minimum value.
start indicates the guest dynamic memory will be
set back to the boot time value.
amount is a specific target memory size for the guest.
-x ram_target={0 | start | amount}
For example, on the guest, use the hpvmmgmt command to list the dynamic memory information.
Enter the following command:
# hpvmmgmt -l ram
[Dynamic Memory Information]
=======================================
134 Managing Guests