###### tags: `系統安裝` # 安裝 Cent OS 8.4 在 Hyper-V上 [CentOS 官網](https://www.centos.org/download/) [CentOS 產品規格](https://wiki.centos.org/zh-tw/About/Product) # A. 下載 CentOS 的 ISO 檔案 範例下載的檔案是: CentOS-8.4.2105-x86_64-boot.iso ![](https://i.imgur.com/P26OqIy.png) --- # B. 掛載 ISO 檔到 Hyper-V **1. 開啟 Hyper-V管理員, 建一個虛擬機器** ![](https://i.imgur.com/dM5La1Q.png) **2. 下一步** ![](https://i.imgur.com/f1TatI2.png) **3. 幫安裝的虛擬機命名** ![](https://i.imgur.com/w7b5qSF.png) **4. 選擇第一代, 第二代後續啟動會發生錯誤** ([第一二代選擇建議](https://docs.microsoft.com/zh-tw/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v)) ![](https://i.imgur.com/ZEcHb6O.png) **5. 設定虛擬機的記憶體容量** ![](https://i.imgur.com/v89Wsxs.png) **6. 設定虛擬機的位置以及硬碟容量** ![](https://i.imgur.com/NSqsl5p.png) **7. 選擇步驟A下載的 CentOS ISO檔案** ![](https://i.imgur.com/vFX8fBK.png) **8. 完成** ![](https://i.imgur.com/rBXyDIw.png) --- # C. CentOS 設定 **1. 打開 Hyper-V 管理員, 選擇剛剛安裝好的虛擬機 CentOS 8, 然後選擇 連線** ![](https://i.imgur.com/duc71wP.png) **2. 3. 點選啟動並等待期開機** ![](https://i.imgur.com/rWcuPIg.png) **4. 選擇 OS 的安裝語言** ![](https://i.imgur.com/XNAmpu4.png) **5. 下面有標紅色提醒文字的, 都要去做設定, 首先設定 安裝目標位置** ![](https://i.imgur.com/h5CY9c6.png) **6. 你自訂或是自動, 這邊範例沒有特別意見所以選擇自動** ![](https://i.imgur.com/Re796DW.png) **7. & 8. 為你的 root 設定密碼** ![](https://i.imgur.com/3qmtJIK.png) ![](https://i.imgur.com/CMQ77X0.png) **9. 設定 網路與主機名稱, 這邊網路要設定了, 虛擬機才有網路可以用, 軟體的部分才能自動下載** ![](https://i.imgur.com/mkvXgQW.png) **10. 它會自動幫你抓到本機的網路** ![](https://i.imgur.com/nThSAzR.png) **11. 這邊有一些內建的軟體可供選擇** ![](https://i.imgur.com/U8XFD3k.png) **12. 示範就只安裝了 GUI 伺服器** ![](https://i.imgur.com/MRkMLtG.png) **13. 警告紅色文字都消失後, 選擇 開始安裝** ![](https://i.imgur.com/PRRFZE2.png) **14. 過程大概需要15 ~ 20 分鐘, 可以休息一下** ![](https://i.imgur.com/KMaLgO2.png) **15. 完成** ![](https://i.imgur.com/IbFdom6.png)