HP Integrity Virtual Machines 4.3: Installation, Configuration, Administration
RETURN VALUES
The hpvmclone command exits with one of the following values:
0: Successful completion.
1: One or more error conditions
occurred.
DIAGNOSTICS
The hpvmclone command 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.
• The clone_vm_name attribute already exists.
• The vm_name or vm_number attribute 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 host2, to create a new virtual machine named host5.
# hpvmclone -P host2 -N host5
Following are sample warning messages returned when hpvmclone is executed with various
configuration problems on the guest host5:
HPVM guest host5 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/rdisk/disk0: Device file '/dev/rdsk/disk0' 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/rdisk/disk3 backing device does not exist.
Warning 8 on item /dev/rdisk/disk4: Device file '/dev/rdisk/disk4' 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 host5 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
======= ============ ======== ============ ============
1 Active lan none 2 vm1
2 Active lan 100 2 vm1
246