Um rápido Google com o erro que você está recebendo ( Failed to deploy the OVF. The operation was cancelled by the user
) me leva a esta postagem o site Comunidades VMware.
Diz
Deleted *.mf file and change settings en OVF file
Failed to deploy OVF package: The task was canceled by a user.
How misleading. I, or any other user, certainly didn’t cancel the task. So what happened? I took a look through the (horrendous) hostd.log on the ESXi box and found absolutely nothing of any value.
Frustrated by the inability to redeploy a template I spent so long preparing, I broke open the OVA template and took a look inside. There were three files with different extensions:
- .ova - OVF descriptor, written in XML, which describes the hardware requirements
- .mf – contains SHA1 checksums of the .OVA and .VMDK
- .vmdk – the virtual hard disk for the virtual machine.
I immediately discarded the .mf. If you modify the .ova and don’t update the .mf, it’ll complain that the checksum is invalid. Removing this file seems to prevent vSphere from checking the checksums, which is useful, seeing as we want to poke around the .ova. After fiddling around inside the .ova, I stumbled across the following line:
<rasd:ResourceSubType>vmware.cdrom.iso</rasd:ResourceSubType>
Changing the above line, to read:
<rasd:ResourceSubType>vmware.cdrom.atapi</rasd:ResourceSubType>
Appears to have fixed my deployment issues. Perhaps changing the ‘CD Drive Device type’ in the virtual machine’s settings would’ve fixed it. But by that point, I had already exported the OVA and deleted the source virtual machine.
Hopefully someone will stumble across this one day, and it’ll save them a few hours!
Há também uma resposta logo abaixo daquilo que pode funcionar também, já que basicamente faz o mesmo antes de exportar a VM / vApp:
Before creating an OVA file, in vSphere right click on the VM, open Settings, click on CD/DVD drive, check if Device Type is selected as Datastore ISO. If so, select Client Device. Save settings by clicking OK. Export OVA file, and then deploy.