在 Debian 上使用 Cobbler 添加节点(即被安装/管理的客户端机器),通常分为 节点注册(System 添加) 和 PXE 自动安装 两部分。下面按实际运维流程说明。
确保你已经:
apt install cobbler cobbler-web)cobbler sync查看已有资源:
cobbler distro list
cobbler profile list
适合物理机/虚拟机通过 PXE 启动自动装机。
cobbler system add \
--name=node01 \
--mac=00:11:22:33:44:55 \
--profile=CentOS-7-x86_64 \
--ip-address=192.168.1.101 \
--netmask=255.255.255.0 \
--gateway=192.168.1.1 \
--dns-name=node01.example.com \
--static=1
然后同步:
cobbler sync
节点开机 → PXE → 自动安装对应 profile
cobbler system add \
--name=node02 \
--mac=00:11:22:33:44:66 \
--profile=Ubuntu-20.04-x86_64
cobbler system add \
--name=node03 \
--ip-address=192.168.1.103 \
--profile=CentOS-7-x86_64
cobbler system list
cobbler system report --name=node01
cobbler system edit --name=node01 --profile=Ubuntu-20.04
cobbler system remove --name=node01
cobbler sync
isc-dhcp-server 需手动配置 next-servercobbler check 会提示 Debian 特有路径问题,一般可忽略cobbler distro list
cobbler profile list
cobbler system add \
--name=web01 \
--mac=52:54:00:aa:bb:cc \
--profile=Debian-11-x86_64 \
--ip-address=10.0.0.11 \
--netmask=255.255.255.0 \
--gateway=10.0.0.1
cobbler sync
如果你愿意,可以告诉我:
我可以给你一份 可直接复制的配置文件。