I want to generate a custom image of CentOS containing desired tools and packages (such as QT framework, PostgreSQL and several other packages) for deploying it to the nodes of MAAS.

Please suggest any procedure to build the custom CentOS image with desired packages installed within it.

share|improve this question

closed as off-topic by Pilot6, muru, Eric Carvalho, karel, Paranoid Panda Dec 9 '15 at 10:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Pilot6, muru, Eric Carvalho, karel, Paranoid Panda
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Questions on CentOS should be asked on Unix & Linux. – muru Nov 16 '15 at 12:23
    
Actually, the question is related to MAAS, which supports CentOS images also. – Nitin Nov 16 '15 at 12:30
    
Related, but the images are for CentOS. – muru Nov 16 '15 at 12:31
    
MAAS supports creation of custom images for several OS including CentOS – Nitin Nov 16 '15 at 12:36
    
So we should support "several OS including CentOS"? – muru Nov 16 '15 at 12:38
up vote 0 down vote accepted

Roughly you're looking for the maas-image-builder. You can modify the kickstart config file which allows you to specify custom packages.

Note, normally things like PostgreSQL would be something you'd use a config management system afterwards to install. E.g. your custom image would include say standard CIS security requirements, or perhaps any other BASE system defaults.

See:

For more info. This is a moderately technical challenge to get working.

share|improve this answer

You could also use BOMSI as a reference. BOMSI creates custom kickstarted ISO files for installing OpenStack, but you can also create a plain CentOS machine. As simple as:

./bomsi-iso.sh --no_firstrun

If you are dealing with MaaS you will probably find it quite simple to hack the gen_ks.sh file to generate kickstart files for your needs.

You can find those scripts at: https://github.com/julenl/BOMSI/

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.