Recently, we did encounter a problem while trying to customize RHEL8 based virtual machine on the vCenter 6.7 platform
From the above error, we could infer that there is a Perl module CPAN which is missing
CPAN module can be installed using the below command
dnf install cpan -y
For detailed instructions Click Here
Once done, Guest Customization works as expected.