To remove a virtual machine from the VM Host, use the hpvmremove command.
By default, you are required to confirm this action. Table 3-7 describes the options to the hpvmremove command.
Table 3-7 Options to the hpvmremove 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. |
| -F | Forces the command to act regardless of errors. |
| -Q | Performs the command without requiring user input to confirm. |
For example, the following command removes the virtual machine named compass1.
The subsequent hpvmstatus command shows that compass1 is
gone:
# hpvmremove -P compass1
hpvmremove: Remove the virtual machine 'compass1'? [n/y]: 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 |
The default action of this command (if you press Enter)
is to not perform the command action. To perform the action, you must enter y.
This command removes compass1 and all its configuration
files, and restores any resources allocated to that guest to the VM Host's
pool of available resources. (Any guest operating system and application data
on the VM Host storage devices are not affected.)
To remove the guest without requiring user confirmation (for example,
in a script), enter the following command:
# hpvmremove -P compass1 -Q |