Do you mean migrate a physical Linux server to a VMware VM? There is/was a tool called p2v converter that can image a physical server to a VM. No idea how well it is supported these days but I've used it in the past for this purpose when I was dealing with "kittens vs cattle".
[Edit] It appears they removed it from downloads due to some security bug. [1] I imagine you may still be able to find it somewhere in their forums or open a ticket and tell them you accept all risk.
[1] - https://blogs.vmware.com/vsphere/2022/02/vcenter-converter-u...