2023-02-15 11:55:29 +08:00
|
|
|
|
# PVE
|
2023-02-13 17:55:00 +08:00
|
|
|
|
|
2023-02-15 15:26:18 +08:00
|
|
|
|
只适配Debian且Ubuntu未测试
|
|
|
|
|
|
2023-02-15 17:31:06 +08:00
|
|
|
|
系统要求:Debian 8+
|
|
|
|
|
|
|
|
|
|
硬件要求:2核2G内存x86_64架构服务器
|
|
|
|
|
|
2023-02-17 10:46:03 +08:00
|
|
|
|
可开KVM的硬件要求:VM-X或AMD-V支持-(部分VPS和全部独服支持)
|
2023-02-15 17:31:06 +08:00
|
|
|
|
|
2023-02-18 16:16:06 +08:00
|
|
|
|
遇到选项不会选的可无脑回车安装,所有脚本内置国内外IP自动判断,使用的是不同的安装源与配置文件
|
2023-02-17 10:20:37 +08:00
|
|
|
|
|
2023-02-15 15:36:20 +08:00
|
|
|
|
### 检测硬件环境
|
2023-02-15 11:28:28 +08:00
|
|
|
|
|
2023-02-15 15:36:32 +08:00
|
|
|
|
检测环境是否可嵌套虚拟化KVM类型的服务器
|
2023-02-13 17:24:26 +08:00
|
|
|
|
|
2023-02-13 17:24:15 +08:00
|
|
|
|
```
|
2023-02-15 15:36:20 +08:00
|
|
|
|
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/check_kernal.sh)
|
2023-02-13 17:24:15 +08:00
|
|
|
|
```
|
2023-02-15 10:41:43 +08:00
|
|
|
|
|
2023-02-16 21:01:18 +08:00
|
|
|
|
### PVE
|
2023-02-15 10:41:43 +08:00
|
|
|
|
|
2023-02-16 21:01:18 +08:00
|
|
|
|
安装的是当下apt源最新的PVE(比如debian10则是pve6.4,debian11则是pve7.2)
|
2023-02-15 11:55:29 +08:00
|
|
|
|
|
2023-02-24 13:34:55 +08:00
|
|
|
|
```
|
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/install_pve6.sh -o install_pve6.sh && chmod +x install_pve6.sh && bash install_pve6.sh
|
|
|
|
|
```
|
|
|
|
|
|
2023-02-19 14:54:49 +08:00
|
|
|
|
安装后如若重启系统,请检查 /etc/hosts 是否被覆写,因为有的商家 cloud-init 重启后会覆写配置导致面板启动失败,自行解决
|
2023-02-19 09:44:27 +08:00
|
|
|
|
|
2023-02-20 20:19:50 +08:00
|
|
|
|
安装过程中可能会退出安装,需要手动修复apt源,如图所示修复完毕后再次执行本脚本
|
|
|
|
|
|
|
|
|
|
![图片](https://user-images.githubusercontent.com/103393591/220104992-9eed2601-c170-46b9-b8b7-de141eeb6da4.png)
|
|
|
|
|
|
|
|
|
|
![图片](https://user-images.githubusercontent.com/103393591/220105032-72623188-4c44-43c0-b3f1-7ce267163687.png)
|
|
|
|
|
|
2023-02-15 12:38:38 +08:00
|
|
|
|
### 下载系统镜像
|
|
|
|
|
|
2023-02-17 09:41:59 +08:00
|
|
|
|
下载KVM或LXC模板到PVE的ISO/CT列表中
|
2023-02-15 12:38:38 +08:00
|
|
|
|
|
2023-02-17 10:26:11 +08:00
|
|
|
|
下载完成后请web端查看 pve > local(pve) > ISO Images/CT Templates 刷新一下记录,直接去创建虚拟机是看不到已下载的
|
2023-02-17 10:24:17 +08:00
|
|
|
|
|
2023-02-15 12:38:38 +08:00
|
|
|
|
```
|
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/install_iso.sh -o install_iso.sh && chmod +x install_iso.sh && bash install_iso.sh
|
|
|
|
|
```
|
|
|
|
|
|
2023-02-24 13:34:55 +08:00
|
|
|
|
### 预安装环境
|
2023-02-15 14:48:37 +08:00
|
|
|
|
|
2023-02-24 13:34:55 +08:00
|
|
|
|
安装PVE开虚拟机需要的必备环境以及创建资源池
|
2023-02-15 14:48:37 +08:00
|
|
|
|
|
|
|
|
|
```
|
2023-02-15 15:04:30 +08:00
|
|
|
|
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/build_backend.sh)
|
2023-02-15 14:48:37 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-02-24 13:34:55 +08:00
|
|
|
|
### 自动配置NAT网关
|
|
|
|
|
|
|
|
|
|
自测中,勿要使用,未完成
|
|
|
|
|
|
2023-02-23 21:43:34 +08:00
|
|
|
|
```
|
|
|
|
|
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/network.sh)
|
|
|
|
|
```
|
|
|
|
|
|
2023-02-20 20:27:41 +08:00
|
|
|
|
#### 删除apt源中的无效订阅
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
rm -f /etc/apt/sources.list.d/pve-enterprise.list
|
|
|
|
|
```
|
|
|
|
|
|
2023-02-16 21:01:18 +08:00
|
|
|
|
### 废弃
|
|
|
|
|
|
|
|
|
|
#### pve7
|
2023-02-15 11:28:28 +08:00
|
|
|
|
|
|
|
|
|
废弃,因为apt源最新版本不支持7.x
|
2023-02-15 11:24:45 +08:00
|
|
|
|
|
2023-02-15 10:41:43 +08:00
|
|
|
|
```
|
2023-02-15 11:28:28 +08:00
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/install_pve7.sh -o install_pve7.sh && chmod +x install_pve7.sh && bash install_pve7.sh
|
2023-02-15 10:41:43 +08:00
|
|
|
|
```
|
2023-02-16 16:11:32 +08:00
|
|
|
|
|
2023-02-16 21:01:18 +08:00
|
|
|
|
#### pve6升级为最新的pve7
|
|
|
|
|
|
|
|
|
|
废弃,PVE7基于debian11开发,仅升级PVE没有任何用处
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/pve6_to_pve7.sh -o pve6_to_pve7.sh && chmod +x pve6_to_pve7.sh && bash pve6_to_pve7.sh
|
|
|
|
|
```
|
|
|
|
|
|
2023-02-16 16:11:32 +08:00
|
|
|
|
## 友链
|
|
|
|
|
|
|
|
|
|
VPS融合怪测评脚本
|
|
|
|
|
|
|
|
|
|
https://github.com/spiritLHLS/ecs
|