To stop a running virtual machine, use the hpvmstop command.
You must confirm this command. Table 3-5 describes
the options to the hpvmstop command:
Table 3-5 Options to the hpvmstop Command
| Option | Description |
|---|
| -P vm-name | Specifies the name of the virtual machine. You must include either
the -P or -p option. |
| -p vm_number | Specifies the number of the virtual machine. To display the virtual
machine number, enter the hpvmstatus command. |
| -h | Performs a hard stop on the virtual machine, similar to a power failure. |
| -g | Performs a graceful shutdown on the virtual machine. This is the default. |
| -F | Forces the command to act without requiring confirmation. |
| -q | Quiet mode. Used for scripting purposes. |
For example, the following command stops the virtual machine named compass1.
The hpvmstatus command shows that the virtual machine is Off.
# hpvmstop -P compass1
hpvmstop: Stop the virtual machine 'compass1'? [n]: y
# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
config1 1 HPUX Off 1 5 1 512 MB 0
config2 2 HPUX Off 1 7 1 1 GB 0
winguest1 5 WINDOWS On (OS) 1 5 1 1 GB 0
winguest2 9 WINDOWS Off 1 3 1 2 GB 0
compass1 12 UNKNOWN Off 1 0 0 2 GB 0 |
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.