提示:PXE、iVentoy、BIOS
前言
在現代 IT 維護與管理環境中,PXE(Preboot Execution Environment)無碟開機技術能大幅簡化作業系統的安裝與部署流程。透過 PXE 搭配 iVentoy,能讓使用者直接從網路啟動電腦並安裝各種作業系統或工具,省去傳統光碟片或 USB 隨身碟的麻煩。本文將帶你一步步實現 PXE 伺服器的架設,並深入介紹如何使用 iVentoy 輕鬆管理系統映像檔。
一、PXE與iVentoy:無碟開機技術的理想組合
PXE (Preboot Execution Environment) 是一種允許電腦透過網路從伺服器啟動的技術。iVentoy 則是一款功能強大的工具,能夠支援多種作業系統映像檔(ISO),為 PXE 開機提供靈活且高效的解決方案,適合用於企業環境與實驗室。
- 執行安裝程式
安裝需用管理員權限,此命令會進行安裝,過程將顯示在終端中。
相關參考連結:
⭐ 官方 iVentoy Get Started
⭐ iVentoy 安裝教學與設定
⭐ 基於樹莓派+iventoy的行動PXE伺服器搭建教學
二、輕鬆架設PXE Server並整合iVentoy
首先,你需要選擇適當的伺服器硬體與作業系統,如 Linux 或 Windows Server。本文將以 Linux 為範例,示範如何下載、安裝並設定 iVentoy,確保 PXE 伺服器運行穩定,並有效整合至現有網路。
設定 iVentoy 開機自動啟動(Systemd 服務)
![[iventoy status.png]]
iVentoy Log
- 若需要確認 iVentoy 開機後的 log 訊息
三、管理你的映像檔:ISO檔案的導入
透過 iVentoy,你只需將作業系統 ISO 檔案直接放入伺服器的指定資料夾即可。iVentoy 會自動識別並提供給 PXE 客戶端。本段將說明如何快速且有效地將映像檔匯入伺服器,方便後續管理。
iVentoy預設的port是26000
- 登入輸入
http://x.x.x.x:26000
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
iventoy會到iso資料夾下找尋映像檔,所以需要將映像檔複製到此資料夾
- cp到此目錄以外,也可以使用ln軟連結
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 最後回到主畫面,按下START鍵 ▶︎ ,啟動PXE Server
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
四、BIOS設定攻略:啟用PXE功能
在使用 PXE 前,必須進入主機 BIOS 界面,將網路開機選項(如 PXE Boot 或 Network Boot)啟用,並調整啟動順序,確保電腦優先從網路啟動。本段將提供清晰易懂的設定步驟與注意事項。
- 將BIOS中的PXE設定ENABLE
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 調整開機boot選項
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 或是可於開機選單選擇PXE開機
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 進入到PXE Server選擇要安裝的映像檔
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
五、遇到的一些問題
如果發現找不到ip
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
可以進行重新啟動
六、iVentoy 常用指令
總結
透過本文的步驟,你已經成功架設並啟動了一個穩定的 PXE 伺服器,搭配 iVentoy 的靈活應用,大幅簡化了系統安裝與維護流程。無論是在企業 IT 部署或個人實驗環境中,這套技術都能有效提高作業效率並降低管理成本。立即開始體驗 PXE 帶來的便利吧!