Virtualizing a physical Linux machine

open linux live CD, backup the partition to image

# dd if=/dev/sdxx of=/media/mounted_external_drive/image_of_sda.img

new a virtual disk and use linux description, and

open the live CD restore the image to virtual disk

# dd if=/media/mounted_external_drive/image_of_sda.img of=/dev/sdxx

after covert:

re-install grub2 using a Live CD, you’d need to:

Mount your / at /mnt/sysimage

# grub2-install –root-directory=/mnt/sysimage /dev/sdxx

# grub2-install –recheck /dev/sdxx