XCAT installation Kit
Generate the Kit file structure
First, use the buildkit tool to generate a Kit. For example, assume that our Kit is named helloworld.
buildkit create helloworld
helloworld/├── buildkit.conf├── docs│ └── index.html├── other_files│ └── sample│ ├── exclude.lst│ └── kitdeployparams.lst├── plugins│ └── sample│ ├── imageprofile.pm│ └── nodemgmt.pm├── scripts│ └── sample│ ├── genimage_post.sh│ ├── postboot.sh│ ├── post.sh│ ├── postun.sh│ ├── postup.sh│ ├── pre.sh│ ├── preun.sh│ └── preup.sh└── source_packages └── sample ├── pkg1 │ └── pkg1-1-1.noarch.rpm ├── pkg2 │ ├── pkg2 │ │ ├── cfg │ │ │ └── pkg2.cfg │ │ └── files │ │ ├── pkg2.file1 │ │ └── pkg2.file2 │ └── pkg2.spec ├── pkg3 │ ├── pkg3.spec │ └── pkg3.tar.gz └── pkg4 └── pkg4-1-1.src.rpm
Modify configuration file
Edit the buildkit. conf file. This file is easy to understand, and the comments in it are also detailed. It mainly defines kit, kitrepo, kitcomponent and kitpackage.
compat_osbasenames=centos
Package
Use the following commands to generate a helloworld-1.0-1.tar.bz2 file in the helloworlddirectory.
cd ~/helloworldbuildkit buildrepo allbuildkit buildtar
Add Kit
First, you can use lskit in the xCAT environment to view the added Kit and KitComponent, such
lskitlskit helloworld-1.0-1lsdef -t kit -l helloworld-1.0-1lskitcomp
addkit helloworld-1.0-1.tar.bz2
rmkit helloworld-1.0-1
lsdef -t osimage
chkkitcomp -i centos6.6-x86_64-install-compute helloworld_compute-1.0-1-rh-6.6-x86_64
addkitcomp -a -i centos6.6-x86_64-install-compute helloworld_compute-1.0-1-rh-6.6-x86_64
rmkitcomp -i centos6.6-x86_64-install-compute helloworld_compute-1.0-1-rh-6.6-x86_64
Upgrade node
Chdef <nodelist> provmethod = <osimage> updatenode <nodelist> such as chdef <nodelist> provmethod = centos6.6-x86_64-install-computeupdatenode <nodelist>