diff --git a/01.PVE系统安装.md b/01.PVE系统安装.md index e79c7ad..eb8d926 100644 --- a/01.PVE系统安装.md +++ b/01.PVE系统安装.md @@ -1,69 +1,66 @@ -## 0.安装前准备 +## 0.前期准备 -PVE 系统正式安装之前,需要准备 PVE 的安装镜像和一些必要安装工具。 +PVE 系统正式安装之前,需要准备 PVE 的安装镜像和一些必要的配套工具。 +### 0.1. PVE 镜像下载 -### 0.1.PVE镜像下载 - -PVE 下载地址:https://www.proxmox.com/en/downloads +PVE 下载地址:https://www.proxmox.com/en/downloads -![下载PVE ISO文件](img/p01/pve_download_iso.png) +页面中可能有多个 PVE 的安装 ISO ,可以根据需要进行选择,目前以最新的 `Proxmox VE 8.0 ISO` 作为演示。 -点击 `Proxmox VE 7.x ISO Installer` 链接。此处可能有多个 PVE 的安装 ISO,可以根据需要进行选择。 +![下载PVE ISO文件](img/p01/pve_download_iso.jpeg) -此处我以目前最新的 `Proxmox VE 7.2 ISO` 作为演示。 - -![输入图片说明](img/p01/pve_iso_hash.png) +点击 `Proxmox VE 8.x ISO Installer` 链接。 下载 ISO 时请注意 `SHA256SUM` ,后续将使用该校验信息对下载下来的 ISO 进行校验,以确保 ISO 文件的完整性。 +![输入图片说明](img/p01/pve_iso_hash.jpeg) ### 0.2.启动盘制作工具 -考虑到制作 PVE 启动盘时,所使用的操作系统可能有 Windows、macOS、Linux,因此我这里推荐几个常用的写盘工具。 +考虑到制作 PVE 启动盘时,所使用的操作系统可能有 Windows 、macOS 、Linux ,因此这里推荐几个常用的写盘工具。 #### Ventoy 官方网站地址:https://www.ventoy.net/cn/index.html -强烈推荐的引导盘制作工具,也是我目前在用的写盘工具,优点是可以在一个 U 盘中放入复数个可引导的 ISO 文件。 +强烈推荐的引导盘制作工具,优点是可以在一个 U 盘中放入复数个可引导的 ISO 文件。 免去了多次格式化 U 盘再写入 ISO 文件的操作,非常友好。 -缺点是只支持 Windows、Linux。 - -![Ventoy写盘工具](img/p01/pve_ventoy.png) +缺点是只支持 Windows 、Linux 。 + +![Ventoy写盘工具](img/p01/pve_ventoy.jpeg) #### Etcher -官方网站地址:https://www.balena.io/etcher/ +官方网站地址:https://etcher.balena.io/ -跨平台的写盘工具,开源,写盘速度很快。缺点是该软件体积较大,下载缓慢。 +跨平台的写盘工具,开源,写盘速度很快,缺点是该软件体积较大,下载缓慢。 -支持 Windows、macOS、Linux。 +支持 Windows 、macOS 、Linux 。 -![Etcher写盘工具](img/p01/pve_etcher.png) +![Etcher写盘工具](img/p01/pve_etcher.jpeg) #### Rufus 官方网站地址:https://rufus.ie/zh/ -轻便小巧的写盘工具,仅支持 Windows。 +轻便小巧的写盘工具,仅支持 Windows 。 -![Rufus写盘工具](img/p01/pve_rufus.png) +![Rufus写盘工具](img/p01/pve_rufus.jpeg) +### 0.3. SSH 工具 -### 0.3.SSH工具 - -考虑到配置 PVE 服务器、路由器、DNS 服务器时,需要在 CLI 中输入命令,因此我这里推荐几个常用的 SSH 工具。 +考虑到配置 PVE 服务器、路由器、DNS 服务器时,需要在 CLI 中输入命令,因此这里推荐几个常用的 SSH 工具。 #### Tabby 官方网站地址:https://tabby.sh -基于 Electron 开发的开源跨平台终端工具,内部集成了 SFTP,可以在 Github 平台上进行下载。 +基于 Electron 开发的开源跨平台终端工具,内部集成了 SFTP ,可以在 Github 平台上进行下载。 -支持 Windows、macOS、Linux。 +支持 Windows 、macOS 、Linux 。 ![Tabby SSH工具](img/p01/pve_tabby.png) @@ -71,139 +68,146 @@ PVE 下载地址:https://www.proxmox.com/en/downloads 官方地址:https://mobaxterm.mobatek.net -功能强大的 SSH 工具,仅支持 Windows。 +功能强大的 SSH 工具,仅支持 Windows 。 ![MobaXterm](img/p01/pve_mobaxterm.png) - -## 01.PVE系统安装 +## 1. PVE 系统安装 由于机型不同,BIOS 的设置也不同,所以本文不演示具体如何将机器设置成从 U 盘启动。 在设置BIOS时需要注意以下几点: -- 暂时关闭 **“安全启动”** -- 确保打开硬件虚拟化支持 -- 确保硬盘的模式为“AHCI” -- 确保设备来电自动启动 -- 对于不支持UEFI启动的设备,检查Legacy引导模式 -- 检查CPU的功耗设置(可选) + +- 建议暂时关闭 **安全启动** 选项 + +- 确保打开硬件虚拟化支持 + +- 确保设备来电自动启动 + +- 对于不支持 `UEFI` 启动的设备,检查 `Legacy` 引导模式 + +- 检查 CPU 的功耗设置(可选) ### 1.1.设备引导 -我使用 Ventoy 进行设备引导后,出现如下画面,选择 PVE 的安装 ISO : +使用 Ventoy 进行设备引导后,出现如下画面,选择 PVE 的安装 ISO 。 -![Ventoy引导设备](img/p01/pve_ventoy_boot.png) +![Ventoy引导设备](img/p01/pve_ventoy_boot.jpeg) -等待引导跑码完成后,即进入 PVE 的安装界面。 +使用 `Boot in normal mode` 选项进行启动,等待引导跑码完成后,即可进入 PVE 的安装界面。 -### 1.2.PVE安装选项 +![Ventoy引导模式](img/p01/pve_ventoy_boot_mode.jpeg) -选择第一项 `Install Proxmox VE` 开始安装 PVE 。 +### 1.2. PVE 安装选项 -![PVE安装选项](img/p01/pve_option.png) +新版 PVE 安装程序支持纯键盘操作,常用快捷键如下。 -设备将会继续跑码,直到 EULA 最终用户许可协议出现,选择 `I agree` 。 +|键盘按键|作用|说明| +|--|--|--| +|Esc|返回|返回上一步骤| +|Enter|确认|确认输入,激活选项或进入下一步骤| +|方向键|导航|用于选项选择,或切换输入焦点| +|Tab|导航|与方向键功能类似| +|ALT + N|下一步|进入下一步骤| -![PVE用户协议](img/p01/pve_eula.png) +使用 `方向键` 选择第一项 `Install Proxmox VE (Graphical)` 图形化安装界面,按键盘 `Enter` 进入下一步骤。 -### 1.3.PVE磁盘选项 +![PVE安装选项](img/p01/pve_option.jpeg) -此时会出现 `Target Harddisk` 选项,会显示出设备中存在的磁盘列表。 +设备将继续跑码,直到出现最终用户许可协议 EULA ,按键盘组合键 `ALT + N ` 进入下一步骤。 -可以通过下拉框选择希望安装 PVE 的物理磁盘。 +![PVE用户协议](img/p01/pve_eula.jpeg) -![PVE选择安装磁盘](img/p01/pve_hd_choose.png) +### 1.3. PVE 硬盘选项 -点击磁盘列表右侧的 **Options** ,对 PVE 的磁盘安装参数进行一些调整。 +此时会出现 `Target Harddisk` 选项,会显示出设备中存在的硬盘列表,可通过下拉框选择安装 PVE 的目标硬盘。 -我推荐将 `Filesystem` 也就是磁盘的文件系统格式,设置成 **xfs** 。 +![PVE选择安装硬盘](img/p01/pve_hd_choose.jpeg) -如果设备安装的内存比较小,比如只有 `4GB` 、`8GB` ,可以酌情考虑将 `swapsize` 改大,比如 `8`(此处无需填写单位 GB )。 +点击硬盘列表右侧的 `Options` ,对 PVE 的硬盘安装参数进行一些调整。 -![PVE磁盘文件系统](img/p01/pve_hd_fs.png) +推荐将 `Filesystem` 也就是硬盘的文件系统,设置成 `xfs` 。 -虽然 PVE 系统会根据设备安装的内存大小自动计算合理的 `swapsize` ,但我安装了 `16GB` 内存,因此我此处仅给了 `4GB` 的空间作为交换空间。 +![PVE文件系统](img/p01/pve_hd_fs.jpeg) -### 1.4.PVE时区选项 +### 1.4. PVE 时区选项 -PVE 此时处于未接入互联网的 “离线” 安装状态,因此不会从互联网中读取时区信息,我们需要手动修改时区。 +此时 PVE 处于未联网的 “离线” 状态,因此不会从互联网中读取时区信息,需要手动设置时区。 -在 `Contry` 处手动输入 `China` ,下方的 `Time zone` 将自动变更为 `Asia/Shanghai` 。 +在 `Contry` 处手动输入 `China` ,下方的 `Time zone` 将自动变更为 `Asia/Shanghai` 。 -![PVE时区](img/p01/pve_timezone.png) +![PVE时区](img/p01/pve_timezone.jpeg) -### 1.5.PVE账户与邮箱 +### 1.5. PVE 账户与邮箱 PVE 为最关键的虚拟化层,建议使用强密码,包含大小写字母、数字以及特殊符号。 `Email` 必须为一个 “合法” 的邮箱地址,不然系统会判定邮箱地址不合法并拒绝继续安装。 -![PVE邮箱设置](img/p01/pve_email.png) +![PVE邮箱设置](img/p01/pve_email.jpeg) -### 1.6.PVE网络设置 +### 1.6. PVE 网络设置 -PVE 必须选择一个管理网口,默认情况下,PVE 会使用编号较小的第一个网口作为管理网口。 +默认情况下,PVE 会使用编号较小的第一个网口作为管理口。 -而有的设备物理网口顺序与该页面显示的网口顺序 **不一致** ,因此此处保持默认的第一个网口。 +而某些设备,其物理网口顺序与该页面显示的网口顺序 **不一致** ,因此保持默认设置即可。 -当 PVE 完全安装好之后, **会在 PVE 提供的 WEB 页面中对该管理网口设置进行调整** 。 +![PVE管理网口设置](img/p01/pve_eth.jpeg) -![PVE管理网口设置](img/p01/pve_eth.png) +根据之前的规划,设置 PVE 的 IPv4 管理地址( `172.16.1.254` )。 -根据我们之前的规划,对 PVE 的管理 IP(`172.16.1.254`)进行设置。 +需要说明的是 `Hostname` ,即 PVE 的主机名,PVE 将所使用输入的 “二级域名” 作为自己的主机名。 -需要说明的是 `Hostname` ,即 PVE 主机的名称,PVE 将使用输入的 “二级域名” 的名称作为自己的名称。 +演示地址为 `node01.fox.local` ,因此 PVE 使用的主机名为 `node01` 。 -演示内容输入的为 `node01.fox.local` ,因此 PVE 获取的主机名称为 `node01` 。 +规划中,未来主路由的 IPv4 地址为 `172.16.1.1` ,因此均使用该 IPv4 地址作为 PVE 的网关地址和 DNS 地址。 -我们规划未来主路由的IP地址为 `172.16.1.1` ,因此我们网关和 DNS 地址均使用该地址。 +当 PVE 安装完成后, 将使用 PVE 提供的 WEB 管理页面,进一步对该管理口的设置进行调整。 -- Hostname (FQDN) - - node01.fox.local -- IP Address (CIDR) - - 172.16.1.254/24 -- Gateway - - 172.16.1.1 -- DNS Server - - 172.16.1.1 +|参数|值|说明| +|--|--|--| +|Hostname (FQDN)|`node01.fox.local`|设置 PVE `域` 和 `主机名` | +|IP Address (CIDR)|`172.16.1.254/24`|设置 PVE IPv4 地址| +|Gateway|`172.16.1.1`|设置 PVE IPv4 网关| +|DNS Server|`172.16.1.1`|设置 PVE IPv4 DNS | -![PVE管理IP地址](img/p01/pve_ip.png) +![PVE管理IP地址](img/p01/pve_ip.jpeg) -### 1.7.PVE参数确认与安装 +### 1.7. PVE 参数确认与安装 -最后会显示出当前 PVE 安装的配置清单,确认无误后即可开始安装。 +该页面会显示当前 PVE 的安装配置总览,确认无误后即可开始安装。 -![PVE安装确认](img/p01/pve_install_confirm.png) +![PVE安装确认](img/p01/pve_install_confirm.jpeg) -安装完成后,PVE 会告知用户登录的 `IP 地址` 和 `端口` 。 +安装完成后,PVE 会告知用户登录的 `IP 地址` 和 `端口` 。 -![PVE安装完成](img/p01/pve_install_finish.png) +![PVE安装完成](img/p01/pve_install_finish.jpeg) - -## 2.PVE安装后检查 +## 2. PVE 安装后检查 PVE 安装完成后会自动重启,等待系统重启完成会显示如下界面,并使用 `root` 账户进行登录,密码为刚才设置的管理密码。 - **注意:Linux 操作系统,在输入密码时是不显示任何字符信息的,输入完成后输入回车即可。** +**注意:Linux 操作系统,在输入密码时是不显示任何字符信息的,输入完成后输入回车即可。** -![PVE首次重启](img/p01/pve_first_boot.png) - -登录系统后,我们使用一些命令来查看一些基本信息: - -![PVE系统信息](img/p01/pve_sys_info.png) +![PVE首次重启](img/p01/pve_first_boot.jpeg) +登录系统后,使用一些命令来查看一些基本信息。 ```bash -## 查看系统磁盘与挂载 +## 查看系统硬盘与挂载 df -hT +df -hiT + cat /etc/fstab ## 查看系统代号 cat /etc/os-release - ``` -此处显示出 PVE 底层使用的是 Debian 的系统,代号为 `bullseye` ,该代号后续会使用到。 +此处显示出 PVE 底层使用的是 Debian 的系统,代号为 `bookworm` ,该代号后续会使用到。 + +![PVE系统信息](img/p01/pve_sys_info.jpeg) + +至此 PVE 的安装步骤已经完成。 -至此 PVE 的安装步骤已经完成,后续将对管理网口的设置以及系统源进行调整,使用国内镜像源,去掉 PVE 的订阅仓库,使用开源 PVE 仓库。 \ No newline at end of file diff --git a/img/p01/pve_download_iso.jpeg b/img/p01/pve_download_iso.jpeg new file mode 100644 index 0000000..b829ba0 Binary files /dev/null and b/img/p01/pve_download_iso.jpeg differ diff --git a/img/p01/pve_download_iso.png b/img/p01/pve_download_iso.png deleted file mode 100644 index 22853b9..0000000 Binary files a/img/p01/pve_download_iso.png and /dev/null differ diff --git a/img/p01/pve_email.jpeg b/img/p01/pve_email.jpeg new file mode 100644 index 0000000..669705a Binary files /dev/null and b/img/p01/pve_email.jpeg differ diff --git a/img/p01/pve_email.png b/img/p01/pve_email.png deleted file mode 100644 index ad61d54..0000000 Binary files a/img/p01/pve_email.png and /dev/null differ diff --git a/img/p01/pve_etcher.jpeg b/img/p01/pve_etcher.jpeg new file mode 100644 index 0000000..09c1bac Binary files /dev/null and b/img/p01/pve_etcher.jpeg differ diff --git a/img/p01/pve_etcher.png b/img/p01/pve_etcher.png deleted file mode 100644 index e46801a..0000000 Binary files a/img/p01/pve_etcher.png and /dev/null differ diff --git a/img/p01/pve_eth.jpeg b/img/p01/pve_eth.jpeg new file mode 100644 index 0000000..77e63e2 Binary files /dev/null and b/img/p01/pve_eth.jpeg differ diff --git a/img/p01/pve_eth.png b/img/p01/pve_eth.png deleted file mode 100644 index 146d0c1..0000000 Binary files a/img/p01/pve_eth.png and /dev/null differ diff --git a/img/p01/pve_eula.jpeg b/img/p01/pve_eula.jpeg new file mode 100644 index 0000000..6941cbe Binary files /dev/null and b/img/p01/pve_eula.jpeg differ diff --git a/img/p01/pve_eula.png b/img/p01/pve_eula.png deleted file mode 100644 index b7e643a..0000000 Binary files a/img/p01/pve_eula.png and /dev/null differ diff --git a/img/p01/pve_first_boot.jpeg b/img/p01/pve_first_boot.jpeg new file mode 100644 index 0000000..0d553a9 Binary files /dev/null and b/img/p01/pve_first_boot.jpeg differ diff --git a/img/p01/pve_first_boot.png b/img/p01/pve_first_boot.png deleted file mode 100644 index 4dd40c7..0000000 Binary files a/img/p01/pve_first_boot.png and /dev/null differ diff --git a/img/p01/pve_hd_choose.jpeg b/img/p01/pve_hd_choose.jpeg new file mode 100644 index 0000000..df78fdc Binary files /dev/null and b/img/p01/pve_hd_choose.jpeg differ diff --git a/img/p01/pve_hd_choose.png b/img/p01/pve_hd_choose.png deleted file mode 100644 index cabcd90..0000000 Binary files a/img/p01/pve_hd_choose.png and /dev/null differ diff --git a/img/p01/pve_hd_fs.jpeg b/img/p01/pve_hd_fs.jpeg new file mode 100644 index 0000000..262dfa0 Binary files /dev/null and b/img/p01/pve_hd_fs.jpeg differ diff --git a/img/p01/pve_hd_fs.png b/img/p01/pve_hd_fs.png deleted file mode 100644 index f0e52ce..0000000 Binary files a/img/p01/pve_hd_fs.png and /dev/null differ diff --git a/img/p01/pve_install_confirm.jpeg b/img/p01/pve_install_confirm.jpeg new file mode 100644 index 0000000..4294389 Binary files /dev/null and b/img/p01/pve_install_confirm.jpeg differ diff --git a/img/p01/pve_install_confirm.png b/img/p01/pve_install_confirm.png deleted file mode 100644 index 7e76312..0000000 Binary files a/img/p01/pve_install_confirm.png and /dev/null differ diff --git a/img/p01/pve_install_finish.jpeg b/img/p01/pve_install_finish.jpeg new file mode 100644 index 0000000..b0aa30f Binary files /dev/null and b/img/p01/pve_install_finish.jpeg differ diff --git a/img/p01/pve_install_finish.png b/img/p01/pve_install_finish.png deleted file mode 100644 index 51f0251..0000000 Binary files a/img/p01/pve_install_finish.png and /dev/null differ diff --git a/img/p01/pve_ip.jpeg b/img/p01/pve_ip.jpeg new file mode 100644 index 0000000..d2b4268 Binary files /dev/null and b/img/p01/pve_ip.jpeg differ diff --git a/img/p01/pve_ip.png b/img/p01/pve_ip.png deleted file mode 100644 index 160aa6e..0000000 Binary files a/img/p01/pve_ip.png and /dev/null differ diff --git a/img/p01/pve_iso_hash.jpeg b/img/p01/pve_iso_hash.jpeg new file mode 100644 index 0000000..774996d Binary files /dev/null and b/img/p01/pve_iso_hash.jpeg differ diff --git a/img/p01/pve_iso_hash.png b/img/p01/pve_iso_hash.png deleted file mode 100644 index 5735af7..0000000 Binary files a/img/p01/pve_iso_hash.png and /dev/null differ diff --git a/img/p01/pve_option.jpeg b/img/p01/pve_option.jpeg new file mode 100644 index 0000000..89a2751 Binary files /dev/null and b/img/p01/pve_option.jpeg differ diff --git a/img/p01/pve_option.png b/img/p01/pve_option.png deleted file mode 100644 index b5fabd3..0000000 Binary files a/img/p01/pve_option.png and /dev/null differ diff --git a/img/p01/pve_rufus.jpeg b/img/p01/pve_rufus.jpeg new file mode 100644 index 0000000..330e4fb Binary files /dev/null and b/img/p01/pve_rufus.jpeg differ diff --git a/img/p01/pve_rufus.png b/img/p01/pve_rufus.png deleted file mode 100644 index 897659a..0000000 Binary files a/img/p01/pve_rufus.png and /dev/null differ diff --git a/img/p01/pve_sys_info.jpeg b/img/p01/pve_sys_info.jpeg new file mode 100644 index 0000000..cd6da29 Binary files /dev/null and b/img/p01/pve_sys_info.jpeg differ diff --git a/img/p01/pve_sys_info.png b/img/p01/pve_sys_info.png deleted file mode 100644 index 425ba37..0000000 Binary files a/img/p01/pve_sys_info.png and /dev/null differ diff --git a/img/p01/pve_timezone.jpeg b/img/p01/pve_timezone.jpeg new file mode 100644 index 0000000..030d10e Binary files /dev/null and b/img/p01/pve_timezone.jpeg differ diff --git a/img/p01/pve_timezone.png b/img/p01/pve_timezone.png deleted file mode 100644 index e30fe47..0000000 Binary files a/img/p01/pve_timezone.png and /dev/null differ diff --git a/img/p01/pve_ventoy.jpeg b/img/p01/pve_ventoy.jpeg new file mode 100644 index 0000000..17e680f Binary files /dev/null and b/img/p01/pve_ventoy.jpeg differ diff --git a/img/p01/pve_ventoy.png b/img/p01/pve_ventoy.png deleted file mode 100644 index 372499a..0000000 Binary files a/img/p01/pve_ventoy.png and /dev/null differ diff --git a/img/p01/pve_ventoy_boot.jpeg b/img/p01/pve_ventoy_boot.jpeg new file mode 100644 index 0000000..42e80c1 Binary files /dev/null and b/img/p01/pve_ventoy_boot.jpeg differ diff --git a/img/p01/pve_ventoy_boot.png b/img/p01/pve_ventoy_boot.png deleted file mode 100644 index 3d9efba..0000000 Binary files a/img/p01/pve_ventoy_boot.png and /dev/null differ diff --git a/img/p01/pve_ventoy_boot_mode.jpeg b/img/p01/pve_ventoy_boot_mode.jpeg new file mode 100644 index 0000000..2b177eb Binary files /dev/null and b/img/p01/pve_ventoy_boot_mode.jpeg differ