官網下載地址:https://www.vercot.com/~serva/download.html,下載Community社區版就可以
安裝成功後,點擊左上角圖標彈出菜單,選擇Settings進行設置
HTTP設置如下圖:
TFTP設置如下圖:
DHCP設置如下圖:
設置完成後確定,關閉Serva重新啓動。
在設置成功後,在所設置的目錄下會生成幾個文件夾,如下:
NWA_PXE目錄是存放Linux系統的
WIA_RIS目錄是存放早期Windows系統,如XP,Windows2000等
WIA_WDS目錄是存放Windows系統,如Windows10、Windows Server 2016等。
這次是要安裝CentOS7所以是使用NWA_PXE目錄
將CentOS7的ISO文件解壓到NWA_PXE目錄中,如下:
在目錄中創建ServaAsset.inf文件,這個文件有所需的引導和安裝等信息。這個文件創建方法和內容在Serva網站上有詳細的說明,地址:https://www.vercot.com/~serva/an/NonWindowsPXE3.html。
ServaAsset.inf文件(文件內容爲CentOS系統的,如需要其他Linux版本參看上面的地址。Windows系統不需要該文件,只需要把Windows系統ISO文件解壓到相應的目錄就可以)
;-Serva v3.0 Asset Information File
;-Boot/Install:
; Red Hat Enterprise Linux / CentOS Linux
;-Tested on:
; rhel-server-7.5-x86_64-dvd.iso
; rhel-server-7.5-x86_64-boot.iso
; rhel-workstation-7.5-x86_64-dvd.iso
; rhel-workstation-7.5-x86_64-boot.iso
; rhel-client-7.5-x86_64-dvd.iso
; rhel-client-7.5-x86_64-boot.iso
; rhel-atomic-installer-7.5.0-1.x86_64.iso
;
; rhel-server-7.4-x86_64-dvd.iso
; rhel-server-7.4-x86_64-boot.iso
; rhel-workstation-7.4-x86_64-dvd.iso
; rhel-workstation-7.4-x86_64-boot.iso
; rhel-client-7.4-x86_64-dvd.iso
; rhel-client-7.4-x86_64-boot.iso
; rhel-atomic-installer-7.4.0-1.x86_64.iso
;
; rhel-server-7.3-x86_64-dvd.iso
; rhel-server-7.3-x86_64-boot.iso
; rhel-workstation-7.3-x86_64-dvd.iso
; rhel-workstation-7.3-x86_64-boot.iso
; rhel-client-7.3-x86_64-dvd.iso
; rhel-client-7.3-x86_64-boot.iso
;
; rhel-server-7.2-x86_64-dvd.iso
; rhel-server-7.2-x86_64-boot.iso
; rhel-workstation-7.2-x86_64-dvd.iso
; rhel-workstation-7.2-x86_64-boot.iso
; rhel-client-7.2-x86_64-dvd.iso
; rhel-client-7.2-x86_64-boot.iso
; rhel-atomic-installer-7.2-10.x86_64.iso
;
; CentOS-7-x86_64-DVD-1804.iso
; CentOS-Atomic-Host-7-Installer.iso (2018-Jun-11)
;
; CentOS-7-x86_64-DVD-1708.iso
; CentOS-Atomic-Host-7-Installer.iso (2017-Nov-28)
;
;
; rhel-workstation-6.5-x86_64-dvd.iso
; rhel-server-6.5-x86_64-dvd.iso
; CentOS-6.5-x86_64-bin-DVD1.iso
;
;-Require:
; \SERVA_REPO\ offered as HTTP root
;-Notes:
; For KickStart
; 7.3 and up > Add to append inst.ks=http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/images/pxeboot/ks.cfg
; 7.2 > Add to append ks=http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/images/pxeboot/ks.cfg
[PXESERVA_MENU_ENTRY]
asset = CentOS Linux
platform = x86_64
kernel_bios = /NWA_PXE/$HEAD_DIR$/images/pxeboot/vmlinuz
append_bios = initrd=/NWA_PXE/$HEAD_DIR$/images/pxeboot/initrd.img inst.repo=http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/
;7.2 > append_bios = initrd=/NWA_PXE/$HEAD_DIR$/images/pxeboot/initrd.img root=live:http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/LiveOS/squashfs.img ksdevice=bootif repo=http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/
;6.x > append_bios = initrd=/NWA_PXE/$HEAD_DIR$/images/pxeboot/initrd.img method=http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$ noipv6 ksdevice=bootif
ipappend_bios = 2
kernel_efi64 = /NWA_PXE/$HEAD_DIR$/images/pxeboot/vmlinuz
append_efi64 = initrd=/NWA_PXE/$HEAD_DIR$/images/pxeboot/initrd.img inst.repo=http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/
;7.2 > append_efi64 = initrd=/NWA_PXE/$HEAD_DIR$/images/pxeboot/initrd.img root=live:http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/LiveOS/squashfs.img ksdevice=bootif repo=http://$IP_BSRV$/NWA_PXE/$HEAD_DIR$/
ipappend_efi64 = 2
利用虛擬機進行測試
先設置虛擬機使用網絡啓動
引導到Serva PXE安裝菜單,可以看到暫時只有CentOS系統,如果配置了其他系統的話,菜單中也會出現。
下圖爲配置了Windows10和CentOS兩個系統。
選中要安裝的系統,開始進行安裝。
不知道爲什麼一進來就是選中了中文。