HP-UX vPars and Integrity VM V6.1.5 Administrator Guide (5900-2295, April 2013)
7.7 Removing virtual machines
To remove a virtual machine from the VSP, use the hpvmremove command. By default, you are
required to confirm this action. Table 19 describes the options to the hpvmremove command.
Table 19 Options to the hpvmremove Command
DescriptionOption
Specifies the name of the virtual machine. You must include
either the —P or —p option.
-P vm-name
Specifies the number of the virtual machine. To display the
virtual machine number, enter the hpvmstatus command.
-p vm_number
Forces the command to act regardless of errors.
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 command without requiring user input to
confirm.
-Q
For example, the following command removes the virtual machine named host1. The subsequent
hpvmstatus command shows that host1 is gone:
# hpvmremove -P host1
hpvmremove: Remove 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
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 host1 and all its configuration files, and restores any resources allocated
to that guest to the VSP's pool of available resources. (Any guest operating system and application
data on the VSP storage devices are not affected.)
To remove the guest without requiring user confirmation (for example, in a script), enter the following
command:
# hpvmremove -P host1 -Q
7.8 Troubleshooting virtual machine creation problems
If you encounter problems with creating virtual machines, report them through your support channel.
For information about collecting information to report the problem, see Chapter 13.
The following section describes a problem that might be encountered during virtual machine
creation.
7.8.1 Configuration error on starting the virtual machine
When you start the virtual machine, the following message is displayed:
Configuration error: Device does not show up in guest
If you encounter this type of problem:
7.7 Removing virtual machines 101