{"id":13495947,"url":"https://github.com/ivanhao/pvetools","last_synced_at":"2025-05-14T11:10:05.820Z","repository":{"id":37444910,"uuid":"209236767","full_name":"ivanhao/pvetools","owner":"ivanhao","description":"proxmox ve tools script(debian9+ can use it).Including email, samba, NFS set zfs max ram, nested virtualization ,docker , pci passthrough etc. for english user,please look the end of readme.","archived":false,"fork":false,"pushed_at":"2024-09-23T12:55:45.000Z","size":811,"stargazers_count":4857,"open_issues_count":54,"forks_count":583,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-09T21:12:29.834Z","etag":null,"topics":["proxmox","proxmox-ve","samba","zfs"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivanhao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-18T06:40:49.000Z","updated_at":"2025-04-09T20:21:30.000Z","dependencies_parsed_at":"2024-11-19T11:04:35.763Z","dependency_job_id":"71931b80-9851-41c9-843f-3a0255a58e79","html_url":"https://github.com/ivanhao/pvetools","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhao%2Fpvetools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhao%2Fpvetools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhao%2Fpvetools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhao%2Fpvetools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanhao","download_url":"https://codeload.github.com/ivanhao/pvetools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129489,"owners_count":22019628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["proxmox","proxmox-ve","samba","zfs"],"created_at":"2024-07-31T19:01:40.013Z","updated_at":"2025-05-14T11:10:05.770Z","avatar_url":"https://github.com/ivanhao.png","language":"Shell","funding_links":[],"categories":["Shell","others"],"sub_categories":[],"readme":"![logo](https://upload-images.jianshu.io/upload_images/4171480-4fc23dfbe28b491a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n# pvetools\nproxmox ve tools script(debian9+ can use it).Including `email`, `samba`,` NFS  set zfs max ram`, `nested virtualization` ,`docker `, `pci passthrough` etc.\nfor english user,please look the end of readme.\n\n这是一个为proxmox ve写的工具脚本（理论上debian9+可以用）。包括`配置邮件`，`samba`，`NFS`，`zfs`，`嵌套虚拟化`，`docker`，`硬盘直通`等功能。\n\n\n\n### 安装\n\n##### 中国用户:\n\n###### 方式一：命令行安装\n\n\u003e 需要用root账号来运行\n\n在终端中按行分别执行以下内容：\n\n\u003e强烈建议先删除企业源：`rm /etc/apt/sources.list.d/pve-enterprise.list`\n\n```\nexport LC_ALL=en_US.UTF-8\napt update \u0026\u0026 apt -y install git \u0026\u0026 git clone https://github.com/ivanhao/pvetools.git\ncd pvetools\n./pvetools.sh\n```\n\n### 一键无脑安装:\n\n```\nsver=`cat /etc/os-release|grep VERSION_CODENAME|awk -F '=' '{print $2}'` \u0026\u0026 echo \"nameserver  8.8.8.8\" \u003e\u003e /etc/resolv.conf \u0026\u0026 rm -rf pvetools \u0026\u0026 echo \"deb http://mirrors.ustc.edu.cn/proxmox/debian/pve/ $sver pve-no-subscription\" \u003e /etc/apt/sources.list.d/pve-no-sub.list \u0026\u0026 sed -i 's|deb|#deb|' /etc/apt/sources.list.d/pve-enterprise.list \u0026\u0026 echo \"\" \u003e /etc/apt/sources.list.d/ceph.list \u0026\u0026 export LC_ALL=en_US.UTF-8 \u0026\u0026 apt update \u0026\u0026 apt -y install git \u0026\u0026 git clone https://github.com/ivanhao/pvetools.git \u0026\u0026 echo \"cd /root/pvetools \u0026\u0026 ./pvetools.sh\" \u003e pvetools/pvetools \u0026\u0026 chmod +x pvetools/pvetools* \u0026\u0026 ln -s /root/pvetools/pvetools /usr/local/bin/pvetools \u0026\u0026 pvetools\n```\n\n###### 方式二：下载zip安装\n\n![download](https://upload-images.jianshu.io/upload_images/4171480-49193f4b6f4040fc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n\n- 建议使用方式一来安装，不建议直接下载单sh脚本使用，因为那样更新的功能会无法使用！\n\n- 如果网络无法使用，或命令行使用有困难，可以使用方式二下载zip包拷入系统中使用。\n\n### 卸载\n1. 删除下载的pvetools目录\n\n\n### 运行\n\n在shell中进入pvetools目录，输入\n`\n./pvetools.sh\n`\n* 如果提示没有权限，输入`chmod +x ./*.sh`\n\n### 主界面\n\n![main](https://upload-images.jianshu.io/upload_images/4171480-501e3adb625c82fb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n![main1](https://upload-images.jianshu.io/upload_images/4171480-53fc13764f684c4c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n\n\n\n根据需要选择对应的选项即可。\n\n#### 配置邮件说明：\n\n只有以下界面需要用tab键选成红框的内容,其他的一律无脑回车即可。\n\n![mail](https://upload-images.jianshu.io/upload_images/4171480-2ee76fb89c0f253e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n\n\n#### 如果这个脚本帮到你了，麻烦点一下右上角的star小星星^_^\n\n## qq交流群: 878510703\n\n![qq](http://upload-images.jianshu.io/upload_images/4171480-e0204ead0fb41d5e.jpg)\n\n## 如果觉得好的请捐赠一下^_^\n![alipay](https://upload-images.jianshu.io/upload_images/4171480-04c3ebb5c11cfdf9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n\n感谢捐赠人员！\n\n捐赠列表：\n\n杨惠(来源qq)\n\n蓝蓝的天空（来源qq）\n\n久别重逢（来源qq）\n\n小呀嘛小Kiwi（来源qq)\n\n*兴乐（来源支付宝）\n\n孤独的根号三 （来源qq）\n\n我心依旧丶(来源qq)\n\n*俊磊（来源支付宝）\n\n*家鑫（来源支付宝）\n\n*小虎（来源支付宝）\n\n*杭（来源支付宝）\n\n*伟（来源支付宝）\n\n*棘（来源支付宝）\n\nzm （来源qq）\n\n*阳 (来源支付宝)\n\n**鑫 (来源支付宝)\n\n**尧 (来源支付宝)\n\n*潋 (来源支付宝)\n\n**泽 (来源支付宝)\n\n**涛 (来源支付宝)\n\n*韬 (来源支付宝)\n\n**旭 (来源支付宝)\n\n**明 (来源支付宝)\n\n**锐 (来源支付宝)\n\n# [版本说明]\n\n##### v2.4.0\n\n发布时间：2024.02.08\n\nnew feature:\n\n* 修复有些功能还原配置时出现问题，比如温度显示，去除订阅等\n\n* 修复配置apt国内源、安装配置VIM可导致原配置文件被覆盖\n\n##### v2.3.9\n\n发布时间：2023.10.19\n\nnew feature:\n\n* 增加pve8的支持\n\n* 优化英文语言的显示\n\n##### v2.3.6\n\n发布时间：2023.02.16\n\nnew feature:\n\n* 合并网友“for5million”提交的关于pci直通的修复。\n\n##### v2.3.5\n\n发布时间：2022.09.14\n\nnew feature:\n\n* 修复docker无法安装的问题，更换alpine的安装源。\n\n##### v2.3.2\n\n发布时间：2022.07.14\n\nnew feature:\n\n* 温度显示上方增加CPU频率显示。\n* add cpu frequency display.\n\n\n##### v2.3.1\n\n发布时间：2022.07.13\n\n* 调整省电模式powersave为conservative。\n* change cpufrequtils from 'powersave' to 'conservative'。\n\n\n##### v2.3.0\n\n发布时间：2022.05.30\n\nnew feature:\n\n* 修复pve7（debian 11)后security更新源地址格式变动的影响。\n* fix pve7 (debian 11) security source address.\n\n* 添加pve7以上版本配置硬件直通里的参数`iommu=pt pcie_acs_override=downstream`\n* add pve7　grub config `iommu=pt pcie_acs_override=downstream`\n\n* 删除默认.vimrc中重复的`set termencoding=unix`\n* delete .vimrc duplicate termencoding setting `set termencoding=unix`\n\n* 增加去除订阅提示的修复\n* add reinstall proxmox-widget-toolkit to fix remove subscription failure.\n\n##### v2.2.9\n\n发布时间：2022.05.29\n\nnew feature:\n\n* 增加常用工具下的自动扩展ROOT分区可用空间，比如有些用户使用dd等方式克隆系统盘，更换大硬盘还原镜像后可以一键扩展分区\n* add auto expand / partition size.\n\n##### v2.2.8\n\n发布时间：2021.10.26\n\nnew feature:\n\n* 优化pve7去订阅提示的判断和处理。\n* fix pve7 subscription note.\n\n##### v2.2.7\n\n发布时间：2021.10.14\n\nnew feature:\n\n* 在常用的工具下添加pve界面黑暗模式\n* add proxmox ve darkmode interface to manyTools.\n\n##### v2.2.6\n\n发布时间：2021.09.09\n\nnew feature:\n\n* 添加pve7的支持。\n* add proxmox ve 7.x support.\n\n##### v2.2.5\n\n发布时间：2020.12.16\n\nnew feature:\n\n* 优化pve升级后温度安装提示判断逻辑。\n* update sensors data install.\n\n##### v2.2.4\n\n发布时间：2020.12.14\n\nnew feature:\n\n* 修复温度显示界面高度自适应。\n* fix sensors display interface.\n\n##### v2.2.3\n\n发布时间：2020.12.09\n\nnew feature:\n\n* 增加对/etc/pve/qemu-server下的conf文件自动备份功能，可以选择备份路径和保留备份个数，建议备份到系统分区以外的虚拟机数据盘中，这样重装系统后方便直接恢复\n\n\n##### v2.2.2\n\n发布时间：2020.11.30\n\nnew feature:\n\n* 根据群友`嗨 我是奶酪`的建议，添加pve 更新源地址为非订阅更新源\n\n\n\n##### v2.2.0\n\n发布时间：2020.08.17\n\nnew feature:\n\n* 增加USB设备做为系统盘的优化，在'常用工具'下。\n\n##### v2.1.9\n\n发布时间：2020.07.15\n\nnew feature:\n\n* 增加N卡vbios的提示功能，在'常用工具'下。\n\n##### v2.1.8\n\n发布时间：2020.07.14\n\nnew feature:\n\n* 修复cpu省电，还原配置无法恢复频率的问题。\n\n\n##### v2.1.7\n\n发布时间：2020.05.19\n\nnew feature:\n\n* 优化cpu省电提示，处理卸载后再次运行不安装cpufrequtils的问题。\n\n##### v2.1.5\n\n发布时间：2020.03.28\n\nnew feature:\n\n* 解决docker重启不能自动启动的问题。\n\n##### v2.1.4\n\n发布时间：2020.02.21\n\nnew feature:\n\n* 常用工具中增加释放内存、speedtest、bbr\\bbr+、v2ray功能\n\n##### v2.1.3\n\n发布时间：2019.12.24\n\nnew feature:\n\n* 优化samba回收站配置,在设置共享文件夹时自动提示是否开启；可以单独增加和取消某个共享文件夹的回收站；\n* 优化web界面温度显示功能\n\n##### v2.1.2\n\n发布时间：2019.12.18\n\nnew feature:\n\n* 增加samba回收站配置\n\n##### v2.1.1\n\n发布时间：2019.12.16\n\nnew feature:\n\n* 常用工具中增加dns配置\n\n##### v2.1.0\n\n发布时间：2019.12.09\n\nnew feature:\n\n* 增加在pve中直接安装omv( [omvInPve](https://github.com/ivanhao/omvinpve))。\n\n##### v2.0.9\n\n发布时间：2019.12.04\n\nnew feature:\n\n* 增加samba共享文件夹权限自动配置，不再需要手工配置权限；同时删除共享文件夹会自动还原原来的用户组权限。\n  建议之前已使用的用户可以先删除旧的共享文件夹，手工恢复权限后，再用工具配置添加。\n\n##### v2.0.8\n\n发布时间：2019.11.28\n\nnew feature:\n\n*   增加chroot自定义安装路径的功能。\n*   增加chroot docker迁移的功能。\n [wiki](https://github.com/ivanhao/pvetools/wiki/m--1-%E9%85%8D%E7%BD%AEdocker-web%E7%95%8C%E9%9D%A2)\n\n##### v2.0.7\n\n发布时间：2019.11.25\n\nnew feature:\n\n*   增加安装NFS的功能。\n\n##### [](https://github.com/ivanhao/pvetools#v206-1)v2.0.6\n\n发布时间：2019.11.20\n\nnew feature:\n\n*   增加常用工具，此版本增加了局域网扫描\n*   修复dockerd启动bug\n\n##### [](https://github.com/ivanhao/pvetools#v205)v2.0.5\n\n发布时间：2019.11.14\n\nnew feature:\n\n*   chroot优化,增加对alpine版本的判断，优化速度\n*   中文环境下包的下载全改到国内服务器\n*   docker配置国内源\n*   portainer改用docker pull的方式拉取镜像（之前使用tar包部署，github上下载包太慢）\n*   增加chroot后台管理功能，检测chroot的运行\n*   删除代码目录中的图片，改成简书图片链接\n\n\n##### v2.0.4\n发布时间：2019.11.06\n\nnew feature:\n- 增加docker的web界面（portainer)\n- 去除隐藏的命令输出，例如apt-get install的输出等。\n- chroot优化\n\n\n##### v2.0.3\n发布时间：2019.11.04\n\nnew feature:\n- 增加qm set映射物理硬盘的功能\n\n\n##### v2.0.2\n发布时间：2019.11.01\n\nnew feature:\n- 增加chroot功能，默认安装好Alpine\n- 增加docker功能，默认安装在Alpine中\n- bug修复\n\n##### v2.0.1\n发布时间：2019.10.24\n\nnew feature:\n- 增加显卡直通的支持\n\n\n##### v2.0\n发布时间：2019.10.01\n\nnew feature:\n- 界面修改为whiptail，交互性更好，不需要输入字母来选择\n- bug修复\n\n### installation method\n\n###### 1. command line\n\n##### for english user:\n\nUse root accout to run.\n\n```\nexport LC_ALL=en_US.UTF-8\napt update \u0026\u0026 apt -y install git \u0026\u0026 git clone https://github.com/ivanhao/pvetools.git\ncd pvetools\n./pvetools.sh\n```\n\u003eIf update error,you can remove enterprise source by : `rm /etc/apt/sources.list.d/pve-enterprise.list` and retry.\n\n###### 2. download\n\n![download](https://upload-images.jianshu.io/upload_images/4171480-49193f4b6f4040fc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n### Interface\n\n![main](https://upload-images.jianshu.io/upload_images/4171480-501e3adb625c82fb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n![main1](https://upload-images.jianshu.io/upload_images/4171480-0e0920b58ce482d5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n\n\n\n### Uninstall\n1. delete pvetools folder\n\n### Run\ncd to pvetools folder,and type:`./pvetools.sh`\n* you should `chmod +x pvetools.sh` first.\n\n\n#### email configration note：\n\nyou should choose `Internet Site` below, and keep others default.\n\n![mail](https://upload-images.jianshu.io/upload_images/4171480-2ee76fb89c0f253e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhao%2Fpvetools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanhao%2Fpvetools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhao%2Fpvetools/lists"}