An image of a physical server can be made and imported to your hypervisor. There a huge suite of tools that do this per Root Loop's answer. This is a good summary:
https://en.wikipedia.org/wiki/Physical-to-Virtual
Of course, in production, you typically want to keep software the same. It would be helpful to know what type of migration you require as well as what technologies you will be utilizing.
Edit: It is difficult to isolate operating data that any application needs vs OS system files. This is the main concern when you attempt a P2V migration. If you have a suite of tools that you can bundle where only your data changes, look into a container tech.