From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id 38CD41FF15F
	for <inbox@lore.proxmox.com>; 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 <pve-devel@lists.proxmox.com>
References: <20241118152928.858590-1-d.csapak@proxmox.com>
 <2278088a-d9c8-4e92-becf-f2802e3ba34b@proxmox.com>
 <a6cbacea-f99f-4cb8-9ad9-1033d3734a5c@proxmox.com>
 <f081f09a-241e-4e45-a47e-780ae8004703@proxmox.com>
 <6da987be-1a0f-4276-b5e4-d02438f36ba3@proxmox.com>
From: Filip Schauer <f.schauer@proxmox.com>
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 <pve-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
List-Post: <mailto:pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

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