=head1 NAME B - Generates a stateless image to be used for a diskless install. =head1 SYNOPSIS B [B<-i> I] [B<-n> I] B<-o> I B<-p> I [B<-l> I] [B<-r> I] [B<-k> I] [B<--permission> I] B [B<-i> I] [B<-n> I] [B<-o> I] [B<-l> I] [B<-r> I] [B<-k> I] imagename B [B<-h> | B<--help> | B<-v> | B<--version>] =head1 DESCRIPTION Generates a stateless image that can be used to boot xCAT nodes in a diskless mode. If I is not specified, the default packages included (and excluded) in the image are specified by /opt/xcat/share/xcat/netboot//...pkglist and /opt/xcat/share/xcat/netboot//.exlist. Additional packages that are not from the os distro can be specified in a ..otherpkgs.pkglist file. Customized package list files can be specified under /install/custom/netboot/ directory. The generated image will be put in /install/netboot///. If I is specified, the package list files are specified in the I table and I table. If B runs on the Management node, both the I table and I table will be updated following the B options. And, if there is no I called --netboot- or --statelite-, the B command will create them into I and I tables. The B command must be run on a system that is the same architecture as the nodes it will be used on. If the management node is not the same architecture, copy the contents of /opt/xcat/share/xcat/netboot/ to a system that is the proper architecture, and mount /install from the management node to that system. The B command will run geninitrd automatically. (You can run geninitrd yourself at a later time, if you want to rebuild the initrd.) After your image is created, you can chroot to the image, install any additional software you would like, or make modifications to files, and then run B to prepare the image for deployment. The B and B commands will generate two initial ramdisks for B and B, one is B, the other one is B. =head1 Parameters I specifies the name of a os image definition to be used. The specification for the image is storted in the I table and I table. =head1 OPTIONS =over 12 =item B<-o> I The operating system for the image: fedora8, rhel5, sles10, etc. The OS packages must be in /install// (use L). =item B<-p> I The profile (e.g. compute, service) to use to create the image. This determines what package lists are used from /opt/xcat/share/xcat/netboot/ to create the image with. When deploying nodes with this image, the nodes' nodetype.profile attribute must be set to this same value. =item B<-i> I The network interface the diskless node will boot over (e.g. eth0). =item B<--permission> I The mount permission of B directory for B mode, which is only used for B mode, and the default permission is 755. =item B<-n> I This argument is now optional, and allows you to specify the driver modules needed for the network interface(s) on your stateless nodes. If you do not specify this option, the default is to include all recent IBM xSeries network drivers. If specified, I should be a comma separated list of network drivers to be used by the stateless nodes (Ie.: -n tg3,e1000). Note that the drivers will be loaded in the order that you list them, which may prove important in some cases. =item B<-l> I The maximum size allowed for the root file system in the image. Specify in bytes, or can append k, m, or g. =item B<-r> I Other network interfaces (e.g. eth1) in the image that should be configured via DHCP. =item B<-k> I Use this flag if you want to use a specific version of the kernel in the image. Defaults to the first kernel found in the install image. =item B<-v|--version> Display version. =item B<-h|--help> Display usage message. =back =head1 RETURN VALUE 0 The command completed successfully. 1 An error has occurred. =head1 EXAMPLES =over 3 =item 1. For example, to generate a fedora8 image for a compute node architecture x86_64 and place it in the /install/netboot/fedora8/x86_64/compute/rootimg directory: cd /opt/xcat/share/xcat/netboot/fedora/ genimage -i eth0 -o fedora8 -p compute This would use the profile information from the /opt/xcat/share/xcat/netboot/fedora/compute* files. =back =head1 FILES /opt/xcat/share/xcat/netboot//genimage =head1 SEE ALSO L, L