HP vPars and Integrity Virtual Machines V6.1 Administrator Guide
Table 18 Options to the hpvmstop Command (continued)
DescriptionOption
Performs a graceful shutdown on the virtual machine.-g
Forces the command to act without requiring confirmation.
NOTE: The -F option is deprecated in Integrity VM commands; this option should be used
only at the direction of 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 virtual machine named host1. The hpvmstatus
command shows that the virtual machine is Off.
# hpvmstop -P host1
hpvmstop: Stop the virtual machine 'host1'? [n/y]: y
# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory
==================== ===== ======= ========= ====== ===== ===== =======
config1 1 HPUX Off 1 5 1 512 MB
config2 2 HPUX Off 1 7 1 1 GB
guest1 5 HPUX On (OS) 1 5 1 1 GB
host1 12 UNKNOWN Off 1 0 0 2 GB
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.
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 virtual machines 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 its timeout allotted for the 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 receiving a SIGKILL. 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 virtual machine to shut down. However,
after you install the guest operating system, you should use the standard operating system commands
and procedures on the guest to shut it down.
NOTE: To stop a guest, HP recommends that you perform an operating system shutdown from
a privileged account on the guest using their native operating system commands. If the guest is
not responding, use the hpvmstop -g command on the VSP. Do not stop a guest by killing the
hpvmapp process.
98 Creating virtual machines