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 8A15A1FF168 for ; Tue, 21 Jan 2025 11:05:32 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9D8885B5D; Tue, 21 Jan 2025 11:05:27 +0100 (CET) From: Hannes Duerr To: pve-devel@lists.proxmox.com Date: Tue, 21 Jan 2025 11:04:14 +0100 Message-Id: <20250121100415.64884-5-h.duerr@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250121100415.64884-1-h.duerr@proxmox.com> References: <20250121100415.64884-1-h.duerr@proxmox.com> MIME-Version: 1.0 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 SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH pve-nvidia-vgpu-helper v2 4/4] debian: add and install nvidia-vgpu systemd template unit file 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Signed-off-by: Hannes Duerr --- debian/nvidia-vgpud@.service | 12 ++++++++++++ debian/rules | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 debian/nvidia-vgpud@.service diff --git a/debian/nvidia-vgpud@.service b/debian/nvidia-vgpud@.service new file mode 100644 index 0000000..b3c1220 --- /dev/null +++ b/debian/nvidia-vgpud@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Enable NVIDIA SR-IOV for PCI ID %i +After=network.target nvidia-vgpud.service nvidia-vgpu-mgr.service +Before=pve-guests.service + +[Service] +Type=oneshot +ExecStartPre=/bin/sleep 5 +ExecStart=/usr/lib/nvidia/sriov-manage -e %i + +[Install] +WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules index 218df65..fe9a05d 100755 --- a/debian/rules +++ b/debian/rules @@ -6,3 +6,6 @@ %: dh $@ + +override_dh_installsystemd: + dh_installsystemd --no-start --no-enable --name nvidia-vgpud@ nvidia-vgpud@.service -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel