qm importovf XPath error on importing OVF

Chris Olive

New Member
Apr 8, 2020
20
0
1
45
From what I've read, there are two basic ways of importing OVAs:

  1. Untar the OVA, import the VMDK and build a VM def over the top of the imported VMDK (as qcow2)
  2. Use qm importovf to import the OVF and associated OVA artifacts (VMDKs, etc.)
I've done both with reasonable results. I'm attempting to import a secured appliance from a vendor. In attempting to use Approach #2 above, I am getting the following error:

Code:
root@pve:/usr/local/tmp/APPLIANCE_OVA# qm importovf 100 APPLIANCE.x86_64-2.8.0.ovf local-lvm
XPath error : Undefined namespace prefix
 error : xmlXPathCompiledEval: evaluation failed

Not finding anything using Google-fu on this. I've run the OVF through an XML validator, and the XML is fine. Any help here on what could be the issue would be appreciated.
 
hi thanks

i found the bug and sent a patch on the list: https://pve.proxmox.com/pipermail/pve-devel/2020-April/043149.html
to quick fix this, you would have to manually edit the ovf file

add
Code:
xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData"

to the <Envelope> tag

like this:


Code:
<Envelope vmv:buildId="...." xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" ...>
 
  • Like
Reactions: Moayad