XCAT installation Kit

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.