HP-UX vPars and Integrity VM V6.3 Administrator Guide

host2 3 SH UNKNOWN Off 1 1 1 1 GB
host3 4 SH HPUX Off 1 1 1 2 GB
You can create a clone of host3 by entering the following command. The new VM is named
clone1:
# hpvmclone -P host3 -N clone1
To see the results of the command, enter the hpvmstatus command again:
# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # Type OS Type State #VCPUs #Devs #Nets Memory
==================== ===== ====== ======== ====== ===== ===== ======= ========
host1 2 SH HPUX On (OS) 1 1 1 2 GB
host2 3 SH UNKNOWN Off 1 1 1 1 GB
host3 4 SH HPUX Off 1 1 1 2 GB
clone1 5 SH HPUX Off 1 1 1 2 GB
The hpvmclone command creates a copy of an existing VM and its configuration information.
This command copies the configuration files of the existing guest. It does not copy the actual data
and software associated with the guest. Use the -b option to specify a storage device to be
physically duplicated in the cloning process. The clone_vm_name must not already exist on the
same VSP.
The new configuration information of the VM can be modified from the original configuration file
by using command options. If you do not specify any options, all the original parameters are
retained. This causes resource conflicts if both the original and clone VMs are booted together.
Resources are checked to determine whether the VM could boot by itself on the server. Problems
are reported as WARNINGS. These warnings do not prevent the new VM from being created.
These conditions will, however, prevent the guest from starting.
Backing storage devices (for example, directories and files) cannot be shared, and therefore they
cannot be used by two running guests at the same time. In this case, you must either enter a different
backing store, or run only one of the guests at a time. For more information about storage devices,
see Chapter 6 (page 63).
Use the -b option to specify a storage device to be physically duplicated in the cloning process.
This feature allows you to specify any number of storage devices, and supports all the possible
physical device types (disk, lv, and file), with the exception of NPIV HBAs.
Because there is no guarantee that other VMs would be running at the same time the new VM, use
the following command to check the device for dependents:
# hpvmdevmgmt -l entry_name
For more information about the hpvmdevmgmt command and the guest device management
database, see Chapter 6 (page 63).
9.6 Stopping VMs
NOTE: To stop a guest, HP recommends that you perform an operating system shutdown from
a privileged account on the guest using native operating system commands. If the guest does not
respond, use the hpvmstop -g command on the VSP. Do not stop a guest by killing the hpvmapp
process.
To stop a running VM, use the hpvmstop command. You must confirm this command.
Table 24 (page 149) lists the options that can be used with the hpvmstop command:
Table 24 Options to the hpvmstop command
DescriptionOption
Specifies the name of the VM.-P vm-name
Specifies the number of the VM. To display the VM number, enter the hpvmstatus command.-p vm_number
9.6 Stopping VMs 149