We are trying to implement cloudbase init on windows and running into an issue where the OVF does not get mounted as part of the startup procedure.
We used the instructions provided here Windows Automation Assembler image for vSphere
The log just throws out a generic error "no drive with label ovf env could be found" such as:
ERROR cloudbaseinit.metadata.services.ovfservice [-] No drive with label OVF ENV could be found: cloudbaseinit.metadata.services.base.NotExistingMetadataException: No drive with label OVF ENV could be foundERROR cloudbaseinit.metadata.services.ovfservice Traceback (most recent call last):ERROR cloudbaseinit.metadata.services.ovfservice File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\ovfservice.py", line 42, in loadERROR cloudbaseinit.metadata.services.ovfservice self._get_ovf_env()ERROR cloudbaseinit.metadata.services.ovfservice File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\ovfservice.py", line 74, in _get_ovf_envERROR cloudbaseinit.metadata.services.ovfservice ovf_env_path = self._get_ovf_env_path()ERROR cloudbaseinit.metadata.services.ovfservice ^^^^^^^^^^^^^^^^^^^^^^^^ERROR cloudbaseinit.metadata.services.ovfservice File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\ovfservice.py", line 62, in _get_ovf_env_pathERROR cloudbaseinit.metadata.services.ovfservice drive_path = self._get_config_drive_path()ERROR cloudbaseinit.metadata.services.ovfservice ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR cloudbaseinit.metadata.services.ovfservice File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\ovfservice.py", line 56, in _get_config_drive_pathERROR cloudbaseinit.metadata.services.ovfservice raise base.NotExistingMetadataException(ERROR cloudbaseinit.metadata.services.ovfservice cloudbaseinit.metadata.services.base.NotExistingMetadataException: No drive with label OVF ENV could be foundERROR cloudbaseinit.metadata.services.ovfserviceERROR cloudbaseinit.init [-] No metadata service found: cloudbaseinit.exception.MetadataNotFoundException: No available service found
VMware Aria Automation 8.x
User data for the OVF service is not found.
Solution 1:
Check the vSphere configuration as the CD-ROM is likely not correctly configured and is preventing the VM to get OVF properties from the ISO image.
Enable CDROM client-device in Passthrough mode.
Make sure that the correct CDROM type is selected, e.g. Client Device, not datastore:
Solution 2:
If the issue continues after adding the CD-ROM as recommended, please change these lines in your "cloudbase-init-unattend.conf" and "cloudbase-init.conf" files:config_drive_raw_hhd=falseconfig_drive_cdrom=falseconfig_drive_vfat=false