1. create a image from the running physical machine
dd if=/dev/cciss/c0d0 of=/mnt/obelix05/automatix.raw
2. create a VM on the VM host with the appropriate settings
3. move the image to the VM host and replace the created VM image with the automatix.raw file
4. boot the VM with Knoppix or any other linux Live CD
4.1 Make sure your drive are unmounted first then from a terminal try:
mount -rw /dev/hda1 /mnt/hda1
replace hda1 with your drive and mount partition, you may need to specify filesystem type, sometimes its not needed, is so try
mount -rw /dev/hda1 /mnt/hda1 -t ext3
replace ext3 with your fs type
Then change permissions:
chown root:root -R /mnt/hda1
You can try ls -l to see if this has been successful, -R will change properties recursively if you have directories and
you can alter the group name as you wish
4.2 adjust the follwing informations in the mounted VM image
– mounts in /etc/fstab refer to virtual disk device (e.g. /dev/vda or sda)
– boot manager (grub) refers to the virtual disk device (e.g. /dev/vda or sda) – Edit /boot/grub/grub.conf
– You will also have to fix disk device in /boot/grub/device.map
– network interfaces scripts don’t refer to the NIC by a wrong MAC address – remove the entries in /etc/udev/rules.d/70-persistent-net.rules
more informtations : https://ask.fedoraproject.org/en/question/42990/p2v-physical-machine-to-virtual/