I have a kickstart file I'm uisng tp install ESXi 5 and everything works as it should except for enabling vMotion. I have what I believe is the correct syntax to enable vMotion, but after the install, vMotion is not enabled. However, after the install, if I either use the GUI or type the same command below, vMotion is enabled and everything works just fine. I'm wondering why it is not enabled via the script though.
#CHANGE FOR EACH HOST INSTALL
esxcli network ip interface add --interface-name vmk1 --portgroup-name vMotion
esxcli network ip interface ipv4 set --interface-name vmk1 --ipv4 x.x.x.x--netmask x.x.x.x --type static
sleep 15s
#Enable vMotion
vim-cmd hostsvc/vmotion/vnic_set vmk1