I'm trying to convert a recently updated physical Debian to a virtual machine, but the process halts at 98% giving me an error that I'll include at the end of the post.
From the error I deduced that for some reason the converter expects some modules to be at /lib/ but in reality those modules have been moved to /lib/i386-linux-gnu. I expect this was done by the system when it was updated a few weeks ago and, as I understand it, it was done to better support 32-bit and 64-bit applications.
Now I'd like to ask if there is a way to either make the VMWare Converter Standalone use the right directory, if I can use a symbolic link to connect /lib to /lib/i386-linux-gnu or if it's safe to copy all of the modules inside the new directory to /lib while the conversion process is underway?
[EDIT] I have taken multiple successfull virtual copies of this specific machine before the system update took place.
[EDIT2] Despite the error the converted machine seems to work and the modules can be found from the virtual machine.
[EDIT3] I made a post in VMWares own forums about this problem and they said the problem is that VConverter does not support debian and is mistakenly set as "other linux" in one place. Here is the reply defining the problem:
I've checked the code. There is one place Debian is not recognized as a separate distro; it then is set as 'other linux' which causes the wrong reconfig. This is actually not a bug because Debian is not supported anyway. You mention the vm works. As the wise father said to his son asking "why does the sun shine?" - "if it works, don't touch it" :-) But if you really-really want to tweak it - create a file 'etc/lsb-release', write 'Ubuntu ' and a fictitious version in it (e.g. 16.04) and convert again to see what will happen.
After this I tried to create the /etc/lsb-release file, but that didn't help.
FAILED: An error occurred during the conversion: ' * Looking for deps of module scsi_mod * * Looking for deps of module sd_mod * * Looking for deps of module mptspi * * Looking for deps of module mptscsih * * Looking for deps of module BusLogic * * Looking for deps of module ahci * * Looking for deps of module ide-disk * Cannot find in 4.9.0-6-686-pae module ide-disk * Looking for deps of module pcnet32 * fstab file is /mnt/p2v-src-root/etc/fstab * found root filesystem type as ext3 * Looking for deps of module ext3 * Cannot find in 4.9.0-6-686-pae module ext3 * found root filesystem mount options as errors=remount-ro * processed root filesystem mount options are errors=remount-ro * busybox mount options are * new root will not be mounted as read-only * printing module list: * /mnt/p2v-src-root/lib/modules/4.9.0-6-686-pae/kernel/drivers/scsi/scsi_mod.ko * /mnt/p2v-src-root/lib/modules/4.9.0-6-686-pae/kernel/drivers/scsi/sd_mod.ko * /mnt/p2v-src-root/lib/modules/4.9.0-6-686-pae/kernel/drivers/message/fusion/mptspi.ko * /mnt/p2v-src-root/lib/modules/4.9.0-6-686-pae/kernel/drivers/message/fusion/mptscsih.ko * /mnt/p2v-src-root/lib/modules/4.9.0-6-686-pae/kernel/drivers/scsi/BusLogic.ko * /mnt/p2v-src-root/lib/modules/4.9.0-6-686-pae/kernel/drivers/ata/ahci.ko * /mnt/p2v-src-root/lib/modules/4.9.0-6-686-pae/kernel/drivers/net/ethernet/amd/pcnet32.ko * got lib dir as lib * /mnt/p2v-src-root/lib/libc.so.6 -> /mnt/p2v-src-root/tmp/initrd.ZFby2e/lib * /mnt/p2v-src-root/lib/libm.so.6 -> /mnt/p2v-src-root/tmp/initrd.ZFby2e/lib ERROR: cannot find source file /mnt/p2v-src-root/lib/libm.so.6 during file copy (return code 1)'