From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 38CD41FF15F for ; Mon, 18 Nov 2024 19:03:15 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 42CB8171E1; Mon, 18 Nov 2024 19:03:19 +0100 (CET) Message-ID: <26fa70cc-bab5-4102-aa65-bd9cda636676@proxmox.com> Date: Mon, 18 Nov 2024 19:03:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Proxmox VE development discussion References: <20241118152928.858590-1-d.csapak@proxmox.com> <2278088a-d9c8-4e92-becf-f2802e3ba34b@proxmox.com> <6da987be-1a0f-4276-b5e4-d02438f36ba3@proxmox.com> From: Filip Schauer In-Reply-To: <6da987be-1a0f-4276-b5e4-d02438f36ba3@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL -0.029 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [PATCH storage/qemu-server/manager v7] implement ova/ovf import for file based storages X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" 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. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel