NAME

mkvm - Creates HMC- and IVM-managed partitions or other virtual machines.


SYNOPSIS

Common:

mkvm [-h| --help]

mkvm [-v| --version]

For PPC (with HMC):

mkvm [-V| --verbose] noderange -i id -l singlenode

mkvm [-V| --verbose] noderange -c destcec -p profile

mkvm [-V| --verbose] noderange --full

For KVM:

mkvm noderange -m|--master mastername -s|--size disksize -f|--force


DESCRIPTION

For PPC:

For PPC (with HMC) specific:

The first form of mkvm command creates new partition(s) with the same profile/resources as the partition specified by singlenode. The -i and noderange specify the starting numeric partition number and the noderange for the newly created partitions, respectively. The LHEA port numbers and the HCA index numbers will be automatically increased if they are defined in the source partition.

The second form of this command duplicates all the partitions from the source specified by profile to the destination specified by destcec. The source and destination CECs can be managed by different HMCs.

Please make sure the nodes in the noderange is defined in the nodelist table and the mgt is set to 'hmc' in the nodehm table before running this command.

Please note that the mkvm command currently only supports creating standard LPARs, not virtual LPARs working with VIOS server.

For KVM:

mkvm ....


OPTIONS

-h|--help

Display usage message.

-c

The cec (fsp) name for the destination.

-i

Starting numeric id of the newly created partitions.

-l

The partition name of the source.

-p

The file that contains the profiles for the source partitions.

--full

Request to create a new full system partition for each CEC.

-v|--version

Command Version.

-V|--verbose

Verbose output.


RETURN VALUE

0 The command completed successfully.

1 An error has occurred.


EXAMPLES

1. To create a new partition lpar5 based on the profile/resources of lpar4, enter:

 mkdef -t node -o lpar5 mgt=hmc groups=all

then:

 mkvm lpar5 -i 5 -l lpar4

Output is similar to:

 lpar5: Success

2. To create new partitions lpar5-lpar8 based on the profile/resources of lpar4, enter:

 mkdef -t node -o lpar5-lpar8 mgt=hmc groups=all

then:

 mkvm lpar5-lpar8 -i 5 -l lpar4

Output is similar to:

 lpar5: Success
 lpar6: Success
 lpar7: Success
 lpar8: Success

3. To duplicate all the partitions associated with cec01 on cec02, first save the lpars from cec01 to a file:

 lsvm lpar01-lpar04 > /tmp/myprofile

then create lpars on cec02:

 mkvm lpar05-lpar08 -c cec02 -p /tmp/myprofile

Output is similar to:

 lpar5: Success
 lpar6: Success
 lpar7: Success
 lpar8: Success

4. To duplicate all the partitions associated with cec01 on cec02, one is for cec01, the other is for cec02:

 mkdef -t node -o lpar5,lpar6 mgt=hmc groups=all
 chtab node=lpar5 ppc.parent=cec01
 chtab node=lpar6 ppc.parent=cec02

then create lpars on cec01 and cec02:

 mkvm lpar5,lpar6 --full

Output is similar to:

 lpar5: Success
 lpar6: Success


FILES

/opt/xcat/bin/mkvm


SEE ALSO

chvm(1), lsvm(1), rmvm(1)