This commit is contained in:
128
系统安装文档/PorxmoxVE安装文档.md
Normal file
128
系统安装文档/PorxmoxVE安装文档.md
Normal file
@@ -0,0 +1,128 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# PorxmoxVE安装文档
|
||||
|
||||
[官网](https://www.proxmox.com/en/) [ISO](https://enterprise.proxmox.com/iso/)
|
||||
|
||||
## 准备工作
|
||||
|
||||
1. 登录官网下载镜像
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720194208265.png" style="zoom: 50%;" />
|
||||
|
||||
2. 制作安装U盘
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240722094048963.png" style="zoom: 50%;" />
|
||||
|
||||
## 开始安装
|
||||
|
||||
1. 上下键选择桌面版(Graphical)回车
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720185451758.png" style="zoom: 50%;" />
|
||||
|
||||
2. 点击我同意
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720185723322.png" style="zoom: 50%;" />
|
||||
|
||||
3. 选择系统安装磁盘位置,点击我同意
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720185814927.png" style="zoom: 50%;" />
|
||||
|
||||
4. 选择地区 China,时区 Asia/Shanghai,键盘布局 U.S.English,点击我同意
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720185921809.png" style="zoom: 50%;" />
|
||||
|
||||
5. 配置平台登陆密码,填写邮箱,点击我同意
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720190045769.png" style="zoom: 50%;" />
|
||||
|
||||
6. 选择网卡,配置平台访问IP和网关地址,点击我同意
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720190319389.png" style="zoom: 50%;" />
|
||||
|
||||
7. 点击安装
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720190345393.png" style="zoom: 50%;" />
|
||||
|
||||
8. 等待安装完成后重启即可(注意!!!安装完重启时拔掉U盘)
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720190410286.png" style="zoom: 50%;" />
|
||||
|
||||
9. 出现这个画面则代表安装成功
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720190733844.png" style="zoom: 50%;" />
|
||||
|
||||
11. 选择语言,填写用户名密码后登录
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720191019973.png" style="zoom: 50%;" />
|
||||
|
||||
12. 忽略提示点击OK
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720191043872.png" style="zoom: 50%;" />
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240720201434354.png" style="zoom: 50%;" />
|
||||
|
||||
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强制刷新缓存。
|
Reference in New Issue
Block a user