PeterSteele wrote on Tue, 24 June 2014 16:13I have a streamlined CentOS install that's automated through the kickstart facility. I want my custom image to use the OpenVZ kernel instead of the default CentOS kernel. I'm not sure what the correct way is to do this.
My current kickstart script does not explicitly reference which kernel files are installed. This is handled automatically by the @core entry in the %packages section:
%packages --nobase
@core
I know I can add code in %post to install the kickstart kernel as one of the final stages of the kickstart install process. Is this the best way?
I'm going to un-necro this thread.. if you install OpenVZ manually, you can look into /root/anaconda-ks.cfg.
I've tested kickstarts of OpenVZ via Koan/Cobbler. Here's my package list for OpenVZ 7:
%packages
@^cloudserver
@base
@core
@ps
@qemu
@templates
@vz
chrony
kexec-tools
%end