差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| tech:pve6to7 [2022/01/10 10:17] – jonathan | tech:pve6to7 [2022/06/22 08:54] (目前版本) – [執行升級] jonathan | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== | + | ====== PVE 6 升級到 7 紀錄 ====== |
| + | < | ||
| + | **實際採用 PEV 6 與 PVE 7 兩組 Cluster 並存的模式移轉運行, | ||
| + | </ | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| * 參考 - https:// | * 參考 - https:// | ||
| * 升級 cgroup-v2 需要讓 CT 內的 OS 升級至版本 Exp. CentOS 7 -> CentOS 8 | * 升級 cgroup-v2 需要讓 CT 內的 OS 升級至版本 Exp. CentOS 7 -> CentOS 8 | ||
| * 強制設定使用舊版 cgroup 似乎不是那容易搞定 [[https:// | * 強制設定使用舊版 cgroup 似乎不是那容易搞定 [[https:// | ||
| - | * 因環境有大量 CT 使用 CentOS 7, 考慮升級過程還能讓服務持續運作, | + | * 因環境有大量 CT 使用 CentOS 7, 考慮升級過程還能讓服務持續運作, |
| </ | </ | ||
| 行 25: | 行 29: | ||
| Either upgrade the Container distro or set systemd.unified_cgroup_hierarchy=0 in the Proxmox VE hosts' kernel cmdline! Skipping further CT compat checks. | Either upgrade the Container distro or set systemd.unified_cgroup_hierarchy=0 in the Proxmox VE hosts' kernel cmdline! Skipping further CT compat checks. | ||
| </ | </ | ||
| + | - 將所有 VM/CT 移到其他主機 | ||
| + | - 避免升級 PVE 7 後會更變 Bridge 的 MAC , 所以可以選擇以下其中一個方式處理: | ||
| + | * 安裝 ifupdown2 <cli> | ||
| + | apt install ifupdown2 -y | ||
| + | ifreload -a | ||
| + | </ | ||
| + | * 在 / | ||
| + | : | ||
| + | auto vmbr0 | ||
| + | iface vmbr0 inet static | ||
| + | address 192.168.X.Y/ | ||
| + | hwaddress aa: | ||
| + | # ... remaining options | ||
| + | </ | ||
| + | - 更新 apt repo 設定< | ||
| + | apt update | ||
| + | apt dist-upgrade | ||
| + | sed -i ' | ||
| + | </ | ||
| + | - 進行 Debian Bullseye 與 PVE 7 更新< | ||
| + | apt update | ||
| + | apt dist-upgrade | ||
| + | </ | ||
| + | W: (pve-apt-hook) !! ATTENTION !! | ||
| + | W: (pve-apt-hook) You are attempting to upgrade from proxmox-ve ' | ||
| + | W: (pve-apt-hook) | ||
| + | W: (pve-apt-hook) before proceeding with this operation. | ||
| + | W: (pve-apt-hook) | ||
| + | W: (pve-apt-hook) Press enter to continue, or C^c to abort. | ||
| + | </ | ||
| + | --------------------- | ||
| + | |||
| + | apt (2.1.16) unstable; urgency=medium | ||
| + | : | ||
| + | : | ||
| + | </ | ||
| + | | ||
| + | | ||
| + | What would you like to do about it ? Your options are: | ||
| + | Y or I : install the package maintainer' | ||
| + | N or O : keep your currently-installed version | ||
| + | D : show the differences between the versions | ||
| + | Z : start a shell to examine the situation | ||
| + | The default action is to keep your current version. | ||
| + | *** issue (Y/ | ||
| + | </ | ||
| + | | ||
| + | | ||
| + | What would you like to do about it ? Your options are: | ||
| + | Y or I : install the package maintainer' | ||
| + | N or O : keep your currently-installed version | ||
| + | D : show the differences between the versions | ||
| + | Z : start a shell to examine the situation | ||
| + | The default action is to keep your current version. | ||
| + | *** sysctl.conf (Y/ | ||
| + | </ | ||
| + | - 重新開機就會 PVE 7.x | ||
| ===== 參考網址 ===== | ===== 參考網址 ===== | ||
| * https:// | * https:// | ||
| - | {{tag> | + | {{tag> |