This commit is contained in:
spiritlhl
2024-02-20 09:20:52 +00:00
parent c31ea61b33
commit 830c3febb3
6 changed files with 148 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ outline: deep
# Some custom scripts
Each script may have its own system requirements, check them out!
Some scripts may have its own system requirements, check them out!
## Installing Proxmox VE 7 on a non-Debian system
@@ -54,3 +54,68 @@ spiritlhl/pve:7_aarch64
The web panel is actually opened in the container, but the network has used the host mode, the port of the PVE is about the same as the port of the host used
There are many bugs need to be fixed, welcome to PR to solve the problem, the actual test on the Ubuntu system host machine to install ```Proxmox VE``` panel success, solved the problem of installing ```Proxmox VE``` over the network can only be used to use the Debian system as a host machine!
## Optimizing the memory footprint of Proxmox-VE on low-configuration systems
The following optimizations can reduce the memory usage by about 400M, which is better than nothing.
### Reduce the number of max_workers
Execute the following command to query
```
cd /usr/share/perl5/PVE/Service
grep 'max_workers => 3' *
```
you can see
```
pvedaemon.pm: max_workers => 3,
pveproxy.pm: max_workers => 3,
spiceproxy.pm: max_workers => 3, # todo: do we need more?
```
The default max_workers is 3, you can modify the corresponding file, the minimum max_workers can be 1, you can use the following commands to modify them:
```
sed -i "s/max_workers => 3/max_workers => 1/g" /usr/share/perl5/PVE/Service/*
```
### Deactivation of HA services
Clusters (multi-nodes) can use the HA service, if it is a single node, or there is no need for HA use, you can execute the following command:
```
systemctl stop pve-ha-lrm.service
systemctl stop pve-ha-crm.service
systemctl disable pve-ha-lrm.service
systemctl disable pve-ha-crm.service
```
### Disable firewall service
The service can be deactivated by executing the following command:
```
systemctl stop pve-firewall.service
systemctl disable pve-firewall.service
```
### Discontinuation of cheduler service
If you don't need scheduled tasks, such as backups and synchronizations, you can deactivate the service by executing the following command:
```
systemctl stop pvescheduler.service
systemctl disable pvescheduler.service
```
### Discontinuation of Spiceproxy service
If you do not need to use Spice for VM/container linking (the Arm version itself does not support Spice), you can deactivate the service by executing the following command:
```
systemctl stop spiceproxy.service
systemctl disable spiceproxy.service
```

View File

@@ -6,6 +6,10 @@ outline: deep
If you don't know how to choose an option during installation, just press enter.
:::tip
For low-configuration hosts, it is recommended to check the contents of the ```Custom``` partition after all the content has been installed to perform memory tuning and reduce the memory footprint.
:::
## One-click PVE installation
:::tip

View File

@@ -34,6 +34,10 @@ All system parameters are lowercase system names spliced with version numbers, e
(Self-patched images support some out-of-the-way systems, such as centos6, centos7, debian8, debian9, etc.)
:::
:::tip
Of course, sometimes there are special cases where the version may be current/base, in which case it is sufficient to use only the English system name, e.g. archlinux, gentoo.
:::
**The default CT username for all systems is root**
## Creating Individual LXC Containers for Virtualization

View File

@@ -4,7 +4,7 @@ outline: deep
# 一些自定义脚本
每个脚本可能有对应的系统要求,自行查看
有些脚本可能有对应的系统要求,自行查看
## 在非Debian系统上安装 Proxmox VE 7
@@ -54,3 +54,68 @@ spiritlhl/pve:7_aarch64
开设出的面板实际是开设在容器内的但网络已使用host模式PVE的端口约等于就使用的宿主机的端口
有许多错误需要修复欢迎PR解决问题实测在Ubuntu系统的宿主机上安装```Proxmox VE```的面板成功,解决了通过网络安装```Proxmox VE```只能使用Debian系统做宿主机的问题
## 在低配置系统中优化Proxmox-VE的内存占用
以下优化可以减少400M内存左右的占用聊胜于无。
### 减少max_workers数量
执行下述命令查询
```
cd /usr/share/perl5/PVE/Service
grep 'max_workers => 3' *
```
可见
```
pvedaemon.pm: max_workers => 3,
pveproxy.pm: max_workers => 3,
spiceproxy.pm: max_workers => 3, # todo: do we need more?
```
默认的max_workers是3可以修改对应的文件最低max_workers可为1可使用如下命令进行修改
```
sed -i "s/max_workers => 3/max_workers => 1/g" /usr/share/perl5/PVE/Service/*
```
### 停用HA服务
集群(多节点)可以使用HA服务如果是单节点或者没有HA使用的需求可以执行下述命令禁用
```
systemctl stop pve-ha-lrm.service
systemctl stop pve-ha-crm.service
systemctl disable pve-ha-lrm.service
systemctl disable pve-ha-crm.service
```
### 停用防火墙服务
可执行下述命令停用服务
```
systemctl stop pve-firewall.service
systemctl disable pve-firewall.service
```
### 停用调度服务
如果不需要计划任务,如备份、同步之类的任务,可执行下述命令停用服务
```
systemctl stop pvescheduler.service
systemctl disable pvescheduler.service
```
### 停用Spiceproxy
如果不需要使用Spice进行虚拟机/容器链接(Arm版本本身不支持Spice),可执行下述命令停用服务
```
systemctl stop spiceproxy.service
systemctl disable spiceproxy.service
```

View File

@@ -6,6 +6,10 @@ outline: deep
安装过程中遇到选项不会选的可无脑按回车本项目所有脚本内置国内外IP自动判断使用的是不同的安装源与配置文件有使用CDN加速镜像下载
:::tip
低配置的宿主机,建议所有内容安装完毕后,查看```自定义```分区的内容,进行内存调优,减少内存占用。
:::
## 一键安装PVE
:::tip

View File

@@ -33,6 +33,10 @@ outline: deep
(自修补镜像支持一些偏门系统,如 centos6、centos7、debian8、debian9 等)
:::
:::tip
当然有时候会存在特殊情况version可能是current/base此时仅使用英文系统名字即可如 archlinux、gentoo 。
:::
**所有系统的CT默认用户名是root**
## 单独开设LXC虚拟化的CT