Location: Oracle VM

Discussion: Convert VMware image to Oracle VM imageReported This is a featured thread

Showing 1 - 12 of 12  |  Show  posts at a time
FlorinPop
FlorinPop
Convert VMware image to Oracle VM image
Nov 16 2007, 3:05 PM EST | Post edited: Nov 16 2007, 3:05 PM EST
Is it possible to convert an existing VMware image (OEL5 or Win XP) into an Oracle VM image? If affirmative which are the steps? 3  out of 7 found this valuable. Do you?    

wcoekaer
1. RE: Convert VMware image to Oracle VM image
Nov 16 2007, 3:50 PM EST | Post edited: Nov 16 2007, 3:50 PM EST
Yes, on the server CD we have qemu-img which you can use. we will put up a wiki for this soon
basically you can copy over the vmware disk and the config file and then create a new vm.cfg file and then convert the disk image using qemu-img
8  out of 12 found this valuable. Do you?    
FlorinPop
FlorinPop
2. RE: Convert VMware image to Oracle VM image
Nov 16 2007, 5:12 PM EST | Post edited: Nov 16 2007, 5:12 PM EST
Thanks for the prompt answer. I will give it a try next week.

Now I am thinking at another scenario: is it possible to migrate an entire system(OEL5/XP), including OS, programs, files ... to an Oracle VM without losing any data or reinstalling any software?
0  out of 2 found this valuable. Do you?    

bjrsousa
3. RE: Convert VMware image to Oracle VM image
Nov 17 2007, 9:53 AM EST | Post edited: Nov 17 2007, 9:53 AM EST
Hello,

Perhaps the best way, to acomplish it , is to do a full migration from vmware VM to the Oracle (XEN) VM.
A point of start could be http://wiki.xensource.com/xenwiki/VMDKImage

Have fun ;)
0  out of 4 found this valuable. Do you?    
FlorinPop
FlorinPop
4. RE: Convert VMware image to Oracle VM image
Nov 17 2007, 11:35 AM EST | Post edited: Nov 17 2007, 11:35 AM EST
Thanks Bruno, but I think your answer applies to my initial question. In the second one I was thinking if it is possible and how can I make a VM image from a real installation(OEL5, Oracle DB 10.2.0.3, APEX, and so on) that I have directly on hardware, so that I will be able to install OVM on the same machine and then to run the previous server installation as a VM in Oracle VM. Is this scenario science fiction? :) 0  out of 2 found this valuable. Do you?    

bjrsousa
5. RE: Convert VMware image to Oracle VM image
Nov 18 2007, 9:53 AM EST | Post edited: Nov 18 2007, 9:53 AM EST
Hi Florin,
It's possible indeed , but it's a rather tricky task.
Anyway, you may take a look in http://docs.xensource.com/XenServer/4.0.1/guest/ch04s03.html and http://docs.xensource.com/XenServer/4.0.1/guest/ch02s04.html

Have fun ;)
2  out of 5 found this valuable. Do you?    

wcoekaer
6. RE: Convert VMware image to Oracle VM image
Nov 18 2007, 1:06 PM EST | Post edited: Nov 18 2007, 1:06 PM EST
so we need to put up a script for you but basically :
copy the vmdk file and the text file of the vm description to your vmserver
put it in /OVS/running_pool/<somenameyouwant>
then do
qemu-img myvmwaredisk.vmdk -O raw system.img
then look at a vm.cfg and edit it so that you put the file:/OVS/running_pool/<somenameyouwant>/system.img in there as disk
and change vcpus and memory to what you wanted it to be

can you try ?
7  out of 9 found this valuable. Do you?    

sergio_oracle
7. RE: Convert VMware image to Oracle VM image
May 15 2008, 9:51 PM EDT | Post edited: May 15 2008, 9:51 PM EDT
Note, you need to use the convert command in the qemu-img syntax

# qemu-img convert rhel.vmdk -O raw system.img
6  out of 7 found this valuable. Do you?    

murthybsn
8. RE: Convert VMware image to Oracle VM image
Aug 5 2008, 6:47 PM EDT | Post edited: Aug 5 2008, 6:47 PM EDT
Hi,

I am trying to move ubuntu VMWare image to Oracle VM. I followed the above procedure to create the raw image (Xen source) , placed the image file in /OVS/shared_pool. I changed the vm.cfg to point to this file and modified memory setting. I am coming across the following error while starting the vm after importing.

failed:<Exception: return=>failed:<Exception: xm create '/OVS/running_pool/Ubuntu/vm.cfg'=>Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n') >>

Seems the Xen image doesn't contain the boot loader. Is there anything I am missing here? How can I get this working?

Is there a better way of transporting the image?

Thanks,
Murthy
0  out of 2 found this valuable. Do you?    
honglinsu
honglinsu
9. RE: Convert VMware image to Oracle VM image
Nov 27 2008, 12:41 AM EST | Post edited: Nov 27 2008, 12:41 AM EST
Oracle VM Manager allows you to import both Oracle VM virtual machines and VMware virtual machines in the VMDK format. When you import VMware virtual machines, Oracle VM Manager converts them to Oracle VM virtual machines automatically. When importing a VMware virtual machine, make sure you have enough free disk space to convert the VMware virtual machine to an Oracle VM virtual machine. Oracle VM requires at least twice the disk space of the VMware virtual machine under /OVS/running_pool directory because it will copy the original VMDK image as well as create a new Oracle VM image.
To import VMware VMDK images using Oracle VM Manager, follow the same process you would to import any other virtual machine image resource, generally from an external source (HTTP or FTP location), using the Import wizard. Or you can copy the VMDK image files manually into /OVS/running_pool directory. Oracle VM will automatically detect that the image is in the VMDK format and convert the image file to an Oracle VM format and deploy it to the specified Server Pool.
2  out of 2 found this valuable. Do you?    

khushi_pran
10. RE: Convert VMware image to Oracle VM image
Sep 8 2009, 4:36 PM EDT | Post edited: Sep 8 2009, 4:36 PM EDT
Hey Honglin,

I have manually copied all the files from ESX server database to Oracle VM - /OVS/running pool/ directory in the directory 'vmware'.
After this as you say in the above thread that just importing the image from manager should work well - but it does not-

In the manager - it does not show up any name - for 'Virtual Machine Image Name ' tab.
What is that I'm missing.
Do you find this valuable?    
honglinsu
honglinsu
11. RE: Convert VMware image to Oracle VM image
Sep 9 2009, 11:02 PM EDT | Post edited: Sep 9 2009, 11:02 PM EDT
You can watch a brief flash demo to see the steps to converting a VMware image to Oracle VM. http://oss.oracle.com/oraclevm/demo/v2vwindowsxp.swf

Please refer to the following resources:
* White paper: Converting Linux and Windows Physical and Virtual Machines to Oracle VM Virtual Machines http://www.oracle.com/technologies/virtualization/docs/p2v-whitepaper.pdf

* Blog: Migrating a VMWare Server 2 Windows 2003 guest to Oracle VM, http://blogs.oracle.com/simonthorpe/2009/07/migrating_a_vmware_server_2_wi.html
Do you find this valuable?    

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)