Proxmox 버전 업그레이드 [Proxmox 시리즈 #7]
Proxmox 시리즈의 마지막 장으로 Proxmox 버전 업그레이드 방법을 알아보세요.
Proxmox 8.0은 2023년 6월 22일에 출시되었으며 흥미로운 새로운 기능으로 가득 차 있습니다. 주요 내용 중 공식 Proxmox 포럼에서 직접 가져온 내용은 다음과 같습니다.
Debian 12(최신 Linux 커널 6.2 사용)
QEMU 8.0.2, LXC 5.0.2, ZFS 2.1.12
Ceph Quincy 17.2가 기본값이며 지속적인 지원이 제공됩니다.
-
이제 모든 Proxmox VE 구독을 통해 액세스할 수 있는 Ceph용 엔터프라이즈 저장소가 있어 프로덕션 시스템에 최고의 안정성을 제공합니다.
설치 프로그램 ISO를 위한 추가 텍스트 기반 사용자 인터페이스(TUI)입니다.
Proxmox VE의 ACL 시스템에 가상 게스트를 구성할 때 호스트 네트워크 브리지와 VNet 액세스를 통합합니다.
액세스 영역 동기화 작업을 추가하여 정기적으로 자동으로 LDAP/AD 서버의 사용자 및 그룹을 편리하게 동기화하세요.
VM의 새로운 기본 CPU 유형: x86-64-v2-AES
리소스 매핑: PCI(e) 또는 USB 장치와 Proxmox VE 클러스터의 노드 간.
수많은 GUI 및 API 개선.
기존 VM을 매우 쉽게 백업한 다음 새 버전의 Proxmox로 서버를 다시 설치할 수 있지만 버전 7.4에서 버전 8.0으로 전체 업그레이드를 수행하는 방법을 보여 드리겠습니다.
1.) 먼저, 업그레이드 중에 문제가 발생할 경우를 대비해 기존 가상 머신과 컨테이너를 모두 백업했는지 확인하세요. 그런 다음 클러스터를 종료하거나, 클러스터가 있고 고가용성을 유지해야 하는 경우 업그레이드할 노드에서 멀리 마이그레이션해야 합니다. 가상 머신 백업 및 노드 클러스터 구축에 대한 튜토리얼을 확인하여 해당 작업에 대해 자세히 알아보세요. 또한 노드에 대한 SSH 또는 콘솔 액세스와 함께 루트 마운트 지점에 최소 5GB의 디스크 공간이 필요합니다. (그게 더 안전해요)
root@upgrade:~# qm list
VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID
100 backuptest stopped 2048 32.00 0
2.) 시스템이 APT를 사용하는 최신 Proxmox VE 7.4 패키지를 사용하고 있는지 확인하십시오.
apt update
apt dist-upgrade
pveversion
마지막 명령은 최소한 v7.4.15를 반환해야 합니다.
참고: 유료 기업 지원을 구독하지 않은 경우 기업 저장소를 비활성화하고 테스트 저장소를 활성화해야 할 수도 있습니다. 노드를 클릭한 다음 "업데이트" 아래의 "저장소"를 클릭하고 엔터프라이즈 저장소를 비활성화하면 "테스트" 저장소를 추가할 수 있습니다.
3.) 최신 proxmox 7.4 패키지에는 pve7to8이라는 도구가 함께 제공됩니다. 업그레이드하려는 노드의 터미널 세션에서 이를 실행하려고 합니다.
pve7to8 --full
스크립트는 향후 업그레이드 프로세스에서 발견된 잠재적인 문제를 확인하고 보고하지만 문제를 복구하지는 않습니다. 수정해야 할 문제가 있는 경우 문제를 수정하면서 스크립트를 다시 실행하여 문제가 실제로 해결되었는지 확인해야 합니다. 업그레이드 중인 노드에서 가상 머신을 마이그레이션하지 않은 경우 스크립트에서 해당 VM이 있다는 경고를 표시할 수 있지만 HA가 필요하지 않은 경우에는 무시해도 됩니다.
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =
Checking for package updates..
PASS: all packages up-to-date
Checking proxmox-ve package version..
PASS: proxmox-ve package has version >= 7.4-1
Checking running kernel version..
PASS: running kernel '5.15.102-1-pve' is considered suitable for upgrade.
= CHECKING CLUSTER HEALTH/SETTINGS =
SKIP: standalone node.
= CHECKING HYPER-CONVERGED CEPH STATUS =
SKIP: no hyper-converged ceph setup detected!
= CHECKING CONFIGURED STORAGES =
PASS: storage 'local' enabled and active.
PASS: storage 'local-lvm' enabled and active.
INFO: Checking storage content type configuration..
PASS: no storage content problems found
PASS: no storage re-uses a directory for multiple content types.
= MISCELLANEOUS CHECKS =
INFO: Checking common daemon services..
PASS: systemd unit 'pveproxy.service' is in state 'active'
PASS: systemd unit 'pvedaemon.service' is in state 'active'
PASS: systemd unit 'pvescheduler.service' is in state 'active'
PASS: systemd unit 'pvestatd.service' is in state 'active'
INFO: Checking for supported & active NTP service..
PASS: Detected active time synchronisation unit 'chrony.service'
INFO: Checking for running guests..
PASS: no running guest detected.
INFO: Checking if the local node's hostname 'upgrade' is resolvable..
INFO: Checking if resolved IP is configured on local node..
PASS: Resolved node IP '192.168.122.230' configured and active on single interface.
INFO: Check node certificate's RSA key size
PASS: Certificate 'pve-root-ca.pem' passed Debian Busters (and newer) security level for TLS connections (4096 >= 2048)
PASS: Certificate 'pve-ssl.pem' passed Debian Busters (and newer) security level for TLS connections (2048 >= 2048)
INFO: Checking backup retention settings..
PASS: no backup retention problems found.
INFO: checking CIFS credential location..
PASS: no CIFS credentials at outdated location found.
INFO: Checking permission system changes..
INFO: Checking custom role IDs for clashes with new 'PVE' namespace..
PASS: no custom roles defined, so no clash with 'PVE' role ID namespace enforced in Proxmox VE 8
INFO: Checking if LXCFS is running with FUSE3 library, if already upgraded..
SKIP: not yet upgraded, no need to check the FUSE library version LXCFS uses
INFO: Checking node and guest description/note length..
PASS: All node config descriptions fit in the new limit of 64 KiB
PASS: All guest config descriptions fit in the new limit of 8 KiB
INFO: Checking container configs for deprecated lxc.cgroup entries
PASS: No legacy 'lxc.cgroup' keys found.
INFO: Checking if the suite for the Debian security repository is correct..
PASS: found no suite mismatch
INFO: Checking for existence of NVIDIA vGPU Manager..
PASS: No NVIDIA vGPU Service found.
INFO: Checking bootloader configuration...
SKIP: not yet upgraded, no need to check the presence of systemd-boot
SKIP: No containers on node detected.
= SUMMARY =
TOTAL: 29
PASSED: 24
SKIPPED: 5
WARNINGS: 0
FAILURES: 0
root@upgrade:/#
4.) 모든 Debian 및 Proxmox VE 저장소 항목을 bookworm으로 업데이트합니다.
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
5.) 저장소 패키지 색인을 업데이트합니다.
apt update
6.) 시스템을 Debian Bookworm 및 Proxmox VE 8.0으로 업데이트합니다.
apt dist-upgrade
이 명령이 완료되는 시간은 서버의 처리 성능에 따라 다릅니다. Proxmox 설치가 빠른 SSD 드라이브를 기반으로 하는 경우 기계식 드라이브에 설치된 것보다 속도가 더 빨라집니다. 이 프로세스에서는 구성 파일에 대한 다양한 변경 사항을 승인하도록 요청합니다. 다음은 공식 Proxmox 업그레이드 문서에서 권장되는 선택 사항입니다.
/etc/issue -> Proxmox VE will auto-generate this file on boot, and it has only cosmetic effects on the login console.
Using the default "No" (keep your currently-installed version) is safe here.
/etc/lvm/lvm.conf -> Changes relevant for Proxmox VE will be updated, and a newer config version might be useful.
If you did not make extra changes yourself and are unsure it's suggested to choose "Yes" (install the package maintainer's version) here.
/etc/ssh/sshd_config -> If you have not changed this file manually, the only differences should be a replacement of ChallengeResponseAuthentication no with KbdInteractiveAuthentication no and some irrelevant changes in comments (lines starting with #).
If this is the case, both options are safe, though we would recommend installing the package maintainer's version in order to move away from the deprecated ChallengeResponseAuthentication option. If there are other changes, we suggest to inspect them closely and decide accordingly.
/etc/default/grub -> Here you may want to take special care, as this is normally only asked for if you changed it manually, e.g., for adding some kernel command line option.
It's recommended to check the difference for any relevant change, note that changes in comments (lines starting with #) are not relevant.
If unsure, we suggested to selected "No" (keep your currently-installed version)
7.) 스크립트가 성공적으로 종료되면 pve7to8 검사기 스크립트를 한 번 더 실행합니다.
pve7to8 --full
8.) 문제가 없으면 계속해서 재부팅하세요. 성공하면 새로운 proxmox 설치가 시작됩니다. 이제 VM을 다시 시작할 수 있습니다. 이제 끝났습니다!