以下是使用Cobbler在Ubuntu上设置PXE启动的步骤:
sudo apt update
,然后执行sudo apt install cobbler cobbler-web dhcp3-server tftpd-hpa xinetd
。sudo systemctl start cobblerd
和sudo systemctl enable cobblerd
。/etc/dhcp/dhcpd.conf
文件,添加子网、IP范围、网关、DNS服务器等信息,并设置filename "pxelinux.0"
和next-server
为Cobbler服务器的IP。编辑/etc/default/isc-dhcp-server
文件,指定DHCP服务器监听接口,最后重启DHCP服务器。/etc/xinetd.d/tftp
文件,将disable
设置为no
,重启xinetd服务。/tmp
,执行sudo cobbler import --path /tmp/ --name ubuntu-20.04
。sudo cobbler profile edit --name ubuntu-20.04 --kickstart /var/lib/cobbler/kickstarts/default.seed
。sudo cobbler system add --name ubuntu-20.04 --profile ubuntu-20.04
和sudo cobbler system edit --name ubuntu-20.04 --netboot-enabled true
。sudo cobbler sync
,使配置生效。