2008-01-08 15:20:46 +00:00
=head1 NAME
2008-08-02 16:18:07 +00:00
2010-08-27 21:18:34 +00:00
B<mkvm> - Creates HMC- and IVM-managed partitions or other virtual machines.
2008-08-02 16:18:07 +00:00
2008-01-08 15:20:46 +00:00
=head1 SYNOPSIS
2008-08-02 16:18:07 +00:00
2009-04-06 18:52:35 +00:00
=head2 Common:
2008-01-08 15:20:46 +00:00
I<mkvm [-h| --help]>
2008-02-13 14:42:18 +00:00
I<mkvm [-v| --version]>
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
=head2 For PPC:
I<mkvm [-V| --verbose] noderange -i id -l singlenode>
I<mkvm [-V| --verbose] noderange -c destcec -p profile>
2010-01-04 05:34:48 +00:00
I<mkvm [-V| --verbose] noderange --full>
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
=head2 For KVM:
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
I<mkvm noderange -m|--master mastername -s|--size disksize -f|--force>
2008-01-08 15:20:46 +00:00
=head1 DESCRIPTION
2009-04-06 18:52:35 +00:00
=head2 For PPC:
The first form of mkvm command creates new partition(s) with the same profile/resources as the partition specified by I<singlenode>. The -i and I<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 I<profile> to the destination specified by I<destcec>. The source and destination CECs can be managed by different HMCs.
Please make sure the nodes in the I<noderange> is defined in the I<nodelist> table and the I<mgt> is set to 'hmc' in the I<nodehm> table before running this command.
2010-02-01 02:58:33 +00:00
Please note that the mkvm command currently only supports creating standard LPARs, not virtual LPARs working with VIOS server.
2009-04-06 18:52:35 +00:00
=head2 For KVM:
mkvm ....
2008-01-08 15:20:46 +00:00
=head1 OPTIONS
2009-04-06 18:52:35 +00:00
B<-h|--help> Display usage message.
B<-c> The cec (fsp) name for the destination.
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
B<-i> Starting numeric id of the newly created partitions.
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
B<-l> The partition name of the source.
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
B<-p> The file that contains the profiles for the source partitions.
2009-12-31 04:57:01 +00:00
B<--full> Request to create a new full system partition for each CEC.
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
B<-v|--version> Command Version.
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
B<-V|--verbose> Verbose output.
2008-01-08 15:20:46 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
2008-08-02 16:18:07 +00:00
1. To create a new partition lpar5 based on the profile/resources of lpar4, enter:
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
I<mkdef -t node -o lpar5 mgt=hmc groups=all>
then:
I<mkvm lpar5 -i 5 l lpar4>
2008-01-08 15:20:46 +00:00
Output is similar to:
lpar5: Success
2008-08-02 16:18:07 +00:00
2. To create new partitions lpar5-lpar8 based on the profile/resources of lpar4, enter:
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
I<mkdef -t node -o lpar5-lpar8 mgt=hmc groups=all>
then:
I<mkvm lpar5-lpar8 -i 5 lpar4>
2008-04-30 19:31:55 +00:00
Output is similar to:
lpar5: Success
lpar6: Success
lpar7: Success
lpar8: Success
2009-04-06 18:52:35 +00:00
3. To duplicate all the partitions associated with cec01 on cec02, first save the lpars from cec01 to a file:
I<lsvm lpar01-lpar04> > I</tmp/myprofile>
then create lpars on cec02:
2008-01-08 15:20:46 +00:00
2009-04-06 18:52:35 +00:00
I<mkvm lpar05-lpar08 -c cec02 -p /tmp/myprofile>
2008-01-08 15:20:46 +00:00
Output is similar to:
2009-04-06 18:52:35 +00:00
lpar5: Success
lpar6: Success
lpar7: Success
lpar8: Success
2008-01-08 15:20:46 +00:00
2009-12-31 04:57:01 +00:00
4. To duplicate all the partitions associated with cec01 on cec02, one is for cec01, the other is for cec02:
I<mkdef -t node -o lpar5,lpar6 mgt=hmc groups=all>
I<chtab node=lpar5 ppc.parent=cec01>
I<chtab node=lpar6 ppc.parent=cec02>
then create lpars on cec01 and cec02:
I<mkvm lpar5,lpar6 --full>
Output is similar to:
lpar5: Success
lpar6: Success
2008-01-08 15:20:46 +00:00
=head1 FILES
2008-08-02 16:18:07 +00:00
2008-01-08 15:20:46 +00:00
/opt/xcat/bin/mkvm
2008-08-02 16:18:07 +00:00
=head1 SEE ALSO
2008-01-08 15:20:46 +00:00
2008-08-02 16:18:07 +00:00
L<chvm(1)|chvm.1>, L<lsvm(1)|lsvm.1>, L<rmvm(1)|rmvm.1>
2008-01-08 15:20:46 +00:00
2008-02-13 14:42:18 +00:00
2008-04-30 19:31:55 +00:00