PXE Boot 問題處理

  1. PXE 安裝時若有問題,要注意 iptables 及 selinux 是否阻擋?
  2. PXE 無法取得 DHCP ip:ping 192.168.1.253 檢查限制使用的 ip 192.168.1.253 是否被佔用。
    PXE-E51 "No DHCP or DHCP Proxy Offers received"
    
  3. PXE 取得 DHCP ip 接著 tftp 出現錯誤訊息,可能是 NetworkManager 作怪,使用 pxe 安裝時,建議關閉 NetworkManager,只使用 network 網路服務。
    PXE-E32: TFTP open timeout
    
  4. PXE 安裝時 repo=nfs:192.168.1.254:/var/ftp/pub/isos,也就是掛載 nfs 上的 iso 檔,出現以下 iso 檔已成功掛載,但 rpm 套件無法開啟問題,應該是 iso 檔有問題,請重新下載 iso 檔。使用 rsync 同步檔案並無法解決 iso 檔問題,要直接複製。
    The file [name of a .rpm file] cannot be opened. This is due to a missing file, a corrput package or corrupt media. Please verify your installation source.
    
    If you exit, your system will be left in an inconsistent state that will likely require reinstallation.
    
    Reboot | Retry
    
  5. 若 kickstart 檔案設定的網路 ip 為 192.168.1.253,但 dhcp 卻無法取得此 ip,會造成通過 dhcp, tftp 後 nfs 無法掛載,而無法繼續安裝。
    1. kickstart 檔中的網路設定
      network --bootproto static --ip 192.168.1.253 --netmask 255.255.255.252 --nameserver 192.168.1.254 --hostname deyu.wang
      
    2. dhcp 設定檔 pxe 取得 ip 範圍。
              # Assign IPs 200-253 to PXE clients
              pool {
                  allow members of "PXE";
                  default-lease-time 120;
                  max-lease-time 180;
                  range 192.168.1.200 192.168.1.253;
              }
      
    3. pxe 安裝過程 192.168.1.253 無法連線的錯誤訊息。
      iBFT doesn't couldn't provide valid nic mac address.