hello can someone help me with a kickstart script that will install esxi and configure a static ip address on vlan x for mgmt
i would also like to add a second uplink to my vswitch and add a new portgroup for virtual machine traffic on vlan y
thanks
Please don't double post like the discussion you've started here. What work have you done so far on your own to create a kickstart script for yourself?
#Sample scripted installation file
#Accept the VMware End User License Agreement
vmaccepteula
#Set the root password for the DCUI and ESXi Shell
rootpw password
#Install on the first local disk available on machine
install --firstdisk --overwritevmfs
#Set the network to DHCP on the first network adapater, use the specified hostname and do not create a portgroup for the VMs
network --bootproto=dhcp --device=vmnic0 --addvmportgroup=0
#reboots the host after the scripted installation is completed
reboot
%firstboot --interpreter=busybox
#Add an extra nic to vSwitch0 (vmnic1)
esxcli network vswitch standard uplink add --uplink-name=vmnic1 --vswitch-name=vSwitch0
#Assign an IP-Address to the first VMkernel, this will be used for management
esxcli network ip interface ipv4 set --interface-name=vmk0 --ipv4=10.10.10.80 --netmask=255.255.255.0 --type=static
#Add VLAN80 Portgroup to vSwitch0 for VM traffic, assign it VLAN ID 80 and create a VMkernel interface
esxcli network vswitch standard portgroup add --portgroup-name=VLAN80 --vswitch-name=vSwitch0
esxcli network vswitch standard portgroup set --portgroup-name=VLAN80 --vlan-id=80
esxcli network ip interface add --interface-name=vmk1 --portgroup-name=VLAN80
#Set DNS and hostname
esxcli system hostname set --fqdn=hostname.domain.ca
esxcli network ip dns search add --domain=domain.ca
esxcli network ip dns server add --server=1.1.1.1
esxcli network ip dns server add --server=2.2.2.2
#Enable SSH and the ESXi Shell
vim-cmd hostsvc/enable_ssh
vim-cmd hostsvc/start_ssh
vim-cmd hostsvc/enable_esx_shell
vim-cmd hostsvc/start_esx_shell