This post is one article of a multi part series about installing and configuring cobbler. Be sure to also check out these:If you followed the last post and installed cobbler, you've got the service up and running just fine now - and it still doesn't help you anything. To install a server for you, it needs to have the installation media available and imported. Thankfully, that's easy to accomplish. In this example, I'm importing CentOS 5.6 into cobbler running on the same OS.
- Make the installation media available. Either by mounting an ISO image or mounting the DVD. [root@infra01 ~]# mount /dev/dvd /mnt
- Import the OS using the command "cobbler import". You may specifiy any name for the OS here, so use a name that is speaking for you. [root@infra01 ~]# cobbler import --name=CENTOS5-6 --path=/mntBefore you do that, be sure that you have enough free space in the volume containing /var/www/cobbler because the command will copy all the rpms into there. For reference, size of the directory after the import:[root@infra01 ~]# du -h --max-depth=0 /var/www/cobbler/(Isn't it mean to place warnings after the command they belong to? But mostly you learn more like that. Don't think I'll feel guilty or that I'll apologize.)
- Now sync cobbler and the import is done. [root@infra01 ~]# cobbler sync
[root@infra01 ~]# cobbler list distros: CENTOS5-6-x86_64 CENTOS5-6-xen-x86_64 profiles: CENTOS5-6-x86_64 CENTOS5-6-xen-x86_64 systems: repos: images: