The OVF for cloudbase init does not get mounted and throws a "no drive with label ovf env could be found" error.
search cancel

The OVF for cloudbase init does not get mounted and throws a "no drive with label ovf env could be found" error.

book

Article ID: 382778

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

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 found
ERROR 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 load
ERROR 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_env
ERROR 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_path
ERROR 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_path
ERROR 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 found
ERROR cloudbaseinit.metadata.services.ovfservice
ERROR cloudbaseinit.init [-] No metadata service found: cloudbaseinit.exception.MetadataNotFoundException: No available service found

Environment

VMware Aria Automation 8.x

 

Cause

User data for the OVF service is not found.

Resolution

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=false
config_drive_cdrom=false
config_drive_vfat=false

 

Additional Information