fix(images): unblock guest-exec in RHEL-family cloud images
The RHEL-family qemu-guest-agent package starts the agent with an allow-list that omits guest-exec, guest-exec-status and guest-file-* (FILTER_RPC_ARGS in /etc/sysconfig/qemu-ga; older packages spelled the same restriction as BLOCK_RPCS or BLACKLIST_RPC). The agent answered "The command guest-exec has been disabled for this instance", so running scripts in a VM, assigning extra IP addresses and growing the filesystem after a disk resize did not work on Rocky Linux, AlmaLinux, CentOS Stream and Fedora guests. - patch-cloud-images.sh: clear all three variants while building the mirror (UNBLOCK_RPC=0 opts out) and add an ONLY filter to rebuild only part of the catalog. Three `[ ... ] && ...` statements that aborted the script under set -e are now plain ifs -- the one before mirrors.json generation killed every run that passed BASE_URL - builtin.py: point the five RHEL-family amd64 entries at the rebuilt mirror release 2026-08-22 with their new checksums. Ubuntu and Debian images are unaffected and stay in the previous releases, so older panel versions keep working - client.py: annotate the Proxmox error with what to clear inside the guest, the raw message names neither the file nor the variable - WIKI, CHANGELOG: document the restriction and the unblock command
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
Встроенный curated-каталог cloud-образов ВМ (qcow2).
|
||||
|
||||
amd64-образы берутся с собственного GitHub-зеркала (markmorado/pvemanager-images)
|
||||
с предустановленным qemu-guest-agent и фиксированным sha256. arm64-образы идут
|
||||
напрямую с upstream-серверов дистрибутивов (патченых arm64-версий нет).
|
||||
с предустановленным qemu-guest-agent и фиксированным sha256; у RHEL-семейства
|
||||
там же снято штатное ограничение RPC, иначе агент отказывает в guest-exec (см.
|
||||
patch-cloud-images.sh). arm64-образы идут напрямую с upstream-серверов
|
||||
дистрибутивов (патченых arm64-версий нет).
|
||||
|
||||
LXC-шаблоны (vztmpl) здесь НЕ хардкодятся: их список берётся динамически из
|
||||
репозитория Proxmox (aplinfo), плюс произвольные vztmpl-зеркала из ImageMirror.
|
||||
@@ -16,6 +18,7 @@ from typing import Dict, List, Optional, Tuple
|
||||
|
||||
_GH = 'https://github.com/markmorado/pvemanager-images/releases/download/2026-08-14'
|
||||
_GH2 = 'https://github.com/markmorado/pvemanager-images/releases/download/2026-08-18'
|
||||
_GH3 = 'https://github.com/markmorado/pvemanager-images/releases/download/2026-08-22'
|
||||
|
||||
# (id_base, os, version, name, icon, {arch: (url, checksum_or_None)})
|
||||
# amd64 → собственное GitHub-зеркало + sha256; arm64 → upstream без checksum
|
||||
@@ -55,32 +58,32 @@ _CLOUD_IMAGES = [
|
||||
(
|
||||
'rocky-9-cloud', 'rocky', '9', 'Rocky Linux 9 GenericCloud', 'rocky',
|
||||
{
|
||||
'amd64': (f'{_GH}/Rocky-9-GenericCloud.latest.x86_64.qcow2',
|
||||
'a01fbfa6750c2a7f1c290f7e2ab51bfdbb564e95413f8f52ab27175a7646e30b'),
|
||||
'amd64': (f'{_GH3}/Rocky-9-GenericCloud.latest.x86_64.qcow2',
|
||||
'c15042de9805e2b9581715d46361484a2c94187a15608344f85e775fb34081f5'),
|
||||
'arm64': ('https://download.rockylinux.org/pub/rocky/9/images/aarch64/Rocky-9-GenericCloud.latest.aarch64.qcow2', None),
|
||||
},
|
||||
),
|
||||
(
|
||||
'alma-9-cloud', 'almalinux', '9', 'AlmaLinux 9 GenericCloud', 'almalinux',
|
||||
{
|
||||
'amd64': (f'{_GH}/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2',
|
||||
'49c75c0b49d9831338d06288e7f751f98302144218b462e5d9b2b6fe25c66f5e'),
|
||||
'amd64': (f'{_GH3}/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2',
|
||||
'c3a21566c92c520c5ab9fa68e6ce38190ff173c531fbe0eea00573955d0b5131'),
|
||||
'arm64': ('https://repo.almalinux.org/almalinux/9/cloud/aarch64/images/AlmaLinux-9-GenericCloud-latest.aarch64.qcow2', None),
|
||||
},
|
||||
),
|
||||
(
|
||||
'alma-10-cloud', 'almalinux', '10', 'AlmaLinux 10 GenericCloud', 'almalinux',
|
||||
{
|
||||
'amd64': (f'{_GH2}/AlmaLinux-10-GenericCloud-latest.x86_64.qcow2',
|
||||
'd0bdbc4fabb365b27e8d4a77118c1100ebdab42341312338e63724a2f9ee217f'),
|
||||
'amd64': (f'{_GH3}/AlmaLinux-10-GenericCloud-latest.x86_64.qcow2',
|
||||
'7b91f6ad87aeac7193ece070e06e25406a76a7084d1628d89a5bb1ddd9d1642e'),
|
||||
'arm64': ('https://repo.almalinux.org/almalinux/10/cloud/aarch64/images/AlmaLinux-10-GenericCloud-latest.aarch64.qcow2', None),
|
||||
},
|
||||
),
|
||||
(
|
||||
'centos-stream-9-cloud', 'centos', '9-stream', 'CentOS Stream 9 GenericCloud', 'centos',
|
||||
{
|
||||
'amd64': (f'{_GH2}/CentOS-Stream-GenericCloud-9-latest.x86_64.qcow2',
|
||||
'63c13542e94678b0a41d318e7758f1cf23609564b1cbaa9051616457ce771903'),
|
||||
'amd64': (f'{_GH3}/CentOS-Stream-GenericCloud-9-latest.x86_64.qcow2',
|
||||
'd9818217c2ad20809973013f32094c2d82cbb74c08709afb4bef3d426b06dd37'),
|
||||
'arm64': ('https://cloud.centos.org/centos/9-stream/aarch64/images/CentOS-Stream-GenericCloud-9-latest.aarch64.qcow2', None),
|
||||
},
|
||||
),
|
||||
@@ -95,8 +98,8 @@ _CLOUD_IMAGES = [
|
||||
(
|
||||
'fedora-41-cloud', 'fedora', '41', 'Fedora 41 Cloud', 'fedora',
|
||||
{
|
||||
'amd64': (f'{_GH2}/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2',
|
||||
'6c12ad70a8b5058f032de10d463bda8c93391162e5a72a90c79dd548ecc8e378'),
|
||||
'amd64': (f'{_GH3}/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2',
|
||||
'40f101f44a83f714a1f586e6285f14a90e570c874a4bee2399873582b20dea80'),
|
||||
'arm64': ('https://download.fedoraproject.org/pub/fedora/linux/releases/41/Cloud/aarch64/images/Fedora-Cloud-Base-Generic-41-1.4.aarch64.qcow2', None),
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user