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

Filip Schauer f.schauer at proxmox.com
Mon Nov 18 19:03:17 CET 2024


On 18/11/2024 18:53, Thomas Lamprecht wrote:
> 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');

This fixes the XPath error, but the "name" text box in the import dialog
is empty. When giving it a name and clicking "Import" a VM is
immediately created but it has no disks.





More information about the pve-devel mailing list