Has anyone been successful at getting the ovftool to import an ova from the esxi 5.1 shell to the local host?
Background: I have a kickstart DVD install that installs esxi 5.1 then copies files to the local datastore1. extracts the vmware-ovftools to local datastore1 then executes a command ovftool <options> <source> <dest> I get an error: ovftool :not found Below is my actual script.
/vmfs/volumes/$(hostname -s)-datastore1/vmware-ovftool/ovftool --machineOutput --dm=thin --powerOn \
/vmfs/volumes/$(hostname -s)-datastore1/FILES/VCSA-5.1.ova --name=vCenter vi://root:password@localhost
Hi
Welcome to the communities.
Its working for me .
please share log files for better understanding.
Hey ,
Please check my script if it helps. It works very well on esxi host cli but not as post deployment kick start script.
# Gets ovftool
wget http://192.168.1.250/ovftool.tar.gz -O /vmfs/volumes/datastore1/vmware-ovftool.tar.gz
# Extracts OVF tool
tar -xzvf /vmfs/volumes/datastore1/vmware-ovftool.tar.gz -C /vmfs/volumes/datastore1/
# Gets OVA from remote apache server
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"
# Turns on VM
vim-cmd vmsvc/power.on $(vim-cmd vmsvc/getallvms | grep "openst" | awk '{print $1}')
Thanks
Kapil