2008-01-08 15:20:46 +00:00
=head1 NAME
2008-08-02 16:18:07 +00:00
2011-12-09 18:21:13 +00:00
B<mkvm> - Creates HMC-, IVM-, and zVM-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:
2011-04-01 01:24:46 +00:00
B<mkvm> [B<-h>| B<--help>]
2008-01-08 15:20:46 +00:00
2011-04-01 01:24:46 +00:00
B<mkvm> [B<-v>| B<--version>]
2008-01-08 15:20:46 +00:00
2011-03-18 08:01:06 +00:00
=head2 For PPC (with HMC):
2009-04-06 18:52:35 +00:00
2011-04-01 01:24:46 +00:00
B<mkvm> [B<-V>| B<--verbose>] I<noderange> B<-i> I<id> B<-l> I<singlenode>
2009-04-06 18:52:35 +00:00
2011-04-01 01:24:46 +00:00
B<mkvm> [B<-V>| B<--verbose>] I<noderange> B<-c> I<destcec> B<-p> I<profile>
2011-03-01 07:38:16 +00:00
2011-04-01 01:24:46 +00:00
B<mkvm> [B<-V>| B<--verbose>] I<noderange> B<--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
2011-04-01 01:24:46 +00:00
B<mkvm> I<noderange> B<-m>|B<--master> I<mastername> B<-s>|B<--size> I<disksize> B<-f>|B<--force>
2008-01-08 15:20:46 +00:00
2011-12-09 18:21:13 +00:00
=head2 For zVM:
2011-12-10 20:46:27 +00:00
B<mkvm> I<noderange> I<directory_entry_file_path>
2011-12-09 18:21:13 +00:00
2011-12-10 20:46:27 +00:00
B<mkvm> I<noderange> I<source_virtual_machine> B<pool=> I<disk_pool> B<pw=> I<multi_password>
2011-12-09 18:21:13 +00:00
2008-01-08 15:20:46 +00:00
=head1 DESCRIPTION
2009-04-06 18:52:35 +00:00
=head2 For PPC:
2011-03-18 08:01:06 +00:00
For PPC (with HMC) specific:
2011-04-01 01:24:46 +00:00
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 I<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.
2009-04-06 18:52:35 +00:00
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
2011-12-09 18:21:13 +00:00
=head2 For zVM:
The first form of mkvm creates a new virtual machine based on a directory entry.
The second form of this creates a new virtual machine with the same profile/resources as the specified node (cloning).
2008-01-08 15:20:46 +00:00
=head1 OPTIONS
2011-03-28 02:26:47 +00:00
=over 10
2008-01-08 15:20:46 +00:00
2011-04-01 01:24:46 +00:00
=item B<-h|--help>
2009-04-06 18:52:35 +00:00
2011-04-01 01:24:46 +00:00
Display usage message.
2008-01-08 15:20:46 +00:00
2011-04-01 01:24:46 +00:00
=item B<-c>
2011-03-18 08:01:06 +00:00
2011-04-01 01:24:46 +00:00
The cec (fsp) name for the destination.
2011-03-18 08:01:06 +00:00
2011-04-01 01:24:46 +00:00
=item B<-i>
2011-04-19 07:14:16 +00:00
Starting numeric id of the newly created partitions.
2011-03-25 06:57:10 +00:00
2011-04-01 01:24:46 +00:00
=item B<-l>
The partition name of the source.
=item B<-p>
The file that contains the profiles for the source partitions.
=item B<--full>
Request to create a new full system partition for each CEC.
2011-03-25 06:57:10 +00:00
2011-04-01 01:24:46 +00:00
=item B<-v|--version>
2011-03-25 06:57:10 +00:00
2011-04-01 01:24:46 +00:00
Command Version.
2011-03-25 06:57:10 +00:00
2011-04-01 01:24:46 +00:00
=item B<-V|--verbose>
2008-01-08 15:20:46 +00:00
2011-04-01 01:24:46 +00:00
Verbose output.
2008-01-08 15:20:46 +00:00
2011-03-28 02:26:47 +00:00
=back
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
2011-04-01 01:24:46 +00:00
mkdef -t node -o lpar5 mgt=hmc groups=all
2009-04-06 18:52:35 +00:00
then:
2011-04-01 01:24:46 +00:00
mkvm lpar5 -i 5 -l lpar4
2008-01-08 15:20:46 +00:00
Output is similar to:
2011-04-01 01:24:46 +00:00
lpar5: Success
2008-01-08 15:20:46 +00:00
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
2011-04-01 01:24:46 +00:00
mkdef -t node -o lpar5-lpar8 mgt=hmc groups=all
2009-04-06 18:52:35 +00:00
then:
2011-04-01 01:24:46 +00:00
mkvm lpar5-lpar8 -i 5 -l lpar4
2008-04-30 19:31:55 +00:00
Output is similar to:
2011-04-01 01:24:46 +00:00
lpar5: Success
lpar6: Success
lpar7: Success
lpar8: Success
2008-04-30 19:31:55 +00:00
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:
2011-04-01 01:24:46 +00:00
lsvm lpar01-lpar04 > /tmp/myprofile
2009-04-06 18:52:35 +00:00
then create lpars on cec02:
2008-01-08 15:20:46 +00:00
2011-04-01 01:24:46 +00:00
mkvm lpar05-lpar08 -c cec02 -p /tmp/myprofile
2008-01-08 15:20:46 +00:00
Output is similar to:
2011-04-01 01:24:46 +00:00
lpar5: Success
lpar6: Success
lpar7: Success
lpar8: Success
2009-04-06 18:52:35 +00:00
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:
2011-04-01 01:24:46 +00:00
mkdef -t node -o lpar5,lpar6 mgt=hmc groups=all
chtab node=lpar5 ppc.parent=cec01
chtab node=lpar6 ppc.parent=cec02
2009-12-31 04:57:01 +00:00
then create lpars on cec01 and cec02:
2011-04-01 01:24:46 +00:00
mkvm lpar5,lpar6 --full
2009-12-31 04:57:01 +00:00
Output is similar to:
2011-04-01 01:24:46 +00:00
lpar5: Success
lpar6: Success
2009-12-31 04:57:01 +00:00
2011-12-09 18:21:13 +00:00
5. To create a new virtual machine (gpok3) based on a directory entry:
mkvm gpok3 /tmp/dirEntry.txt
Output is similar to:
gpok3: Creating user directory entry for LNX3... Done
6. To clone a new virtual machine with the same profile/resources as the specified node:
mkvm gpok4 gpok3 pool=POOL1
Output is similar to:
gpok4: Cloning gpok3
gpok4: Linking source disk (0100) as (1100)
gpok4: Linking source disk (0101) as (1101)
gpok4: Stopping LNX3... Done
gpok4: Creating user directory entry
gpok4: Granting VSwitch (VSW1) access for gpok3
gpok4: Granting VSwitch (VSW2) access for gpok3
gpok4: Adding minidisk (0100)
gpok4: Adding minidisk (0101)
gpok4: Disks added (2). Disks in user entry (2)
gpok4: Linking target disk (0100) as (2100)
gpok4: Copying source disk (1100) to target disk (2100) using FLASHCOPY
gpok4: Mounting /dev/dasdg1 to /mnt/LNX3
gpok4: Setting network configuration
gpok4: Linking target disk (0101) as (2101)
gpok4: Copying source disk (1101) to target disk (2101) using FLASHCOPY
gpok4: Powering on
gpok4: Detatching source disk (0101) at (1101)
gpok4: Detatching source disk (0100) at (1100)
gpok4: Starting LNX3... Done
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