HP Integrity Virtual Machines Installation, Configuration, and Administration Version A.03.50

To specify the serial number of the new virtual machine,
enter the following: -x serial_number={new|same}
RETURN VALUES
The hpvmclone command exits with one of the following values:
0: Successful completion.
1: One or more error conditions
occurred.
DIAGNOSTICS
hpvmclone displays error messages on stderr for any of the following conditions:
An invalid option is specified.
An invalid value is specified for an option.
A value was omitted for an argument that requires one, or a value was supplied for an
argument that does not take one.
One or more options other than -a, -m, -d, -g, or -u have been specified more than once.
clone_vm_name already exists.
vm_name or vm_number does not exist, cannot be accessed, is not a virtual machine, or is
corrupt.
The hpvmclone command and Integrity VM are at different revision levels.
The same resource was allocated more than once.
A resource allocated to another virtual machine was specified, and the force flag (-F) was
not used.
EXAMPLES
Clone the virtual machine named compass2, to create a new virtual machine named compass5.
# hpvmclone -P compass2 -N compass5
Following are sample warning messages returned when hpvmclone is executed with various
configuration problems on the guest compass5:
HPVM guest compass5 configuration problems:
Warning 1: Guest needs more vcpus than server supports.
Warning 2: Insufficient free memory for guest.
Warning 3: Insufficient swap resource for guest.
Warning 4: Insufficient cpu resource for guest.
Warning 5 on item /dev/rdsk/c2t1d0: Device file '/dev/rdsk/c2t1d0' in use by another guest.
Warning 6 on item /dev/vg00/rswap: Device file '/dev/vg00/rswap' in use by server.
Warning 7 on item /dev/rdsk/c1t1d3 backing device does not exist.
Warning 8 on item /dev/rdsk/c3t1d0: Device file '/dev/rdsk/c3t1d0' in use by another guest.
Warning 9 on item hostnet: MAC address in use for switch hostnet.
Warning 10 on item offnet: Vswitch offnet is not active.
Warning 11 on item badnet: 'badnet' backing device does not exist.
These problems will prevent HPVM guest compass5 from booting.
The following example shows how to use the hpvmclone command to create a guest named
vmclone1 that uses the same ports as the existing guest (vm1). The hpvmnet command shows
that two guests are sharing ports 1 and 2 on the virtual switch vmlan4. Only the active virtual
machine (vm1) can use the port.
# hpvmclone -P vm1 -N vmclone1 -S
# hpvmnet -S vmlan4
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
vmlan4 2 Up Shared lan4 0x00127942fce3 192.1.2.205
[Port Configuration Details]
Port Port Port Untagged Number of Active VM
Number state Adaptor VLANID Reserved VMs
======= ============ ======== ============ ============
190