Hello,
I am trying to deploy OVA on ESXi as part of post installation script but I am getting error when this script gets executed. I manually executed these lines in ESXi and they work well. Any one has any clue what can be wrong with this?
#Accept Eula
vmaccepteula
rootpw 12345678
network --bootproto=static --device=vmnic0 --ip=192.168.1.90 --netmask=255.255.255.0 --gateway=192.168.1.1
--nameserver=192.168.1.2
install --firstdisk --overwritevmfs
%post --interpreter=busybox
# Gets ovftool
wget http://192.168.1.250/ovftool.tar.gz -O /vmfs/volumes/datastore1/vmware-ovftool.tar.gz
# Exctracts OVFtool
tar -xzvf /vmfs/volumes/datastore1/vmware-ovftool.tar.gz -C /vmfs/volumes/datastore1/
# Deploys VM
sh /vmfs/volumes/datastore1/usr/lib/vmware-ovftool/ovftool --lax -dm=thin -ds=datastore1 "http://192.168.1.250/openst.ova" "vi://
root:12345678@192.168.1.90"
# Starts VM
vim-cmd vmsvc/power.on $(vim-cmd vmsvc/getallvms | grep "openst" | awk '{print $1}')
Thanks,
Kapil