-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Not so confident but I think this OVA doesn't work properly on later releases of vSphere (atm 8.0 u3)
It seems there is a problem with how it still (last update 2021 ... ) uses the VMwareGuestInfo
cloud-init datasource, which I believe is deprecated.
The mechanism I have figured out is that this OVA first executes /var/lib/vmware/ovf-to-cloud-init.sh
which is responsible of creating the userdata/metadata that is fed to cloud-init in the later phase (handled by systemd)
This script will evoke, ovf-rpctool set userdata "$encoded_userdata"
and ovf-rpctool set userdata.encoding "base64"
which I guess its suppose to configure the guestinfo.userdata
and metadata.
However during startup cloud-init doesn't find that userdata, and thus fails to configure anything.
/var/log/cloud-init.log
shows the following.
2024-11-14 20:57:18,725 - util.py[DEBUG]: Running command ['/usr/bin/vmware-rpctool', 'info-get guestinfo.metadata'] with allowed return codes [0] (shell=False, capture=True)
2024-11-14 20:57:18,729 - DataSourceVMwareGuestInfo.py[DEBUG]: No value found for key metadata
2024-11-14 20:57:18,729 - DataSourceVMwareGuestInfo.py[DEBUG]: loaded metadata {}
2024-11-14 20:57:18,729 - DataSourceVMwareGuestInfo.py[DEBUG]: Getting guestinfo value for key userdata
2024-11-14 20:57:18,729 - util.py[DEBUG]: Running command ['/usr/bin/vmware-rpctool', 'info-get guestinfo.userdata'] with allowed return codes [0] (shell=False, capture=True)
2024-11-14 20:57:18,731 - DataSourceVMwareGuestInfo.py[DEBUG]: No value found for key userdata
2024-11-14 20:57:18,731 - DataSourceVMwareGuestInfo.py[DEBUG]: Getting guestinfo value for key vendordata
2024-11-14 20:57:18,731 - util.py[DEBUG]: Running command ['/usr/bin/vmware-rpctool', 'info-get guestinfo.vendordata'] with allowed return codes [0] (shell=False, capture=True)
2024-11-14 20:57:18,733 - DataSourceVMwareGuestInfo.py[DEBUG]: No value found for key vendordata
Btw I get this permission error so it may be due to how no longer later vsphere versions don't allow to directly update this value.
root@localhost [ ~ ]# vmware-rpctool "info-set guestinfo.userdata aaa"
Permission denied