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 3B48A1FF15E for <inbox@lore.proxmox.com>; Tue, 17 Jun 2025 10:02:05 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CD8451767B; Tue, 17 Jun 2025 10:02:32 +0200 (CEST) Date: Tue, 17 Jun 2025 10:01:57 +0200 Message-Id: <DAONG2CR5KTS.35LZH120Z12RX@proxmox.com> From: "Christoph Heiss" <c.heiss@proxmox.com> To: "Filip Schauer" <f.schauer@proxmox.com> Mime-Version: 1.0 X-Mailer: aerc 0.20.1 References: <20250611144903.200940-1-f.schauer@proxmox.com> In-Reply-To: <20250611144903.200940-1-f.schauer@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.028 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 KAM_SHORT 0.001 Use of a URL Shortener for very short URL 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 container/manager/proxmox{, -perl-rs}/storage v2 00/11] support OCI images as container templates 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> Cc: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> pve-container changes now need a rebase due to the perltidy re-formatting. Tested the series using the same setup as last time. Tested the following images, exported with podman: - docker.io/library/nginx:mainline-alpine - docker.io/library/nginx:mainline-bookworm - ghcr.io/dani-garcia/vaultwarden:1.34.1-alpine - docker.io/library/node:24-bookworm Can confirm that all of these started up correctly and are reachable/usable afterwards and that the problem with the entrypoint has been fixed. I also test with `ghcr.io/nixos/nix:latest`, which interestingly fails to start with DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxcfs/lxc.mount.hook 107 lxc mount produced output: /usr/share/lxcfs/lxc.mount.hook: 15: readlink: Permission denied Not sure what is going on there, but I don't think it's directly related to this series, rather just some OCI/Nix weirdness. On Wed Jun 11, 2025 at 4:48 PM CEST, Filip Schauer wrote: > Add basic support for OCI (Open Container Initiative) images [0] as > container templates. > > An OCI image can be for example obtained from Docker Hub: > > Either using Docker: > > ``` > $ docker pull httpd > $ docker save httpd > httpd.tar > ``` > > Or using Podman: > When using Podman, the format needs to be explicitly specified, > otherwise it defaults to docker-archive. > > ``` > $ podman pull httpd > $ podman save --format=oci-archive httpd > httpd.tar > ``` > > The tarball can be uploaded to a storage as a container template and > then used during container creation. It is automatically detected that > the container template is an OCI image. The resulting container still > uses the existing LXC framework. Needs to documented in pve-docs too, this paragraph would already make a great start tbh. > [..] > # Build & install order: > > OCI image support: > 1. proxmox > 2. proxmox-perl-rs > 3. pve-container > > .tar container template support: > 1. pve-storage > 2. pve-manager Should be mentioned here (and ideally, on the respective pve-container patch(es) as well) that pve-container depends on libpve-rs-perl after this series, i.e. an appropriate entry needs to be added to d/control. > > [0] https://github.com/opencontainers/image-spec/blob/main/spec.md > [1] https://lore.proxmox.com/pve-devel/20250606103719.533030-2-c.heiss@proxmox.com/ > > Changed since v1: > * Fix entrypoint command missing Cmd > * Set lxc.signal.halt according to StopSignal (Fixes container shutdown) > * setup: Ensure that both /etc/systemd/network and > /etc/systemd/system-preset exist before writing files into them. > * ui: storage upload: accept *.tar files as vztmpl > * proxmox-perl-rs: rebase on latest master (3d9806cb3c7f) > * proxmox-perl-rs: add new dependencies to debian/control > * proxmox-oci: refactor errors and use `thiserror` to avoid boilerplate Please also mention changes in the notes of each patch - makes reviewing a lot easier! _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel