[pve-devel] [PATCH storage/qemu-server/manager v7] implement ova/ovf import for file based storages

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Nov 18 18:49:50 CET 2024


Am 18.11.24 um 18:44 schrieb Filip Schauer:
> I tried importing the GNS3 OVA files found here:
> https://www.gns3.com/software/download-vm
> 
> I got the same XPath error with the VirtualBox file.

Can you try something like:

diff --git a/src/PVE/GuestImport/OVF.pm b/src/PVE/GuestImport/OVF.pm
index 4af58ed..0348807 100644
--- a/src/PVE/GuestImport/OVF.pm
+++ b/src/PVE/GuestImport/OVF.pm
@@ -191,6 +191,7 @@ sub parse_ovf {
     # 'ovf' is the default namespace so it will prepended to each xml element
     my $xpc = XML::LibXML::XPathContext->new($dom);
     $xpc->registerNs('ovf', 'http://schemas.dmtf.org/ovf/envelope/1');
+    $xpc->registerNs('vmf', 'http://schemas.dmtf.org/ovf/envelope/1'); # FIXME: fix schema URL
     $xpc->registerNs('rasd', 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData');
     $xpc->registerNs('vssd', 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData');





More information about the pve-devel mailing list