- #rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
- #yum install cobbler tftp-server rsync httpd dhcp xinetd
- #service httpd start
- #service cobblerd start
- #cobbler check
- # vim /etc/cobbler/settings
- #openssl passwd -1 -salt 'random-phrase-here' '123456'
- #vi /etc/xinetd.d/tftp
- #vi /etc/xinetd.d/rsync
- subnet 192.168.217.0 netmask 255.255.255.0 {
- option routers 192.168.217.130;
- #option domain-name-servers 192.168.217.2;
- option subnet-mask 255.255.255.0;
- range dynamic-bootp 192.168.217.200 192.168.217.254;
- filename "/pxelinux.0";
- default-lease-time 21600;
- max-lease-time 43200;
- next-server $next_server;
- }
- #cobbler sync
- #service cobblerd restart
- #mkdir /mnt/iso
- #mount -o loop /opt/CentOS-5.7-i386-bin-DVD.iso /mnt/iso/
- #cobbler import --path=/mnt/iso --name=centos5.7 (--name=生成的镜像名字)
- #cobbler distro list
- #/etc/init.d/httpd restart
- #/etc/init.d/xinetd restart
- #/etc/init.d/dhcpd restart
- #/etc/init.d/cobblerd restart