Minimal centos via kickstart not working
I remember in the past, being able to remove packages to be installed in kickstart by naming the package, and adding a - infront of it... such as -wget. Im not entirely sure when this has changed, or what changed, but centos (redhat) now is far from minimal, on its minimal/bare install setting.
a bare install via kickstart ends up with about 1150MB, bare install from the interactive installer gives me ~720MB. By specifying --nobase, ive managed to cut it down to 644MB. To put this in perspective, ive created a 10MB bootable redhat installer CD, which is set up to download centos 4.5 off of my network web-server. The goal was to have a bare-minimal (and by minimal, I actually mean MINIMAL) linux operating system prepared for installing Vmware server. Redhats current minimal install is more bloated than a full ubuntu install. To be clear: I do not care about memory usage I do not care about security This "minimal" attempt of mine is to reduce download size. Eventually I plan on distributing this, and considering most people would rather not download 644MB of linux + 120MB of vmware, I would like to cut it down as much as possible. It wont be running SSH, HTTPD, FTP, NFS, SAMBA, or anything else.. Just the OS, and what's needed to run Vmware. I will have to determine later what vmware actually needs, and doesnt need... But I would like to stick with Redhat, and no thanks... I am not going to try gentoo or ubuntu, id rather use Redhat. Ive spent the past four or five hours messing around with the ks.cfg file, and googling for any information. There is a thread on this at the redhat bugzilla : https://bugzilla.redhat.com/show_bug.cgi?id=139364 but aside from this, I could not find any other information. Im not expecting a 100MB redhat install, although I feel 644MB is a bit too bloated for what im doing. On low end DSL, even 10-20MB less makes a big difference in download time. Can anyone offer any help on how to cut down on the packages, with commands that *actually* work? Code:
# Kickstart file |
On your first installation CD take a look at the repodata directory and look at comps.xml file.
It will list the available groups with their respective packages So maybe do something like this. Hold back all groups and then only list your required packages Code:
%packages I'm still working on getting some kickstart.cfg files configured based on server role. Trying to included only needed packages Good Luck |
Quote:
My current cd, on / contains trans.tbl and ks.cfg its other folder is /isolinux, containing boot.cat, initrd.img, etc. Would I just add /CentOS/base/comps.xml on this installation CD? Or would there be more required? Quote:
Update: Ive tried setting packages as optional, and tried a few comps.xml's posted online which claimed to be "minimal". It either ends up as ~1200MB in size, or something like this : http://wolfgame.org/files/open_sauce_redhat.PNG. This installation in that image, of course, was not minimal beyond the default minimal install size (about 1200MB), and for some reason would not boot after the installation was finished. |
Anyone?? :confused:
|
I am having similar problems. I have tried an empty CentOS/base/comps.xml, but then Anaconda gives XML syntax errors, my latest try without XML errors for CentOS/base/comps.xml is:
Code:
<?xml version='1.0' encoding='UTF-8'?> Code:
%packages Code:
%packages --nobase --ignoredeps --ignoremissing Code:
%packages --nobase --ignoredeps --ignoremissing Code:
%packages --nobase --ignoredeps --ignoremissing Code:
%packages --ignoredeps Code:
%packages --nobase --ignoredeps --ignoremissing |
Check out Orange JeOS
For a small and secure CentOS image for use with VMware you may want to check out the Orange JeOS project:
http://orangejeos.sourceforge.net/ Andy |
All times are GMT -5. The time now is 02:28 PM. |