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

Table 24 Options to the hpvmstop command (continued)
DescriptionOption
Specifies all the VMs that are running. You must also specify the -F option.-a
Performs a hard stop on the VM, similar to a power failure. This is the default.-h
Performs a graceful shutdown on the VM.-g
Forces the command to act without requiring confirmation.
NOTE: The -F option is deprecated in Integrity VM commands. This option must be used
only if instructed by HP Support.
-F
Performs the operation without requiring you to confirm the command.-Q
Makes certain scripted operations less verbose (quiet mode).-q
For example, the following command stops the VM named host1.
# hpvmstop -P host1
hpvmstop: Stop the virtual machine 'host1'? [n/y]: y
The default action of this command (if you press Enter) is to not perform the command operation.
To continue the operation, you must enter y.
The hpvmstatus command shows that the VM is Off.
# 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 12 SH UNKNOWN Off 1 0 0 2 GB
To enter the command without requiring a confirmation (for example, in a script), enter the following
command:
# hpvmstop -P host1 -Q
#
To quickly shut down all three VMs that are running on the VSP, enter the following command:
# hpvmstop -a -F
Stopping virtual machine host1
Stopping virtual machine host2
Stopping virtual machine host3
NOTE: When stopping a guest that is running a heavy I/O load, the hpvmstop command can
exhaust the timeout allotted for stop and exit. When this happens, the SIGKILL has been sent to
the running hpvmapp process and will be received by that process when pending I/Os complete.
The SIGKILL then terminates the guest.
This is expected behavior for an I/O intensive process. This behavior is not specific to Integrity
VM, but is how the signal-delivery mechanism works in the HP-UX operating system.
You can also use the hpvmconsole command to force the VM to shut down. However, after you
install the guest operating system, you must use the standard operating system commands and
procedures on the guest to shut it down.
9.7 Removing VMs
To remove a VM from the VSP, use the hpvmremove command. By default, you are required to
confirm this action. Table 25 (page 151) lists the options that can be used with the hpvmremove
command.
150 Administering VMs