VirtualBox

Ticket #7982 (new defect)

Opened 7 years ago

Last modified 5 days ago

OVA file made with VirtualBox 4.0 can't be read by VMware ovftool

Reported by: znmeb Owned by:
Priority: major Component: OVF
Version: VirtualBox 4.0.0 Keywords: VMware
Cc: Guest type: Linux
Host type: Linux

Description

I created a 32-bit openSUSE 11.3 virtual machine using VirtualBox 4.0.0 on a 64-bit openSUSE 11.3 host. The machine works fine. I then exported it to an OVA file using the Export wizard, which did not report any errors. But when I try to read it into VMware using VMware's "ovftool" conversion utility, "ovftool" reports an error:

znmeb@AlgoCompSynth:~/VirtualBox> ovftool Project\ Kipling.ova . Opening OVA source: Project Kipling.ova Opening VMX target: . Error: OVF Package is not supported by target:

  • Line 25: Unsupported hardware family 'virtualbox-2.2'.

I've attached the XML 'ovf' file - it is indeed calling this a 'virtualbox-2.2' machine, which the VMware tools apparently do not support. I haven't checked the VMware documents yet to see what they do support, but I can do that if you don't have that filed away somewhere.

Attachments

Project Kipling.ovf Download (11.8 KB) - added by znmeb 7 years ago.
OVF file created by VirtualBox 4.0.0

Change History

Changed 7 years ago by znmeb

OVF file created by VirtualBox 4.0.0

comment:1 Changed 7 years ago by Technologov

Added myself as CC.

-Technologov

comment:2 Changed 7 years ago by poetzsch

Please make sure you use the latest version of ovftool. I just tried your ovf with ovftool 2.0.1 and it works without problems.

comment:3 Changed 7 years ago by znmeb

I've got ovftool 2.0.1 as well.

znmeb@AlgoCompSynth:~/Documents> ovftool --version
VMware ovftool 2.0.1 (build-260188)
znmeb@AlgoCompSynth:~/Documents> ovftool Project\ Kipling\ VirtualBox.ova 
Opening OVA source: Project Kipling VirtualBox.ova
OVF version:   1.0
Name:          Project Kipling VirtualBox

Download Size:        0 bytes

Deployment Sizes:
  Flat disks:         0 bytes
  Sparse disks:   Unknown
Networks:
  Name:        NAT
  Description: Logical network used by this appliance.

Virtual Hardware:
  Family:       virtualbox-2.2

Warning: No manifest file
Completed successfully
znmeb@AlgoCompSynth:~/Documents> ovftool Project\ Kipling\ VirtualBox.ova .
Opening OVA source: Project Kipling VirtualBox.ova
Opening VMX target: .
Error: OVF Package is not supported by target:
 - Line 25: Unsupported hardware family 'virtualbox-2.2'.
Last edited 6 years ago by frank (previous) (diff)

comment:4 Changed 7 years ago by leonbnu

I have exactly the same problem.

comment:5 Changed 7 years ago by valve

ovftool has a --lax commandline option which turns errors into warnings.

comment:6 Changed 6 years ago by stevet

Issue still present in Virtualbox 4.1.8 and using ovftool 2.1. The --lax workaround still functions.

comment:7 follow-up: ↓ 8 Changed 6 years ago by diegows

Same problem here.

I've change this line with the problem to:

<vssd:VirtualSystemType>vmx-06</vssd:VirtualSystemType>

And works.

Regards,

Diego

comment:8 in reply to: ↑ 7 Changed 5 years ago by Attila123

I tried to change this VirtualSystemType. I am not yet familiar with ovftool, but using vSphere client with ESXi 4.1. Just for the record, with File -> Deploy OVF Template... I got: "File <...>.ovf fails integrity check and might have been corrupted during transfer.". Fortunately I selected the disk format to vmdk when I installed the VM. So I created a VM in ESXi without a virtual HDD, uploaded the vmdk (the one in the VM, not the exported one (that did not work)), added a new virtual HDD from existing file (from the vmdk just uploaded) and the VM worked.

Replying to diegows:

Same problem here.

I've change this line with the problem to:

<vssd:VirtualSystemType>vmx-06</vssd:VirtualSystemType>

And works.

Regards,

Diego

Last edited 5 years ago by Attila123 (previous) (diff)

comment:9 Changed 4 years ago by eshizhan

I write a little script do this:

 https://gist.github.com/eshizhan/6650285

comment:10 Changed 3 years ago by dragon788

This issue exists because the v2 OVA/OVF that Virtualbox produces isn't recognized by VM's ovftool yet (they do 1.0 and 1.1), the DTMF does recognize v2 as a valid release though. As indicated above, the correct way to work around this is to 'vboxmanage export VM_NAME' or use the UI and select v1 when exporting, then use the ovftool to convert to VMX or a VMware compatible OVA by using 'ovftool --lax orig.ova dest.ova'.

comment:11 Changed 5 weeks ago by BasicTheProgram

Hey, look a 7 year old bug!

Using Virtualbox 5.2.2 r119230 Export Appliance..., Selecting Open Virtualization Format 1.0 results in:

<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

Not recognized by VMCA 6.5 on OVF import.

Using Virtualbox 5.2.2 r119230 Export Appliance..., Selecting Open Virtualization Format 2.0 results in:

<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

Not recognized by VMCA 6.5 on OVF import.

Using Virtualbox 5.2.2 r119230 Export Appliance..., Selecting Open Virtualization Format 0.9 results in:

<vssd:VirtualSystemType>vmx-6</vssd:VirtualSystemType>

This *is* recognized by VMCA 6.5 on OVF import.

As I read the spec VirtualSystemType can contain multiple entries, separated by a single space, would a simple fix be something like

<vssd:VirtualSystemType>virtualbox-2.2 vmx-6</vssd:VirtualSystemType>

Just wondering why this bug has not been resolved. It's 7 years old!

comment:12 Changed 4 weeks ago by BasicTheProgram

Looks like 5.2.4 makes things WORSE! The virtualization format 0.9 no longer works!

Using Virtualbox 5.2.4 r119785 Export Appliance..., Selecting Open Virtualization Format 0.9 results in:

<vssd:VirtualSystemType>vmx-6</vssd:VirtualSystemType>

But OVF import on VMCA 6.5 throws an error, "OVF 0.9 is not supported. Invalid name space"

Using Virtualbox 5.2.4 r119785 Export Appliance..., Selecting Open Virtualization Format 1.0, create manifest file checked results in:

<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

Throws error invalid OVF checksum algorithm: SHA1

Using Virtualbox 5.2.4 r119785 Export Appliance..., Selecting Open Virtualization Format 1.0, create manifest file NOT checked results in:

<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

Not recognized by VMCA 6.5 on OVF import.

Using Virtualbox 5.2.4 r119785 Export Appliance..., Selecting Open Virtualization Format 2.0, create manifest file checked results in:

<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

Throws error invalid OVF checksum algorithm: SHA256

Using Virtualbox 5.2.4 r119785 Export Appliance..., Selecting Open Virtualization Format 2.0, create manifest file NOT checked results in:

<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

Not recognized by VMCA 6.5 on OVF import.

comment:13 Changed 5 days ago by VVP

hi BasicTheProgram,

  1. Where did you read about "VirtualSystemType" syntax? please, give a link.
  1. Who is throwing the errors "invalid OVF checksum algorithm: SHA256" and "invalid OVF checksum algorithm: SHA1 "?
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use