(官方已经重新开放开源产品)最新参考https://blog.youkuaiyun.com/jsdtwyk/article/details/88698193
文章搬运自:https://www.wanghaiqing.com/article/37439622-7ea2-46c5-a20e-274c5fc49f5f/
关闭防火墙
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
sed -i -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
sed -i -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
setenforce 0
安装
wget http://file.wepcc.com/Linux/cloudboot-1.4-1.x86_64.rpm
rpm -ivh cloudboot-1.4-1.x86_64.rpm
配置DHCP
cat > /opt/cloudboot/etc/dhcp/dhcpd.conf << EOF
allow booting;
allow bootp;
ddns-update-style none;
ping-check true;
ping-timeout 3;
default-lease-time 120;
max-lease-time 600;
authoritative;
next-server 192.168.245.180;
filename "undionly.kkpxe";
option domain-name "192.168.245.180";
option domain-name-servers 192.168.245.1;
option root-path "192.168.245.180:/";
subnet 192.168.245.0 netmask 255.255.255.0 {
range 192.168.245.101 192.168.245.200;
option routers 192.168.245.1;
}
EOF
启动
systemctl start cloudboot
chkconfig cloudboot on
systemctl status cloudboot
访问
http://192.168.245.180
用户名:admin
密码 :admin
修改bootos地址
/opt/cloudboot/var/lib/tftpboot/pxelinux.cfg/default
在web界面添加位置、网段管理
创建虚拟机,启动。在发现新设备里面出现序列号。
克隆PXE模板、系统模板,修改ip信息
文档可以参考http://idcos.github.io/osinstall-doc/