Hi everynone, I am new to ESXI and I am build and ESXi appliance. During the proccess I convert a qcow2 to vmdk, then send it to ESXi and run vmkfstools over to create a thin disk image.
After creating disk I try to create VM using ovetool with the provide vmdk and ovf - created from a template using the following command.
ovftool --noSSLVerify --skipManifestCheck --X:logFile=ovftool.log --X:logLevel=verbose -n=vmtest -ds=datastore1 "https://<esxi_ip>/folder/vmtest.ovf?dcPath=ha-datacenter&dsName=datastore1" vi://<esxi_user>:<esxi_password>@<esxi_ip>
Results:
Opening VI target: vi://<esxi_user>@<esxi_ip>:443/
Deploying to VI: vi://<esxi_user>@<esxi_ip>:443/
Disk progress: 100%
Failed to transfer file [vmtest-0.vmdk] to host [10.127.82.130] (response code:500)
Other test I made was to download the OVA for owncloud to see if the problem was the ovftool command. For this test, I extracted the ovf/vmdk from OVA, uploaded to an ESXi datastorage and ran the same ovftool command. Just changing the ovf file name and datastorage names.
Results:
ovftool --acceptAllEulas --noSSLVerify --skipManifestCheck --X:logFile=ovftool.log --X:logLevel=verbose -n=owncloud -ds=DataStorage "https://<esxi_ip>/folder/UCS-ESX.ovf?dcPath=ha-datacenter&dsName=DataStorage" vi://<esxi_user>:<esxi_password>@1<esxi_ip>
Enter login information for source https://<esxi_ip>/folder/
Username: <esxi_user>
Password: ************
Opening OVF source: https://<esxi_ip>/folder/UCS-ESX.ovf
Opening VI target: vi://<esxi_user>@<esxi_ip>:443/
Warning:
- Line 121: Unable to parse 'enableMPTSupport' for attribute 'key' on element 'Config'.
Deploying to VI: vi://<esxi_user>@<esxi_ip>:443/
Transfer Completed
Completed successfully
Also created a VM manually and then attched the disk to the VM and it works without any issue. Not sure what could be wrong in the ovf I provide or it's some permission issue.
Thanks for the help
Moderator: Moved to OVFTool Discussions