When building a template with Konvoy Image Builder (KIB) to be used to provision clusters with the cluster-api vsphere provider, a user with administrator privileges is required.
When the user configured does not comply with this requirement, the template building process will fail and the output will look similar to the one below, specifically the message “FAILED! => {"msg": "Missing sudo password"}”:
*********************************************************************
vsphere-clone: fatal: [default]: FAILED! => {"msg": "Missing sudo password"}
vsphere-clone:
vsphere-clone: PLAY RECAP *********************************************************************
vsphere-clone: default : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
vsphere-clone:
==> vsphere-clone: Provisioning step had errors: Running the cleanup provisioner, if present...
==> vsphere-clone: Power off VM...
==> vsphere-clone: Destroying VM...
Build 'vsphere-clone' errored after 1 minute 338 milliseconds: Error executing Ansible: Non-zero exit status: exit status 2
To correct the problem, please confirm that the user is added to the wheel group and a VM snapshot with that configuration is available.