When automatically customizing openSUSE 15.2 guests under VMware vSphere 6.7 recently, I stumbled upon the famous “Guest Customization failed” issue (once again).
After eliminating the most common error (not having Perl installed which is necessary) I had a look at the VMware Compatibility Guide. Looks like openSUSE 15 is officially not supported under vSphere but only under the desktop hypervisors:
SUSE Linux Enterprise Server 15, which is technically comparable is supported on the other hand:
Changing the operating system type configured for the VM has no effect on the issue at all. Having a deeper look at the appropriate log file (/var/log/vmware-imc/toolsDeployPkg.log) listet the following issue:
INFO: Getting hostname DEBUG: Command '/sbin/uname -a' DEBUG: Result: DEBUG: Exit Code: -1 ERROR: Fatal error occured during customization !! Customization halted. ERROR: Error: Customization Failure !! Unknown distribution. at /var/run/.vmware-imgcust-d2asUMq/scripts/Customize.pl line 107. INFO: Return code is 255.
I compared two openSUSE and SLE 15 systems and spotted a difference between them regarding the file /etc/issue. openSUSE lists the following:
Welcome to \S - Kernel \r (\l).
While under SLE 15 the file has the following content:
SUSE Linux Enterprise Server 15
Changing the file content like for SLE 15 fixed the problem. Keep in mind that this is no official solution – even though openSUSE might become SLE upstream project in the future.
My expectation is that VMware realizes the changes between openSUSE and SLE and extends official support.