Proxmox 8에서 9로 업그레이드하기
메인서버가 아직 Proxmox 8 인데 언젠가.. 업데이트하기 위해서 테스트서버에서 한번 진행해봅니다 ㅎㅎ
공식 페이지를 참고하려고했는데;
왜인지 제 방문을 싫어하네요;

어쨋든 과정은 동일할것같아서 바로 진행해보겠습니다.
테스트 대상은 N150 mini pc 입니다

먼저 업그레이드 전에 구동중인 lxc나 vm은 반드시 종료해주시고 패키지를 한번 업데이트하고 진행해주겠습니다.
apt update && apt upgrade -y
++ proxmox 9 에서는 더이상 사용되지않는 apt remove -y systemd-boot 도 진행해주세요.

진행이 되었으면 아래 명령어로 업그레이드가 가능한지 체크합니다.
pve8to9 --full
명령어를 날리면 가능한지 이렇게 체크를하는데

에러하나 warn하나가 나왔네요
첫번째는
FAIL: systemd-boot meta-package installed. This will cause problems on upgrades of other boot-related packages. Remove 'systemd-boot' See https://pve.proxmox.com/wiki/Upgrade_from_8_to_9#sd-boot-warning for more information
위 에러는 proxmox 9 부터 systemd-boot 패키지를 사용하지 않아서 발생하는 에러로 아래 명령어로 제거해주시면됩니다.
apt remove -y systemd-boot 명령어로 패키지를 제거해주세요.
두번째는
WARN: The matching CPU microcode package 'intel-microcode' could not be found! Consider installing it to receive the latest security and bug fixes for your CPU.
Ensure you enable the 'non-free-firmware' component in the apt sources and run:
apt install intel-microcode
위 에러는 현재 최신버전의 마이크로코드 패키지가 설치되어있지않아서 발생하는 문제입니다.
echo "deb http://ftp.debian.org/debian bookworm main contrib non-free-firmware" >> /etc/apt/sources.list
apt update && apt install intel-microcode명령어로 패키지를 설치해주세요
진행되었다면 다시 pve8to9 --full 로 업데이트가 가능한지 체크합니다.

그리고 업그레이드를 위해 기존 레포 bookworm을 모두 trixie로 변경해줍니다.
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
그다음 apt update 로 패키지를 확인해봅니다.
590개의 패키지를 업데이트해야한다고 나오네요 ㄷㄷ

이제 아래 명령어로 업그레이드를 진행합니다
apt dist-upgrade

중간중간 enter를 눌러주시면 업그레이드 진행이 완료됩니다.
다되면 reboot로 재부팅을 1회 진행해주세요.

재부팅이 완료되고 다시 대시보드를 보면 업그레이드가 잘 되신것을 확인하실 수 있습니다.

끝..!