Am 18.11.24 um 18:49 schrieb Thomas Lamprecht: > 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
I meant to write s/vmf/vmw/ i.e.: diff --git a/src/PVE/GuestImport/OVF.pm b/src/PVE/GuestImport/OVF.pm index 4af58ed..ed6fcea 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('vmw', 'http://www.vmware.com/schema/ovf'); $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'); _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel