更新 PVE 初始化配置

This commit is contained in:
CallMeR
2023-06-26 15:36:23 +08:00
parent 294d2a1473
commit 6b035dd176
+10 -10
View File
@@ -1,6 +1,6 @@
## 1.更换软件源
在上一篇文章 [01.PVE系统安装](./01.PVE系统安装.md) 中,从刚装好的 PVE 系统中获取了系统的一些参数
在上一篇文章 [01.PVE系统安装](./01.PVE系统安装.md) 中,从刚装好的 PVE 系统中获取了系统的一些参数
![PVE系统信息](img/p01/pve_sys_info.jpeg)
@@ -12,7 +12,7 @@
### 1.1.系统软件源
使用 SSH 工具登录到 PVE 服务器,首先对现有的软件源配置进行备份
使用 SSH 工具登录到 PVE 服务器,首先对现有的软件源配置进行备份
```bash
## 进入系统软件源配置文件目录
@@ -25,7 +25,7 @@ cat sources.list
cp sources.list sources.list.bak
```
系统默认镜像配置记录如下
系统默认镜像配置记录如下
```bash
deb http://ftp.debian.org/debian bookworm main contrib
@@ -36,7 +36,7 @@ deb http://ftp.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org bookworm-security main contrib
```
这里我将使用 [中国科技大(USTC](http://mirrors.ustc.edu.cn/help/proxmox.html) 的镜像仓库进行替换,使用如下命令
这里我将使用 [中国科技大(USTC](http://mirrors.ustc.edu.cn/help/proxmox.html) 的镜像仓库进行替换,使用如下命令
**注意:该命令为两行,在输入时请逐行输入并回车执行。**
@@ -49,7 +49,7 @@ sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian
```
如果希望能更新 CPU 的 `microcode` ,则需要手动添加镜像 `non-free``non-free-firmware` 参数,完整系统源示例如下
如果希望能更新 CPU 的 `microcode` ,则需要手动添加镜像 `non-free``non-free-firmware` 参数,完整系统源示例如下
```bash
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
@@ -90,7 +90,7 @@ echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy $VERSION_CODENA
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve $VERSION_CODENAME pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
```
创建完成后对其进行检查
创建完成后对其进行检查
```bash
## 检查PVE免费源
@@ -99,7 +99,7 @@ cat /etc/apt/sources.list.d/ceph-no-subscription.list
cat /etc/apt/sources.list.d/pve-no-subscription.list
```
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行
```bash
## 输出内容参考:
@@ -115,7 +115,7 @@ deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
如果需要使用 Proxmox 网页端下载 CT Templates ,可替换 CT Templates 源。
由于该功能暂时未被使用,因此本文只做记录
由于该功能暂时未被使用,因此本文只做记录
```bash
## 替换 CT Templates 源
@@ -184,7 +184,7 @@ update-pciids
访问 PVE 的 WEB 管理界面,对 PVE 的网络进行一些调整。
根据内部网络地址规划,有如下内容
根据内部网络地址规划,有如下内容
|地址类型|作用|值|说明|
|--|--|--|--|
@@ -201,7 +201,7 @@ update-pciids
2. 根据实际测试,仅 PVE 纯内部网桥( `vmbr4` )可通过主路由获取 IPv6 地址。
因此,根据网络设备规划, PVE 中虚拟机有如下内容
因此,根据网络设备规划, PVE 中虚拟机有如下内容
|系统|作用|说明|
|--|--|--|