vCenter 6.x: Unable to deploy template

I ran into an error when importing an OVF template from one ESXi host to another. It turned out in my case that an attached IDE device, the CD-ROM drive, caused the problem. You can detach the CD-ROM drive and re-export the OVF template to resolve this, or you can edit the XML .ovf file and remove references to the problematic IDE device manually.