dnsmasq.service uefi 安装ESXi

在Linux环境下挂载ESXiISO文件以避免解压出的大写文件名导致的问题。更新dnsmasq配置,指定PXE服务的EFI启动文件路径。如果遇到PROCFS.B00紫屏错误,检查文件名是否因大小写不一致导致。
  1. 下载好对应版本的ESXiXXXX.ISO
  2. 务必在Linux下mount ESXiXXXX.ISO,否则解压出来的文件名将会是大写。
  3. 复制光盘中的文件至/var/lib/tftpboot/ESXi目录
  4. vim /etc/dnsmasq.conf

pxe-service=7, "PXELINUX (0007-EFI)", "ESXi/efi/boot/bootx64.efi"

systemctl restart dnsmasq.service

```

ESXi/
├── atlantic.v00
├── efi
        └── boot
        ├── boot.cfg

        ├── bootx64.efi
        └── crypto64.efi
```

5、vim /var/lib/tftpboot/cores/ESXi/efi/boot/boot.cfg

加上路径/ESXi/b.b00

6、如果出现:unexpected early boot module PROCFS.B00紫屏错误,

那就是第三步的时候文件名大写了。

[root@localhost tftp]# vi /etc/dnsmasq.conf [root@localhost tftp]# sudo systemctl start dnsmasq [root@localhost tftp]# sudo systemctl enable dnsmasq Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service → /usr/lib/systemd/system/dnsmasq.service. [root@localhost tftp]# sudo systemctl status dnsmasqdnsmasq.service - DNS caching server. Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2025-11-07 11:21:40 CST; 7s ago Main PID: 37674 (code=exited, status=1/FAILURE) Nov 07 11:21:40 localhost.localdomain systemd[1]: Started DNS caching server.. Nov 07 11:21:40 localhost.localdomain dnsmasq[37674]: dnsmasq: bad option at line 29 of /etc/dnsmasq.conf Nov 07 11:21:40 localhost.localdomain dnsmasq[37674]: bad option at line 29 of /etc/dnsmasq.conf Nov 07 11:21:40 localhost.localdomain dnsmasq[37674]: FAILED to start up Nov 07 11:21:40 localhost.localdomain systemd[1]: dnsmasq.service: Main process exited, code=exited, status=1/FAILURE Nov 07 11:21:40 localhost.localdomain systemd[1]: dnsmasq.service: Failed with result 'exit-code'. [root@localhost tftp]# cat /etc/dnsmasq. cat: /etc/dnsmasq.: No such file or directory [root@localhost tftp]# cat /etc/dnsmasq.conf bind-dynamic interface=enp42s0f0 except-interface=lo port=0 dhcp-range=6.6.6.100,6.6.6.200,255.255.255.0,12h enable-tftp tftp-root=/home/ipxe_test/tftp # 租约管理 dhcp-leasefile=./dnsmasq.leases dhcp-lease-max=50 dhcp-match=set:iPXE,175 dhcp-match=set:UEFI,option:client-arch,7 dhcp-match=set:UEFI64,option:client-arch,9 dhcp-match=set:ARM32,option:client-arch,11 dhcp-match=set:ARM64,option:client-arch,12 dhcp-boot=tag:!iPXE,tag:!UEFI,tag:!UEFI64,tag:!ARM32,tag:!ARM64,legacy-x86-undionly.kpxe dhcp-boot=tag:!iPXE,tag:UEFI,uefi-x86-ipxe.efi dhcp-boot=tag:!iPXE,tag:UEFI64,uefi-x86-ipxe.efi dhcp-boot=tag:!iPXE,tag:ARM32,uefi-arm-ipxe.efi dhcp-boot=tag:!iPXE,tag:ARM64,uefi-arm-ipxe.efi dhcp-boot=tag:iPXE,tag:UEFI,{ipxe_script_url_uefi} dhcp-boot=tag:iPXE,tag:UEFI64,{ipxe_script_url_uefi} dhcp-boot=tag:iPXE,tag:ARM32,{ipxe_script_url_uefi} dhcp-boot=tag:iPXE,tag:ARM64,{ipxe_script_url_uefi} dhcp-boot=tag:iPXE,tag:!UEFI,tag:!UEFI64,tag:!ARM32,tag:!ARM64,{ipxe_script_url_legacy} log-dhcp log-queries log-debug log-async log-facility=./dnsmasq.log [root@localhost tftp]#
最新发布
11-08
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值