HP OneView for VMware vCenter User Guide (7.4)

B Creating a custom build plan
When using the enhanced deployment option to grow a cluster, a custom build plan is required.
Use the following procedure to create a custom build plan for growing a cluster.
1. Log in to HP Insight Control Server Provisioning.
2. Select Configuration Files from the DEPLOYMENT options.
3. Select the Kickstart configuration file to modify, and then select Save as in the Actions menu.
4. Enter a valid name for the new Kickstart file, and then click OK.
5. Select the new Kickstart file, and then select Edit in the Actions menu.
6. Add the following lines to the Kickstart file. These lines must be added before the ##
post-install script line as shown in Figure 21 (page 150). This script can be used for
ESXi version 5.0 and above.
## IC4VC custom values
%firstboot
VMNIC=$(esxcli network nic list | grep -i @mgmt_mac_address@ | awk -F " " '{ print $1 }')
esxcli network vswitch standard uplink remove --uplink-name=vmnic0 --vswitch-name=vSwitch0
esxcli network vswitch standard uplink add --uplink-name=$VMNIC --vswitch-name=vSwitch0
esxcli network ip interface ipv4 set --interface-name=vmk0 --ipv4=@ip_address@ --netmask=@net_mask@
--type=static
esxcli network ip route ipv4 add --gateway @gate_way@ --network default
esxcli network ip dns server remove --server "" -a
esxcli network ip dns server add --server @primary_dns_server@
esxcli network ip dns server add --server @alternate_dns_server@
esxcli system hostname set --host @host_name@ --domain @domain_name@
# If vlan tagging is not used then vlan_id value should be 0 # A vlan_id of 0 disables vlan_tagging in
ESX and causes Mgmt to use interface of vswitch
esxcli network vswitch standard portgroup set --portgroup-name "Management Network" --vlan-id @vlan_id@
services.sh restart
149