6 Replies Latest reply on Feb 27, 2012 3:14 PM by GerVerheijen

    Import vmdk into Oracle VM Manager 3.0.2

    GerVerheijen
      Hi,

      Can someone please tell me how I can import a vmware virtual machine into Oracle VM Manager 3.0.2

      Thanks
      Ger
        • 1. Re: Import vmdk into Oracle VM Manager 3.0.2
          Sebastian Solbach -Database Community-Oracle
          Hi,

          http://blogs.oracle.com/virtualization/entry/migrating_from_hyper_v_and

          another option is to use:

          http://www.mogilowski.net/lang/en-us/2010/11/30/vmware-open-virtualization-format-tool/

          Regards
          Sebastian
          • 2. Re: Import vmdk into Oracle VM Manager 3.0.2
            GerVerheijen
            Hi,

            I have exported the vmware VM and places it in Assemblies
            When I try to create a template for it it does not show any names in "Assemebly Virtual Machines"

            "Refresh Selected Assembly" give the follwoing errors in /var/log/ovs-agent.log :

            [root@nldvnr01ovms01 ~]# [2011-11-24 23:38:02 15867] DEBUG (OVSServices:57) dispatch function get_assembly_config to server https://oracle:******@13.206.238.171:8899/api/1
            [2011-11-24 23:38:03 15868] DEBUG (OVSCommons:124) get_assembly_config: ('0004fb000003000058271d4af7a471b2', 'nldvnr01ux021')
            [2011-11-24 23:38:03 15868] ERROR (OVSCommons:143) catch_error: Cannot find OVF descriptor file.
            Traceback (most recent call last):
            File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
            return func(*args)
            File "/opt/ovs-agent-3.0/vm.py", line 966, in get_assembly_config
            ovf_filename = find_ovf_descriptor(unpacked_path)
            File "/opt/ovs-agent-3.0/vm.py", line 948, in find_ovf_descriptor
            raise RuntimeError('Cannot find OVF descriptor file.')
            RuntimeError: Cannot find OVF descriptor file.
            [2011-11-24 23:38:03 15867] ERROR (OVSServices:61) dispatch error: get_assembly_config: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
            [2011-11-24 23:38:03 15867] ERROR (OVSCommons:143) catch_error: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
            Traceback (most recent call last):
            File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
            return func(*args)
            File "/opt/ovs-agent-3.0/OVSServices.py", line 59, in dispatch
            return getattr(sp, func)(*args)
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1099, in __call__
            return self.__send(self.__name, args)
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1386, in __request
            verbose=self.__verbose
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1150, in request
            return self._parse_response(h.getfile(), sock)
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1289, in parseresponse
            return u.close()
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 746, in close
            raise Fault(**self._stack[0])
            Fault: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>



            What's wrong ?

            Hope someone can help me.

            Thanks,
            Ger
            • 3. Re: Import vmdk into Oracle VM Manager 3.0.2
              GerVerheijen
              Next try :

              Imported the ova file : Success
              When I try to create a template from the assembly I get error :

              Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.JobFailureException: OVMAPI_5001E Job "1322503684218" Failed due to failure "(11/28/2011 07:08:30:463 PM)
              Async operation failed on server: nldvnr01ovms01.
              Object: cfgFile_0004fb0000140000f72e4e401bf5808c,
              PID: 27435,
              Server error message: Assembly deploy failed: Command: cat /OVS/Repositories/0004fb00000300009d49bb4b10a94236/Assemblies/0004fb00115602b/unpacked/nldvnr01ux021-disk2.vmdk | vbox-img convert --stdin --srcformat vmdk --dstfilename /OVS/Repositories/0004fb00000300009d49bb4b10a94236/VirtualDisks/aca8e1e9-4c75-4810-9b83-73b3f0dcc426.img --dstformat raw failed (1): Converting image "stdin" with size 12884901888 bytes (12288MB)...
              vbox-img: error: Error while copying the image: VERR_VD_VMDK_INVALID_STATE
              cat: write error: Broken pipe


              Can someone please help
              • 4. Re: Import vmdk into Oracle VM Manager 3.0.2
                Avi Miller-Oracle
                898497 wrote:
                vbox-img: error: Error while copying the image: VERR_VD_VMDK_INVALID_STATE
                Make sure you have no VMware snapshots inside that VMDK. The convertor can't convert a disk with snapshots.
                • 5. Re: Import vmdk into Oracle VM Manager 3.0.2
                  GerVerheijen
                  The exported VM did NOT have snapshots when I created the OVA file.

                  Here's some info I got from vbox-img info :

                  [root@nldvnr01ovms01 unpacked]# vbox-img info --filename /OVS/Repositories/0004fb00000300009d49bb4b10a94236/Assemblies/0004fb00115602b/unpacked/nldvnr01ux021-disk2.vmdk
                  --- Dumping VD Disk, Images=1
                  Dumping VD image "/OVS/Repositories/0004fb00000300009d49bb4b10a94236/Assemblies/0004fb00115602b/unpacked/nldvnr01ux021-disk2.vmdk" (Backend=VMDK)
                  Header: Geometry PCHS=0/16/63 LCHS=0/0/0 cbSector=25165824
                  Header: uuidCreation={7ced08ba-d127-451b-b1d5-0917ab1e83d9}
                  Header: uuidModification={3e642e95-a6a2-4dd1-9b32-ee451504f7a3}
                  Header: uuidParent={00000000-0000-0000-0000-000000000000}
                  Header: uuidParentModification={a69cbecf-395d-41b4-9b8a-466b40b2e9ca}
                  [root@nldvnr01ovms01 unpacked]# vbox-img info --filename /OVS/Repositories/0004fb00000300009d49bb4b10a94236/Assemblies/0004fb00115602b/unpacked/nldvnr01ux021-disk1.vmdk
                  --- Dumping VD Disk, Images=1
                  Dumping VD image "/OVS/Repositories/0004fb00000300009d49bb4b10a94236/Assemblies/0004fb00115602b/unpacked/nldvnr01ux021-disk1.vmdk" (Backend=VMDK)
                  Header: Geometry PCHS=0/16/63 LCHS=0/0/0 cbSector=31457280
                  Header: uuidCreation={0a760d0b-7cb8-493c-841f-234844d137c8}
                  Header: uuidModification={3f66e040-f8bc-4db7-9d09-ebb460dbf56a}
                  Header: uuidParent={00000000-0000-0000-0000-000000000000}
                  Header: uuidParentModification={0b613d27-0269-4f86-b9fa-a78195bc4a13}
                  [root@nldvnr01ovms01 unpacked]#


                  Ger

                  Edited by: 898497 on 29-nov-2011 0:25
                  • 6. Re: Import vmdk into Oracle VM Manager 3.0.2
                    GerVerheijen
                    Found the solution myself.

                    booted the VMware Solaris Virtual Machine with the Oracle VM Server 3.0.3 CD.
                    booted the p2v utility as described in http://docs.oracle.com/cd/E26996_01/e18549.pdf
                    and then imported the template.

                    After some reconfiguration of the devices and grub I managed to start the Solalris 10 VM on Oracle VM Server