qm importovf XPath error on importing OVF

Chris Olive

New Member
Apr 8, 2020
20
0
1
44
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.
 
can you post the ovf file?
 
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
GENIUS. Thanks. That actually worked.

May I ask how you came to this? That was black magic AFAIC.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!