Jump to content
pyrater

Looking to boot a .OVA (Virtual Box image)

7 posts in this topic Last Reply

Recommended Posts

Has anyone done this? Is it possible? If not is it possible to convert it to a .img and boot it that way?

 

I know that a OVA file is nothing more than a TAR file, containing the .OVF and .VMDK file.... So i am not sure the correct method to do this; and i REALLY do not want to rebuild this image from scratch.

 

Would it be as simple as the web describes?

 

$ tar xvf MyAppliance.ova

$ qemu-img convert -O qcow2 MyAppliance-disk1.vmdk MyAppliance.qcow2

 

Share this post


Link to post

Has anyone done this? Is it possible? If not is it possible to convert it to a .img and boot it that way?

 

I know that a OVA file is nothing more than a TAR file, containing the .OVF and .VMDK file.... So i am not sure the correct method to do this; and i REALLY do not want to rebuild this image from scratch.

 

Would it be as simple as the web describes?

 

$ tar xvf MyAppliance.ova

$ qemu-img convert -O qcow2 MyAppliance-disk1.vmdk MyAppliance.qcow2

 

If this is a Linux-based guest, it should be that simple.  If it's Windows, you'll have to follow some additional steps to load the virtual drivers as I demonstrate in this video with a VMWare Windows VM:

 

Share this post


Link to post

Thanx JonP ! I will post the steps that I used to this thread if successful for others.

 

Did you have any luck? I have ova file (Cisco virtual WLC) I'd like to run in unraid and have been using the virtual box plugin until recently when the plugin died.

Share this post


Link to post

The following two commands worked perfect for me. The only change I made is to output to a raw format as that was my desire for this workload.

 

$ tar xvf MyAppliance.ova
$ qemu-img convert -O raw MyAppliance-disk1.vmdk MyAppliance.img

 

I had need to boot an appliance that is only offered through an OVA format. Decompressed and converted the image with the commands above (using the proper names of course), then created a VM assigning no disks to it through the regular setup process, but editing other hardware as required. After that, I created the directory for the VM disk in my desired location and moved the converted raw image disk file over. I then edited the XML and added the disk using the following syntax, again, referencing the proper file names that I had chosen.

 

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/vms/MyApplianceName/vdisk1.img'/>
      <target dev='hdc' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>

 

Booted perfectly and seems to be working great. Thanks for getting me started with this thread! Hopefully this helps others as well.

Share this post


Link to post
On 5/15/2016 at 7:43 PM, Timbiotic said:

 

Did you have any luck? I have ova file (Cisco virtual WLC) I'd like to run in unraid and have been using the virtual box plugin until recently when the plugin died.

 

Did you ever get this done? I am attempting the same thing.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.