rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
yum install cobbler
service cobblerd start
web Interface
https://fedorahosted.org/cobbler/wiki/CobblerWebInterface
vim /etc/cobbler/modules.conf
#change
[authentication]
module = authn_configfile
- might use default password or change it to cobbler with:
htdigest /etc/cobbler/users.digest "Cobbler" cobbler
Run with:
http://127.0.0.1/cobbler/web
username: cobbler, password: cobbler
# the web interface didn't work till I created this file and added entry for cobbler in hosts file
vim /etc/httpd/conf.d/cobbler_my.conf
DocumentRoot /var/www/cobbler
service httpd restart
service cobblerd restart
#change
next_server: '192.168.1.1'
server: '192.168.1.1'
manage_dhcp: 1
vim /etc/xinetd.d/tftp
#change
disable = no
#edit
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.1.100 192.168.1.254;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
}
service cobblerd restart
service xinetd start
service dhcpd start
chkconfig cobblerd on
chkconfig xinetd on
chkconfig dhcpd on
#if got errors with dhcpd, repeat:
vim /etc/cobbler/dhcp.template
cobbler sync
service dhcpd start
less /var/log/messages
ks menu
# yet to be done - don't want a menu
# might add systems:
#00:0c:29:46:17:d1 i386
#00:0c:29:70:55:9a x86_64
#edit
vim /etc/cobbler/pxedefault.template
download image
#make download to folder /isos if possible or after download move iso to /isos
rtorrent
ftp://ftp.iinet.net.au/linux/centos/5.2/isos/i386/CentOS-5.2-i386-bin-DVD.torrent
ftp://ftp.iinet.net.au/linux/centos/5.2/isos/x86_64/CentOS-5.2-x86_64-bin-DVD.torrent
mount iso image
mount -t auto -o loop /isos/CentOS-5.2-i386-bin-DVD.iso /mnt/Centos52
cobbler import --mirror=/mnt/Centos52 --name=CentOS-5.2-i386
#add extra repositories
cobbler repo add --name=CentOS-5.2-i386-UPDATES --mirror=ftp://ftp.iinet.net.au/linux/centos/5.2/updates/i386/ --priority=40 --createrepo-flags="-c cache"
#!schedule daily sync!
3 comments:
hey the explanantion is great but whn i boot my laptop it got tftp n all
on cobbler menu it is just showing (local) n nothing else..by doing some research i got that something i hav to do from GUI menu...what else is missing from my sode :(
I'd put a note in there about selinux. It can cause issues where httpd can't connect to cobblerd. The following solves that.
setsebool -P httpd_can_network_connect true
Then restart httpd and cobblerd for good measure.
For servers running selinux run this command
semanage port -a -t http_port_t -p tcp 25151
Post a Comment