From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id C7EFCCBDF for ; Mon, 10 Jul 2023 15:50:34 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A62A518645 for ; Mon, 10 Jul 2023 15:50:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Mon, 10 Jul 2023 15:50:03 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 4455142952 for ; Mon, 10 Jul 2023 15:50:03 +0200 (CEST) From: Noel Ullreich To: pve-devel@lists.proxmox.com Date: Mon, 10 Jul 2023 15:49:48 +0200 Message-Id: <20230710134951.79263-2-n.ullreich@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230710134951.79263-1-n.ullreich@proxmox.com> References: <20230710134951.79263-1-n.ullreich@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.063 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 T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH pve-installer 1/1] raise the minimum ram requirements to 2 GiB 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: , X-List-Received-Date: Mon, 10 Jul 2023 13:50:34 -0000 Check that the system has at least 2 GiB of usable RAM. The docs for the pmg and pbs (and with this patch series pve as well) already specify 2 GiB as the minimum RAM needed. Signed-off-by: Noel Ullreich --- proxinstall | 4 ++-- proxmox-tui-installer/src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proxinstall b/proxinstall index 274f39c..c8c793d 100755 --- a/proxinstall +++ b/proxinstall @@ -1578,8 +1578,8 @@ sub create_intro_view { cleanup_view(); my $run_env = Proxmox::Install::RunEnv::get(); - if (int($run_env->{total_memory}) < 1024) { - Proxmox::UI::error("Less than 1 GiB of usable memory detected, installation will probably fail.\n\n". + if (int($run_env->{total_memory}) < 2048) { + Proxmox::UI::error("Less than 2 GiB of usable memory detected, installation will probably fail.\n\n". "See 'System Requirements' in the $iso_env->{cfg}->{fullname} documentation."); } diff --git a/proxmox-tui-installer/src/main.rs b/proxmox-tui-installer/src/main.rs index 8721358..192a175 100644 --- a/proxmox-tui-installer/src/main.rs +++ b/proxmox-tui-installer/src/main.rs @@ -265,11 +265,11 @@ fn installer_setup_late(siv: &mut Cursive) { } } - if total_memory < 1024 { + if total_memory < 2048 { display_setup_warning( siv, concat!( - "Less than 1 GiB of usable memory detected, installation will probably fail.\n\n", + "Less than 2 GiB of usable memory detected, installation will probably fail.\n\n", "See 'System Requirements' in the documentation." ), ); -- 2.39.2