Skip to main content

Proxmox VE ohne Subscription: kostenlose Repositories nutzen und Subscription-Hinweis ausblenden

Proxmox VE 9: No-Subscription-Popup deaktivieren

Betroffene Datei

/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js

Vor der Änderung einmal sichern:

cp -a /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak

Fix

Datei öffnen:

nano /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js

Mit Strg + W nach folgendem Text suchen:

checked_command: function (orig_cmd)

Den vollständigen checked_command-Block durch diesen Block ersetzen:

checked_command: function (orig_cmd) {
    orig_cmd();
},

Danach speichern, Nano schließen und pveproxy neu starten:

systemctl restart pveproxy

Anschließend die Proxmox-Weboberfläche mit Strg + F5 neu laden.

Quick-Befehl

Wenn du die Datei nicht manuell bearbeiten willst, als root direkt in der Terminal-Session ausführen:

f=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; test -e "$f.bak" || cp -a "$f" "$f.bak"; python3 -c 'from pathlib import Path; p=Path("/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js"); s=p.read_text(); old="checked_command: function (orig_cmd) {"; new=old+" orig_cmd(); return;"; assert old in s, "checked_command wurde nicht gefunden"; p.write_text(s if new in s else s.replace(old,new,1))' && systemctl restart pveproxy && systemctl is-active pveproxy

Wenn am Ende active ausgegeben wird, läuft pveproxy wieder.

Änderung rückgängig machen

cp -a /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy

Nach Updates

Ein Update von proxmox-widget-toolkit kann die Datei ersetzen. Wenn das Popup danach wieder erscheint, den Fix erneut anwenden.