> 本文作者:丁辉 # PorxmoxVE安装文档 [官网](https://www.proxmox.com/en/) [ISO](https://enterprise.proxmox.com/iso/) ## 准备工作 1. 登录官网下载镜像 2. 制作安装U盘 ## 开始安装 1. 上下键选择桌面版(Graphical)回车 2. 点击我同意 3. 选择系统安装磁盘位置,点击我同意 4. 选择地区 China,时区 Asia/Shanghai,键盘布局 U.S.English,点击我同意 5. 配置平台登陆密码,填写邮箱,点击我同意 6. 选择网卡,配置平台访问IP和网关地址,点击我同意 7. 点击安装 8. 等待安装完成后重启即可(注意!!!安装完重启时拔掉U盘) 9. 出现这个画面则代表安装成功 11. 选择语言,填写用户名密码后登录 12. 忽略提示点击OK 13. 配置国内源 1. 备份源文件 ```bash cp /etc/apt/sources.list /etc/apt/sources.list.bak cp -r /etc/apt/sources.list.d /etc/apt/sources.list.d.bak ``` 2. 更换 Proxmox VE 的 GPG 公钥 ```bash mv /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg.bak wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg ``` 3. 更换 Proxmox 软件源 ```bash echo "#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list ``` 4. 更换 Debian 源 ```bash sed -i "s#ftp.debian.org/debian#mirrors.aliyun.com/debian#g" /etc/apt/sources.list sed -i "s#security.debian.org#mirrors.aliyun.com/debian-security#g" /etc/apt/sources.list ``` 5. 更换 CEPH 源 ```bash echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list sed -i.bak "s#http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g" /usr/share/perl5/PVE/CLI/pveceph.pm ``` 6. 更换 LXC 源(根据自身情况判断是否更换!!!) ```bash sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm wget -O /var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn https://mirrors.ustc.edu.cn/proxmox/images/aplinfo-pve-7.dat systemctl restart pvedaemon ``` 7. 更新 ```bash apt update && apt upgrade -y ``` 14. 删除订阅弹窗(非必要步骤!!!) ```bash sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service ``` > 执行完成后,浏览器Ctrl+F5强制刷新缓存。