4 Replies Latest reply: Dec 21, 2009 1:23 PM by Eske RSS

    Trying to convert VirtualBox OVF

    rproud Lurker

       

      I'm trying to convert an VirtualBox OVF that we had prepared to use in a ESX environment, but am recieving errors.  First off, I just want to make sure we are able to do this and secondly if anyone is able to help me resolve the errors.

       

       

      Initiall I received the following errors.  This is trying to do a conversion directly on the ovf I was given.

       

      E:\Documents and Settings\user\Desktop>ovftool debian-server-32bit.ovf debian-s
      erver-32bit.vmx
      Opening OVF source: debian-server-32bit.ovf
      Warning: No manifest file
      Opening VMX target: debian-server-32bit.vmx
      Error:
      - Line 8: Unsupported value 'http://www.vmware.com/specifications/vmdk.html#spa
      rse' for attribute 'format' on element 'Disk'.
      - Line 37: Unsupported element 'Description'
      - Line 45: Unsupported element 'Description'
      - Line 48: Unsupported element 'AllocationUnits'
      - Line 54: Unsupported element 'Description'
      - Line 57: Unsupported element 'ResourceSubType'
      - Line 58: Unsupported element 'Address'
      - Line 63: Unsupported element 'Description'
      - Line 66: Unsupported element 'AutomaticAllocation'
      - Line 67: Unsupported element 'AddressOnParent'
      - Line 74: Unsupported element 'ResourceSubType'
      - Line 75: Unsupported element 'AutomaticAllocation'
      - Line 76: Unsupported element 'Connection'
      - Line 81: Unsupported element 'Description'
      - Line 84: Unsupported element 'Address'
      - Line 89: Unsupported element 'Description'
      - Line 92: Unsupported element 'ResourceSubType'
      - Line 93: Unsupported element 'AutomaticAllocation'
      - Line 94: Unsupported element 'AddressOnParent'
      - Line 99: Unsupported element 'Description'
      - Line 102: Unsupported element 'HostResource'
      - Line 103: Unsupported element 'Parent'
      - Line 104: Unsupported element 'AddressOnParent'
      - Line 109: Unsupported element 'Description'
      - Line 112: Unsupported element 'AutomaticAllocation'
      - Line 113: Unsupported element 'Parent'
      - Line 114: Unsupported element 'AddressOnParent'

       

      After this I tried importing into VirtualBox and then exporting will checking the use Legacy OVF setting.  Which resulted in the following error:

       

      E:\Documents and Settings\user\My Documents>ovftool "Debian Server (32bit).ovf"
      ian-server-32bit.vmx
      Opening OVF source: Debian Server (32bit).ovf
      Opening VMX target: ian-server-32bit.vmx
      Error:
      - Line 82: OVF hardware element 'ResourceType' with instance ID '7': No support
      for the virtual hardware device type '35'.

       

        • 1. Re: Trying to convert VirtualBox OVF
          Hot Shot

          Hi.

           

          We have a tread that try to highlight some of the changes that needed: http://communities.vmware.com/thread/214231?tstart=30

           

          The problem is that virtualbox produce OVFs that are between OVF 0.9 and OVF 1.0 and when ovftool try to parse them it fails because it fails outside

          either of the two formats. We are in the process of file some bugs for virtualbox but also add a lax option, to make ovftool more forgiving when parsing OVFs.

           

          I have made a quick list of what's needed to make a virtualbox ovf parse in ovftool.

          - sort all RASD elements alphabetic.

          - add a virtual hardware <vssd:VirtualSystemType>vmx-07, vmx-04</vssd:VirtualSystemType>

          - the need to ignore some hardware devices as soundcard as they are not supported on esx. The best way is to just remove them if they are not needed by the vm.

           

          please report back if non of this helped.

          • 2. Re: Trying to convert VirtualBox OVF
            rproud Lurker

             

            I just want to clear before I start messing around with things, using the following example:

             

             

                   &lt;Item&gt;

                    &lt;rasd:Caption&gt;1 virtual CPU&lt;/rasd:Caption&gt;

                    &lt;rasd:ElementName&gt;1 virtual CPU&lt;/rasd:ElementName&gt;

                    &lt;rasd:Description&gt;Number of virtual CPUs&lt;/rasd:Description&gt;

                    &lt;rasd:InstanceID&gt;1&lt;/rasd:InstanceID&gt;

                    &lt;rasd:ResourceType&gt;3&lt;/rasd:ResourceType&gt;

                    &lt;rasd:VirtualQuantity&gt;1&lt;/rasd:VirtualQuantity&gt;

                  &lt;/Item&gt;

             

             

            Do I swap elementname and description.  Or am I sorting the items based on the elementname.  Or is it something else entirely.

             

             

            • 3. Re: Trying to convert VirtualBox OVF
              rproud Lurker

               

              Well I went ahead and did it.  Most of the errors were resolved, but it is still choking on this last one.  I didn't see any directions in the thread you linked.

               

               

               

               

               

              - Line 8: Unsupported value 'http://www.vmware.com/specifications/vmdk.html#sparse' for attribute 'format' on element 'Disk'.

               

               

              • 4. Re: Trying to convert VirtualBox OVF
                Hot Shot

                ahh sorry forgot about this. it should read:

                 

                ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized"

                 

                 

                eske