pve/README.md
2023-02-25 22:00:25 +08:00

2.5 KiB
Raw Blame History

PVE

只适配Debian且Ubuntu未测试

系统要求Debian 8+

硬件要求2核2G内存x86_64架构服务器

可开KVM的硬件要求VM-X或AMD-V支持-(部分VPS和全部独服支持)

遇到选项不会选的可无脑回车安装所有脚本内置国内外IP自动判断使用的是不同的安装源与配置文件

检测硬件环境

  • 检测环境是否可嵌套虚拟化KVM类型的服务器
  • 不可嵌套虚拟化KVM类型的服务器也可以开LXC虚拟化的服务器
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/check_kernal.sh)

PVE基础安装

  • 安装的是当下apt源最新的PVE
  • 比如debian10则是pve6.4debian11则是pve7.x
  • 已设置/etc/hosts为只读模式,避免重启后文件被覆写
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/install_pve.sh -o install_pve.sh && chmod +x install_pve.sh && bash install_pve.sh
  • 安装过程中可能会退出安装需要手动修复apt源如下图所示修复完毕后再次执行本脚本

图片

图片

下载系统模板

  • 下载KVM或LXC模板到PVE的ISO/CT列表中
  • 下载完成后请web端查看 pve > local(pve) > ISO Images/CT Templates 刷新一下记录,直接去创建虚拟机是看不到已下载的
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

预配置环境

  • 创建资源池mypool
  • 安装PVE开虚拟机需要的必备工具包
  • 替换apt源中的企业订阅为社区源
  • 删除无效的系统内核
  • 检测AppArmor模块并试图安装
  • 配置完毕需要重启系统加载内核
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/build_backend.sh)

自动配置NAT网关

自测中,勿要使用,未完成

bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/network.sh)

pve6升级为最新的pve7

自测中,勿要使用,未完成

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

友链

VPS融合怪测评脚本

https://github.com/spiritLHLS/ecs