Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert a physical machine to virtual machine ?

user643648Jun 23 2008 — edited Sep 5 2008
Hi,

I'm confortable with Xen that I use for years, but with Oracle VM, there are some points that would need more explanation.

Here is what I already did :
- Create a disk file image, and make a filesystem on it. (with dd and mkfs.ext3)
- Copy all the content of my physical machine to the virtual disk image. (rsync -a)
- Create a vm.cfg file.

My problems :
- OVS use to create virtual disk image instead of virtual partition image. I don't know how to manage this. I'm using the image OVM_EL5U1_X86_64_PVM_10GB to understand how oracle encapsulated the /boot partition, the / and the swap within the same file that contains a partition table, 2 partitions : the first is the /boot, the second is a lvm pv. With lvm, they created 2 volumes : the / and the swap.
Where can I get a clear howto to use losetup and set the correct offset in order to be able to mount the partition or to activate the lvm ?

- I'm not familiar with pygrub. This looks very nice script, but I don't know why it doesn't work with my basic images. Is it necessary to have a /boot partition within the image file ?

Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2008
Added on Jun 23 2008
4 comments
4,106 views