刚和xiong说到了,Cobbler是很有趣的东西。他可以干嘛呢?如果你有N台机器需要安装Linux的系统,那么Cobbler就是一个很好的候选方案;如果你需要远程给虚拟机安装系统,那么Cobbler也是很好的选择。
如下,我尝试使用Cobbler给N台机器最快速的安装CentOS。当然,首先我已有了一台作为安装服务器的机器,这是一个安装了CentOS的PC,安装时候选择的Server Installation,并且他在一个网络里,这个安装服务器的IP是192.168.56.103/255.255.255.0。
rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@localhost cobbler]# cobbler check The following potential problems were detected: #0: The 'server' field in /var/lib/cobbler/settings must be set to something other than localhost, or kickstarting features will not work. This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it. #1: For PXE to be functional, the 'next_server' field in /var/lib/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network. #2: change 'disable' to 'no' in /etc/xinetd.d/tftp
mkdir /inst/cd mount -o loop /inst/CentOS-5.4-i386-bin-DVD.iso /inst/cd
cobbler import --mirror=/inst/cd --name=centos54
如果再把cobbler的repository做成跟centos官方站的rsync,这样不就可以一劳永逸了,哈哈哈。
参考文献:https://fedorahosted.org/cobbler/wiki/UsingCobblerImport
联系客服