5,484 瀏覽數

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=http://172.16.0.2/esxi50ks.cfg

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

 
#
# Sample scripted installation file
#

# Accept the VMware End User License Agreement
vmaccepteula

# 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() )

其他設定可以參考
vmware.vsphere.install.doc

發表迴響