To remove a virtual machine from the VM Host, use the hpvmremove command.
You must confirm this action. Table 3-6 describes
the options to the hpvmremove command.
Table 3-6 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 without requiring confirmation. |
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
# 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 |
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.)