=head1 Name

B<rinstall> - Begin OS provision on a noderange

=head1 B<Synopsis>

B<rinstall> I<noderange> [B<boot> | B<shell> | B<runcmd=>I<command>] [B<-c>|B<--console>] [B<-V>|B<--verbose>]

B<rinstall> I<noderange> B<osimage>[=I<imagename>] [B<--noupdateinitrd>][B<--ignorekernelchk>] [B<-c>|B<--console>] [B<-u>|B<--uefimode>] [B<-V>|B<--verbose>]

B<rinstall> I<noderange> B<runimage=>I<task>

B<rinstall> [B<-h>|B<--help>|B<-v>|B<--version>]

=head1 B<Description>

B<rinstall> is a convenience command to begin OS provision on a noderange.

If B<osimage>=I<imagename> is specified or B<osimage> is specified and nodetype.provmethod=B<osimage> is set, provision the noderange with the osimage specified/configured.

If B<-c> is specified, it will then run B<rcons> on the node. This is allowed only if one node is in the noderange. If consoles are needed on multiple nodes, see L<winstall(8)|winstall.8>.

=head1 B<Options>

=over 7

=item B<boot>

Instruct network boot loader to be skipped, generally meaning boot to hard disk

=item B<osimage>[=I<imagename>]

Prepare server for installing a node using the specified OS image. The OS image is defined in the I<osimage> table and I<linuximage> table. If the I<imagename> is omitted, the OS image name will be obtained from I<nodetype.provmethod> for the node.  

=item B<--noupdateinitrd>
Skip the rebuilding of initrd when the 'netdrivers', 'driverupdatesrc' or 'osupdatename' were set for injecting new drivers to initrd. But, the B<geninitrd> command should be run to rebuild the initrd for new drivers injecting. This is used to improve the performance of B<rinstall> command.

=item B<--ignorekernelchk>

Skip the kernel version checking when injecting drivers from osimage.driverupdatesrc. That means all drivers from osimage.driverupdatesrc will be injected to initrd for the specific target kernel.

=item B<runimage=>I<task>

If you would like to run a task after deployment, you can define that task with this attribute.    

=item B<runcmd=>I<command>

This instructs the node to boot to the xCAT genesis environment and specified command to be executed.

=item B<shell>

This instructs the node to boot to the xCAT genesis environment, and present a shell prompt on console.
The node will also be able to be sshed into and have utilities such as wget, tftp, scp, nfs, and cifs.  It will have storage drivers available for many common systems.

=item B<-h>|B<--help>

Display usage message. 

=item B<-v>|B<--version>

Display version. 

=item B<-u>|B<--uefimode>

For BMC-based servers, to specify the next boot mode to be "UEFI Mode". 

=item B<-V>|B<--verbose>

Verbose output. 

=item B<-c>|B<--console>

Requests that B<rinstall> runs B<rcons> once the provision starts.  This will only work if there is only one node in the noderange. See L<winstall(8)|winstall.8> for starting consoles on multiple nodes.

=back


=head1 B<Examples>

=over 2

=item 1.
Provision nodes 1 through 20, using their current configuration.

 rinstall node1-node20

=item 2.
Provision nodes 1 through 20 with the osimage rhels6.4-ppc64-netboot-compute.

 rinstall node1-node20 osimage=rhels6.4-ppc64-netboot-compute

=item 3.
Provision node1 and start a console to monitor the process.

 rinstall node1 -c

=item 4.
Boot node1 into xCAT genesis environment and execute bmcsetup script. This causes the IP, netmask, gateway, username, and password to be programmed according to the configuration in node object definition.

 rinstall node1 runcmd=bmcsetup

=back 

=head1 B<See> B<Also>

L<noderange(3)|noderange.3>, L<winstall(8)|winstall.8>, L<rcons(1)|rcons.1>
