6 Replies Latest reply on Jun 17, 2009 5:31 AM by Eske

    OVFs from virtualbox

    Hot Shot



      This is a short writeup on what is needed to import OVF produced with VirtualBox 2.2.4 (and 2.2.2)




      You should tell VirtualBox to export in 0.9 format.




      By default it produce OVFs for vmx-06 so if you want to import this OVF into VMware vSphere 4 with esx 3.5.x and esx 4.0 hosts




      you will have to change this to either :




      <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType> (for a esx 4.0)








      <vssd:VirtualSystemType>vmx-04</vssd:VirtualSystemType> (for esx 3.5.x and 4.0 hosts)




      If you are using VMware OVF tool to convert it to a vmx for workstation you dont have to change this.










      Needed changes to import the OVF with VMware OVF tool.




      Change soundcard to non-required (esx boxes do not support virtual soundcards and  the hostresource value is not in the DMTF std for rasd elements)




      Change the rasd item to:




      <Item ovf:required="false">


      <rasd:Description>Sound Card</rasd:Description>










      of if you really need the soundcard to:




      <Item ovf:required="true">


      <rasd:Description>Sound Card</rasd:Description>
















      (Skip the next if you are converting to a vmx file (used for VMware workstation)) 




      Disks on IDE Controllers are only supported by newer VMware products so it will be a good idea to add the following to the OVF





      <rasd:Description>SCSI Controller</rasd:Description>










      and change the disk to point to this by changing the parent in the disk rasd element e.g.






      <rasd:Description>Disk Image</rasd:Description>
















      Will the VM work after the changes? That depends if your vm have driver for the scsi controller etc but atleast you can import it.










      Feel free to comment

        • 1. Re: OVFs from virtualbox
          alastairhm Lurker

          Thanks for the information.


          By exporting as 0.9 format and changing the sound card entry I was able to convert it with the OVFTool.


          The VMX create starts in the VMPlayer on my PC, although without keyboard or mouse support.

          I need to copy the converted files to our VM server to see if they will work running on that.




          Opened it on VMFusion on my Intel Mac, working better there, keyboard and mouse working so I was able to install the "VMWare Tools".


          Couple of points,


          CD/DVD drive didn't make it across the conversion so I had to add one.

          OS Type was flagged as "Other" so had to be manually corrected.

          • 2. Re: OVFs from virtualbox
            Hot Shot

            nice that it worked.


            If you are using VMware server 2.x you can use ovftool to import the OVF direct.




            By doing this you can also add an option about using sparse disks (and other goodies)




            The syntax for installing an ovf to VMware server




            ovftool path_to_ovf.ovf vi://USERNAME:PASSWORD@HOSTNAME:8333/




            if you do not provide a username/password you will be ask to type in a password or username.

            • 3. Re: OVFs from virtualbox
              alastairhm Lurker

              I've run the tool to directly import the OVF into the server, but I am still getting the issue where is doesn't think there is a keyboard or mouse attached.

              Any ideas? TIA

              • 4. Re: OVFs from virtualbox
                Hot Shot


                How is mouse and keyboard defined in the vm as PS2 devices or?



                After the import can you see if there is defined a mouse and keyboard in the VM configuration?






                I will take a closer look at how they are defined in virtualbox and report back when I have an idea of what's going on.









                • 5. Re: OVFs from virtualbox
                  alastairhm Lurker

                  I think they are defined as USB keyboard & mouse in the source VirtualBox VM.

                  I'll just do another conversion and import and see if they appear.

                  • 6. Re: OVFs from virtualbox
                    Hot Shot


                    ah ok, in Workstation (,server, and esx) they are defined as PS2 devices.



                    normally the OS inside the VM should be able to find out that new devices was attached. What OS was inside the VM?






                    I will try to play around with it a bit and see if I can work up a solution.