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 [IPv6:2a01:7e0:0:424::9])
	by lore.proxmox.com (Postfix) with ESMTPS id E8F0E1FF15F
	for <inbox@lore.proxmox.com>; Mon, 18 Nov 2024 18:35:59 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 9C818162D0;
	Mon, 18 Nov 2024 18:36:03 +0100 (CET)
Message-ID: <49791e07-a273-4a5f-a247-d33a2a102aa4@proxmox.com>
Date: Mon, 18 Nov 2024 18:35:30 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
 Filip Schauer <f.schauer@proxmox.com>
References: <20241118152928.858590-1-d.csapak@proxmox.com>
 <2278088a-d9c8-4e92-becf-f2802e3ba34b@proxmox.com>
From: Aaron Lauterer <a.lauterer@proxmox.com>
In-Reply-To: <2278088a-d9c8-4e92-becf-f2802e3ba34b@proxmox.com>
X-SPAM-LEVEL: Spam detection results:  0
 AWL -0.035 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
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to
 Validity was blocked. See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more
 information.
 RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to
 Validity was blocked. See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more
 information.
 RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to
 Validity was blocked. See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more
 information.
 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  2024-11-18  18:14, Filip Schauer wrote:
> Hello,
> 
> I tried to quickly test the OVA import with a CentOS 7 OVA file that I
> downloaded from:
> https:// 
> dlconusc1.linuxvmimages.com/046389e06777452db2ccf9a32efa3760:dldatac/ 
> VirtualBox/C/7/CentOS_7.9.2009_VBM.zip
> 
> 6785cb04dc5e7ab5a28ec139f631dfc8aeb8a6278c5fc66e1e7030d3f5a83b18 /var/ 
> lib/vz/import/CentOS_7.9.2009_VBM_LinuxVMImages.COM.ova
> 
> After enabling the "import" content type on my local directory storage,
> the ova file shows up in the import section of the storage.
> 
> Upon clicking "Import" in the web UI the "Import Guest" dialog opens
> along with an error message stating:
> XPath error : Undefined namespace prefix at /usr/share/perl5/PVE/ 
> GuestImport/OVF.pm line 239. (500)

I untar'ed that OVA and inspected the OVF. The filter for that is:
     my $xpath_find_firmware = 
"/ovf:Envelope/ovf:VirtualSystem/ovf:VirtualHardwareSection/vmw:Config[\@vmw:key=\"firmware\"]/\@vmw:value";

The GNS3 OVF does have `vmw:Config` elements, though none for the 
firmware -> Default SeaBIOS

The CentOS OVF does not have any `vmw:Config` sub elements in that 
search path. That is probably what is causing the issue.

> 
> Closing the error message also closes the import dialog, preventing me
> from importing.
> 
> The same thing happens with this ArcoLinux OVA file:
> https://master.dl.sourceforge.net/project/linuxovafiles/GUI/ArcoLinux- 
> vm.ova?viasf=1 to /var/lib/vz/import/ArcoLinux-vm.ova
> 
> 2b353ac59598bac24d4cf0721e367935d00178a31d84e09c94425bdee3dab6a1 /var/ 
> lib/vz/import/ArcoLinux-vm.ova
> 
> Tested-by: Filip Schauer <f.schauer@proxmox.com>
> 


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel