Installing CentOS - sibe/cobbler GitHub Wiki
The easiest way to add a distribution record, a "distro", to the cobbler configuration is to mount the media and extract its content using the cobbler import
command.
To add the CentOS installation tree, mount the installation media and extract its content:
# mount /dev/cdrom /media
# cobbler import --path=/media --arch=x86_64 --name=CentOS-6.4
Cobbler now copies the media content to the filesystem. It can take a while to complete.
Check the result with the following command:
# cobbler distro report
Name : CentOS-6.4-x86_64
Architecture : x86_64
TFTP Boot Files : {}
Breed : redhat
Comment :
Fetchable Files : {}
Initrd : /var/www/cobbler/ks_mirror/CentOS-6.4-x86_64/images/pxeboot/initrd.img
Kernel : /var/www/cobbler/ks_mirror/CentOS-6.4-x86_64/images/pxeboot/vmlinuz
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/CentOS-6.4-x86_64'}
Management Classes : []
OS Version : rhel6
Owners : ['admin']
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Template Files : {}
Creating a Kickstart file
The next step is to create a kickstart file to be used for an automatic installation. We can start with the kickstart template based on the files available from /var/lib/cobbler/kickstarts
. After creating the file, we copy it to /var/lib/cobbler/kickstarts
.
Creating a Profile
Profiles are the core unit of provisioning and at least one profile must exist for every distribution to be provisioned.
The following command will create a profile and associate it with the distro previously added:
# cobbler profile add --name=centos64 --distro=CentOS-64-x86_64 --kickstart=/var/lib/cobbler/kickstart/centos64.ks
Check the result with the cobbler profile report
.
Register a client machine and associate it with a profile
The last step is to associate a machine with the profiles we want them installed with.
# cobbler system add --name=centos-machine --profile=centos64 --mac=00:50:56:37:9F:4B --ip-address=10.1.8.205
Check the result with the cobbler system report
command.
Performing Installation
To perform a fully automatic installation using cobbler's configuration previously created, a machine must be configured to boot from the network.