VMware Kickstart 安裝

Vmware 也是可以使用 kickstart (自動安裝) 來安裝,適合用於 PXE 環境, 關於 PXE 設定請參考.

PXE 設定檔需要增加關於 kickstart 位址.

[root@benjr ~]# vi /var/lib/tftpboot/linux-install/pxelinux.cfg/default
LABEL esxi50
kernel vmware-esxi-5/mboot.c32
append -c vmware-esxi-5/boot.cfg pxebooting ks=

安裝好的 VMware 預設會有 kickstart (/etc/vmware/weasel/ks.cfg) 設定檔可供參考.

# Sample scripted installation file

# Accept the VMware End User License Agreement

# Set the root password for the DCUI and Tech Support Mode
rootpw mypassword

# The install media is in the CD-ROM drive
install --firstdisk --overwritevmfs

# Set the network to DHCP on the first network adapter
network --bootproto=dhcp --device=vmnic0

# A sample post-install script
%post --interpreter=python --ignorefailure=true
import time
stampFile = open('/finished.stamp', mode='w')
stampFile.write( time.asctime() )



你的電子郵件位址並不會被公開。 必要欄位標記為 *