Sunday, February 12, 2012

Virtualbox - could not find a valid medium format for the target disk - vmdk.gz

I just ran into the following issue while importing a virtual appliance (.ova) to virtualbox.
Failed to import appliance /home/rene/Descargas/MusicBrainz NGS 2012-01-12.ova.
Could not find a valid medium format for the target disk '/home/rene/VirtualBox VMs/vm/musicbrainz-server-2012-01-12-disk1.vmdk.gz'.


The thing is that this appliance was generated by vmware with gzip compression enabled for the vmdk disk. I don't know whether there's another workaround, but it turns out that the .ova file is in fact a tar file so :

tar -xvf MusicBrainz\ NGS\ 2012-01-12.ova
gzip -d musicbrainz-server-2012-01-12-disk1.vmdk.gz

And you're all set.

Source:
http://itproctology.blogspot.com/2009/05/ovf-and-ova-dilemma.html
http://communities.vmware.com/thread/283650

7 comments:

  1. Thanks! I was having the same problem on the exact same file. :)

    ReplyDelete
    Replies
    1. Hello, you're welcome, happy to help. By the way, you just made my day...first comment in ages =-)

      Delete
  2. I am following the step-by-step instructions on "http://musicbrainz.org/doc/MusicBrainz_Server/Setup" for setting up the MusicBrainz server, but I cannot get past the step of installing the virtual appliance. I keep getting the same error:
    --------------------------------------------------
    Failed to import appliance / Volumes/Data
    Files 1/ Johns_Lion_ VM / MuslcBralnz_Appliance/MusicBrainz
    NGS 2012- 0 1-12.ova.
    Could not find a valid medium format for the target disk
    '/Users /johnschuster / VirtuaiBox VMs/vm//musicbrainz-
    server-20 12-01-12-disk1.vmdk.gz'

    Details:
    Result Code: VBOX_E_NOT_SUPPORT£0 (0x80BB0009)
    Component: Appliance
    Interface: lAppliance {305 9cf9e- 2Sc7 -4f0b-9fa5-3c42e4416 70b}
    ---------------------------------------------------------------

    My understanding is that the appliance should have the extension ".ovf" but my download from the MusicBrainz FTP sit has the extension ".ova"

    Robert Kaye suggested that rather than using Oracle's VirtualBox I should use VMware's . I downloaded the 30-day free trial but It doesn't seem to have the ability to import an appliance.

    So, I am basically back to the same problem.

    I am doing all of this using Mac OS 10.7.3 on Mac with these specifications;
    Model Name: Mac mini
    Model Identifier: Macmini3,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2 GHz
    Number of Processors: 1
    Total Number of Cores: 2
    L2 Cache: 3 MB
    Memory: 4 GB
    Bus Speed: 1.07 GHz
    Boot ROM Version: MM31.0081.B06
    SMC Version (system): 1.35f0
    Serial Number (system): YM9062WQ19Y
    Hardware UUID: 567C89AE-7BCE-55C9-BAEE-F97D9008573E

    Forum member "ichbinrene" made the following suggestion:

    The thing is that this appliance was generated by vmware with gzip compression enabled for the vmdk disk. I don't know whether there's another workaround, but it turns out that the .ova file is in fact a tar file so :

    1. tar -xvf MusicBrainz\ NGS\ 2012-01-12.ova
    2. gzip -d musicbrainz-server-2012-01-12-disk1.vmdk.gz

    I followed the steps suggested from "ichbinrene", but when I tried to import the virtual machine "musicbrainz-server-2012-01-12.ovf" I basically get the same error:

    Failed to import appliance /Volumes/Data Files1/MusicBrainz/musicbrainz-server-2012-01-12.ovf.

    Could not find a valid medium format for the target disk '/Users/johnschuster/VirtualBox VMs/vm/musicbrainz-server-2012-01-12-disk1.vmdk.gz'.

    Result Code: VBOX_E_NOT_SUPPORTED (0x80BB0009)
    Component: Appliance
    Interface: IAppliance {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}


    Assistance from anyone on this forum would be greatly appreciated. Thanks again to the help already given by Robert Kaye y gracias a "ichbinrene".

    --John Schuster--

    ReplyDelete
  3. Try creating a linux virtual machine from scratch (the ubuntu type, right?), then specify the file your extracted (musicbrainz-server-2012-01-12-disk1.vmdk ) as the virtual disk. The difference is that in this way you have to set up the machine parameters such as amount of memory, processor characteristics, etc, "by hand". The only issue I remember I had, is that you must enable IO APIC in the system tab for it to work. De nada!! Siempre es un gusto ayudar.

    ReplyDelete
  4. Dear ichbinrene, I'm not having very good luck installing a linux virtual machine with ubunto. I went to http://www.ubuntu.com/download/ubuntu/download and followed their instructions word for word. I ended up with a DVD from the bunto site with which I was supposed to be able to install linux. But when I inserted the DVD, I got the message "ubuntu - 11.10 - desktop no mountable file systems". I went though this process twice to make sure I wasn't making any errors. i don't know what to do next.

    Any ideas?

    ReplyDelete
  5. You got that wrong, I meant that when you create a new virtual machine from virtualbox you specify that the linux flavor you'll use is an ubuntu system, but you don't have to install ubuntu. You must specify in the virtual machine creation process that you don't want to create a virtual disk, that you have one already (the one you decompressed with the instructions of this blog entry). After setting that up and enabling IO APIC , start the virutal machine and your musicbrainz server should start up.

    ReplyDelete
  6. Thanks for your post here - was useful in getting to the root of the problem. You may be interested to know that there is a new test VM up (and updated instructions) at http://wiki.musicbrainz.org/MusicBrainz_Server/Setup which should avoid the need for this with the MusicBrainz VMs.

    ReplyDelete