HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

the actual data and software associated with the guest. The clone_vm_name must not already
exist on the same VM Host.
The new virtual machine's configuration information can be modified from the original
configuration file by using command options. If no options are specified, all original parameters
are retained. This will cause resource conflicts if both the original and clone virtual machines are
booted together.
Resources are checked to determine whether the virtual machine could boot by itself on the
server. Any problems are reported as WARNINGS. These warnings will not prevent the new
virtual machine 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, see
Chapter 7 “Creating Virtual Storage Devices”.
Use the -b option to specify a storage device to be physically duplicated in the cloning process.
This feature allows the user to specify any number of storage devices and supports all of the
possible physical device types (disk, lv, and file).
The following example shows how to use the hpvmclone command to create a new Linux guest
named linux2 based on the existing guest named linux1. The boot disk is specified.
# hpvmclone -P linux1 -N linux2 -b disk:scsi::0,0,0:disk:
Because there is no guarantee that other virtual machines would be running at the same time
the new virtual machine would be running, 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 7.
3.7 Stopping Virtual Machines
To stop a running virtual machine, use the hpvmstop command. You must confirm this command.
Table 3-9 describes the options to the hpvmstop command:
Table 3-9 Options to the hpvmstop Command
DescriptionOption
Specifies the name of the virtual machine.
-P vm-name
Specifies the number of the virtual machine. To display the virtual machine number, enter
the hpvmstatus command.
-p vm_number
Specifies all the virtual machines that are running. You must also specify the -F option.-a
Performs a hard stop on the virtual machine, similar to a power failure.
-h
Performs a graceful shutdown on the virtual machine. This is the default.
-g
Forces the command to act without requiring confirmation.
-F
Performs the operation without requiring you to confirm the command.
-Q
Makes certain scripted operations less verbose (quiet mode).
-q
For example, the following command stops the virtual machine named host1. The hpvmstatus
command shows that the virtual machine is Off.
# hpvmstop -P host1
hpvmstop: Stop the virtual machine 'host1'? [n/y]: y
# hpvmstatus
62 Creating Virtual Machines