目前已知三種:
- xCAT MTMS discovery
- Canonical MAAS Enlistment - automatic discovery or network discovery
- Foreman Discovery
請LLM幫忙分析的結果
看起來必要條件有幾個:
- PXE環境(DHCP+TFTP)
- 機器需要設定為network boot
- lightweight bootable image,這個image需要以某種方式將硬體資訊回傳至負責的Service(xCAT, MAAS, Foreman),在xCAT內被稱作genesis image,在Foreman被稱為Discovery image
xCAT所使用的程式主要是這一個bmcdiscover,scan_process這個函式內提到了兩個工具:nmap和ipmitool-xcat,nmap看起來是用來取得live_ip,ipmitool-xcat用來取得BMC的mc info
大致操作流程如下
1 | bmcdiscover --range 192.168.62.85-87 -u foo -p bar -z -w |
MAAS和Foreman沒有用過,就不細究了