When performing a Physical-to-Virtual (P2V) or Virtual-to-Virtual (V2V) conversion of a Linux Ubuntu 20.04 VM, the task fails at approximately 97% during the reconfiguration phase.
The following error is displayed in the VMware vCenter Converter Standalone GUI: FAILED: An error occurred during the conversion: 'std::exception Error: Unable to clone the volume mounted on '/var' from [hostname]
Reviewing the vmware-converter-worker.log or vmware-converter-helper.log reveals the following specific failure: InitrdNativePatcher failed to generate initrd image: /usr/lib/vmware-converter/initrdGenUbuntu.sh failed with return code: 1 mktemp: failed to create directory via template '/var/tmp/mkinitramfs_XXXXXX': No such file or directory
This issue occurs because the Ubuntu operating system's mkinitramfs tool, which is executed by the Converter to make the destination VM bootable, requires the /var/tmp directory to exist.
If the /var volume is intentionally excluded from the conversion job to save space or if there is a mount point conflict on the source (e.g., bind mounts) that prevents /var from being correctly mapped, the reconfiguration process cannot create the necessary boot files.
To ensure the conversion succeeds while still excluding large amounts of data:
/var is checked./var/lib/mysql, /var/log), but ensure the base /var directory and specifically /var/tmp are included.