Предыстория: Мой тестовый полигон на базе материнской платы материнской платой 970A-DS3P
Motherboard: Gigabyte 970A-DS3P
RAM: CMZ8GX3M1A160 x 4 = 32Gb
CPU: AMD FX(tm)-6300 Six-Core Processor
Диски: M.2,SSD - много дисков.
когда был версии 6.4-13
после обновления не поднялся, пришлось что бы не тратить время вчера (01.09.2025) его переустановить посредством загрузки с Zalman VE500
того образа, который на нем был. На всякий случай "Лечим ошибку No iso file on Zalman VE500"
.
По итогу сейчас имею версию Proxmox 6.4-4
Задача: Произвести обновление до самого последнего релиза.
Если ранее я уже на другом сервере проходил процедуру обновления, там все прошло успешно, то теперь очередь текущего:
Шаг №1:
Как убрать окно недействующей подписки Proxmox 6
Шаг №2:
Применяем заметку: "Обновление Proxmox 6.3.6 до самого последнего релиза"
вот только получаю
root@srv-proxmox01:~# apt-get update
Ign:1 http://ftp.ru.debian.org/debian buster InRelease
Ign:2 http://ftp.ru.debian.org/debian buster-updates InRelease
Err:3 http://ftp.ru.debian.org/debian buster Release
404 Not Found [IP: 85.143.112.112 80]
Ign:4 http://security.debian.org buster/updates InRelease
Err:5 http://ftp.ru.debian.org/debian buster-updates Release
404 Not Found [IP: 85.143.112.112 80]
Get:6 http://download.proxmox.com/debian/pve buster InRelease [2,659 B]
Err:7 http://security.debian.org buster/updates Release
404 Not Found [IP: 151.101.66.132 80]
Get:8 http://download.proxmox.com/debian/pve buster/pve-no-subscription amd64 Packages [467 kB]
Reading package lists... Done
E: The repository 'http://ftp.ru.debian.org/debian buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ftp.ru.debian.org/debian buster-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://security.debian.org buster/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Такие ошибки почти всегда означают “такого репозитория нет”.
root@srv-proxmox01:~# nano /etc/apt/sources.list
#deb http://ftp.ru.debian.org/debian buster main contrib
#deb http://ftp.ru.debian.org/debian buster-updates main contrib
# security updates
#deb http://security.debian.org buster/updates main contrib
deb http://archive.debian.org/debian buster main contrib non-free
deb http://archive.debian.org/debian-security buster/updates main contrib non-free
root@srv-proxmox01:~# rm -rf /var/lib/apt/lists/
root@srv-proxmox01:~# apt-get update
успешно, далее
https://172.33.33.25:8006 - user&pass - (Server View) Datacenter - srv-proxmox01 - Updates
– и нажимаю ">_ Upgrade"
231 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 320 MB of archives.
After this operation, 348 MB of additional disk space will be used.
Do you want to continue? [Y/n]
нажимаю клавишу "y"
, а затем клавишу "ENTER"
и ожидаю
Your System is up-to-date
Seems you installed a kernel update - Please consider rebooting
this node to activate the new kernel.
starting shell
Отправляю систему в перезагрузку
root@srv-proxmox01:/# reboot
Шаг №3:
После смотрю, что версия Proxmox
стала 6.5-14 (Support for Proxmox VE 6.4 ends on 2022-07-31)
, т.е. я получил максиму в рамках релиза Debian 10
, стало быть мне нужно обновить сам релиз:
Change all instances of buster to bullseye
root@srv-proxmox01:~# nano /etc/apt/sources.list
#deb http://archive.debian.org/debian buster main contrib non-free
#deb http://archive.debian.org/debian-security buster/updates main contrib non-free
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
root@srv-proxmox01:~# apt-get update
Fetched 15.4 MB in 7s (2,163 kB/s)
Reading package lists... Done
root@srv-proxmox01:~#
root@srv-proxmox01:~# apt-get full-upgrade -y
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
root@srv-proxmox01:~#
root@srv-proxmox01:~# touch /please-remove-proxmox-ve
root@srv-proxmox01:~# apt purge proxmox-ve
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
proxmox-ve*
0 upgraded, 0 newly installed, 1 to remove and 523 not upgraded.
After this operation, 23.6 kB disk space will be freed.
Do you want to continue? [Y/n]
нажимаю на клавиатуре клавишу "y"
W: (pve-apt-hook) '/please-remove-proxmox-ve' exists, proceeding with removal of package 'proxmox-ve'
(Reading database ... 51516 files and directories currently installed.)
Removing proxmox-ve (6.4-1) ...
(Reading database ... 51510 files and directories currently installed.)
Purging configuration files for proxmox-ve (6.4-1) ...
root@srv-proxmox01:~#
root@srv-proxmox01:~# apt-get full-upgrade -y
Keyboard layout:
выбираю"English (US)"
и нажимаю клавишу"ENTER"
The default action is to keep your current version.
*** issue (Y/I/N/O/D/Z) [default=N] ?
нажимаю клавишу "ENTER"
Restart services during package upgrades without asking?
выбираю "YES"
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
root@srv-proxmox01:~#
root@srv-proxmox01:~# reboot
root@srv-proxmox01:~# uname -a && cat /etc/os-release
Linux srv-proxmox01 5.4.203-1-pve #1 SMP PVE 5.4.203-1 (Fri, 26 Aug 2022 14:43:35 +0200) x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Шаг №4:
Так обновились с Debian 10
на Debian 11
, теперь произведем обновление с Debian 11
на Debian 12:
root@srv-proxmox01:~# nano /etc/apt/sources.list
#debian 10
#deb http://archive.debian.org/debian buster main contrib non-free
#deb http://archive.debian.org/debian-security buster/updates main contrib non-free
#debian 11
#deb http://deb.debian.org/debian bullseye main contrib non-free
#deb http://deb.debian.org/debian bullseye-updates main contrib non-free
#deb http://security.debian.org/debian-security bullseye-security main contrib non-free
#debian 12
deb http://deb.debian.org/debian bookworm main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
deb http://security.debian.org/debian-security bookworm-security main contrib non-free
root@srv-proxmox01:~# rm -Rf /var/lib/apt/lists
root@srv-proxmox01:~# apt-get update
Fetched 16.4 MB in 5s (3,386 kB/s)
Reading package lists... Done
root@srv-proxmox01:~#
root@srv-proxmox01:~# apt-get upgrade -y
W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
root@srv-proxmox01:~#
root@srv-proxmox01:~# apt-get full-upgrade -y
W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
После система не получила IP
, выключил ее и включил и сеть появилась (точнее я к ней не мог подключиться по SSH
и подумал что-то пошло не так), либо надо было подождать, но я был нетерпелив:
root@srv-proxmox01:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp3s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 172.33.33.25/24
gateway 172.33.33.100
bridge-ports enp3s0
bridge-stp off
bridge-fd 0
root@srv-proxmox01:~# uname -a && cat /etc/os-release
Linux srv-proxmox01 5.4.203-1-pve #1 SMP PVE 5.4.203-1 (Fri, 26 Aug 2022 14:43:35 +0200) x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Итого ось обновили.
Шаг №5:
Привожу репозитарии Debian
и Proxmox
к правильному виду:
root@srv-proxmox01:~# nano /etc/apt/sources.list.d/pve.list
#deb http://download.proxmox.com/debian/pve buster pve-no-subscription
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
root@srv-proxmox01:~# wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
root@srv-proxmox01:~# apt-get update
Get:1 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
Get:5 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages [509 kB]
Fetched 509 kB in 1s (582 kB/s)
Reading package lists... Done
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
Исходя из вывода выше видоизменяем содержимое sources.list:
root@srv-proxmox01:~# nano /etc/apt/sources.list
#debian 10
#deb http://archive.debian.org/debian buster main contrib non-free
#deb http://archive.debian.org/debian-security buster/updates main contrib non-free
#debian 11
#deb http://deb.debian.org/debian bullseye main contrib non-free
#deb http://deb.debian.org/debian bullseye-updates main contrib non-free
#deb http://security.debian.org/debian-security bullseye-security main contrib non-free
#debian 12
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
root@srv-proxmox01:~# apt-get update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Get:2 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Hit:3 http://deb.debian.org/debian bookworm InRelease
Get:4 http://security.debian.org/debian-security bookworm-security/non-free-firmware amd64 Packages [688 B]
Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
Get:6 http://security.debian.org/debian-security bookworm-security/non-free-firmware Translation-en [472 B]
Get:7 http://deb.debian.org/debian bookworm/non-free-firmware amd64 Packages [6,372 B]
Get:8 http://deb.debian.org/debian bookworm/non-free-firmware Translation-en [20.9 kB]
Fetched 31.2 kB in 1s (45.5 kB/s)
Reading package lists... Done
root@srv-proxmox01:~#
root@srv-proxmox01:~# apt-cache show proxmox-ve | grep Version | head -n 5
Version: 8.4.0
Version: 8.3.0
Version: 8.2.0
Version: 8.1.0
Version: 8.0.2
Шаг №6:
Устанавливаю Proxmox
из обновленного репозитария:
root@srv-proxmox01:~# apt-get install -y proxmox-ve open-iscsi
Отправляю систему в перезагрузку и когда система загрузится, проверяю, что Web URL
на доступ к виртуализации Proxmox
работает, т.е. URL
ссылка примет вид: https://172.33.33.25:8006
вижу окно аутентификации, указываю данные аутентификации
User name: root
Password: 712mbddr@
Realm: Linux PAM standard authentication
Language: English - English
Save User name: отмечаю галочкой
и нажимаю "Login"
, если все сделано правильно, то вижу
Отлично! У меня получилось проработать как произвести обновление с Debian 10 + Proxmox 6.4-4
до Debian 12 + Proxmox 8.4-12.
Но это я делал на чистую систему, на боевой я бы не стал таким заниматься, либо же мигрировал все виртуальные машины на другой хост и только после проводил обновление.
На этом заметку завершаю, с уважением автор блога Олло Александр aka ekzorchik.