![Cobbler PXE 启动](https://linux22.com/image/718811/Cobbler%20PXE%20%E5%90%AF%E5%8A%A8%20.png)
我的设置:
VirtualBox
DHCP/Cobbler VM server (CentOS 7)
PXE VM Client
DHCP/Cobbler 服务器 (1 个设备设置为 NAT) '/etc/sysconfig/network-scripts/ifcfg-enp0s3'
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
NAME=enp0s3
UUID=1b9314dd-2ad7-4bf5-bada-9fb0ca727526
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.56.101
PREFIX=24
DHCP/Cobbler 服务器‘/etc/dhcp/dhcpd.conf’
ddns-update-style interim;
allow booting;
allow bootp;
subnet 192.168.56.0 netmask 255.255.255.0 {
option routers 192.168.1.5;
option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.56.101 192.168.56.111;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.56.101;
class "pxeclients" {
} else {
filename "pxelinux.0";
}
}
}
DHCP/Cobbler 服务器‘/etc/cobbler/settings’
next_server: 192.168.56.101
server: 192.168.56.101
鞋匠检查
[root@dhcp ~]# cobbler check
No configuration problems found. All systems go.
为 PXE 安装 .iso
[root@dhcp ~]# mount -o loop CentOS-7-x86_64-Minimal-1708.iso /mnt/
[root@dhcp ~]# cobbler import --path=/mnt/ --name=CentOS-7
PXE 客户端
PXE-E53: No boot filename received
PXE-M0F: Exiting Intel PXE ROM.
FATAL: Could not read from the boot medium! System halted.
答案1
尝试 dhcpd.conf
ddns-update-style interim;
allow booting; allow bootp;
subnet 192.168.56.0 netmask 255.255.255.0 {
option routers 192.168.1.5;
option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.56.101 192.168.56.111;
default-lease-time 21600;
max-lease-time 43200;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.56.101;
filename "pxelinux.0";
}
}
如果您的所有客户端都启动 BIOS 模式,那么这应该可以工作。