Bookmark

Disable the Proxmox enterprise repository and subscription notice

A Proxmox VE installation may point at the enterprise repository and display a subscription notice. This i12bretro tutorial switches to pve-no-subscription and provides separate notice-edit branches for Proxmox 6, 7, 8, and 9. I keep the branches separate so a reader does not run a release-specific edit against the wrong file.1

Youtube video player

The original i12bretro video was checked through YouTube oEmbed for title and author; I embed the player only and do not re-host it.2

Prerequisites

Log in to Proxmox VE at the console or root web shell. This changes package repositories and Proxmox Perl/JavaScript files, so I record pveversion --verbose, keep the console available, and retain the .bak files for rollback. Use the community repository only with a clear understanding of support and licensing.

Tutorial commands

Run the following block on the Proxmox host. The paths, sed expressions, and version comments remain from the source; select the one matching Proxmox 6/7/8/9 rather than blindly running every branch:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# disable proxmox commmercial repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
# disable enterprise ceph repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/ceph.list
# add the proxmox community repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-community.list
# update software repositories
apt update
# remove no subscription nag popup
# if running promox 6
sed -i.bak 's/NotFound/Active/g' /usr/share/perl5/PVE/API2/Subscription.pm
# if running proxmox 7
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
# if running proxmox 8
sed -i.bak '/.*data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js;
# if running proxmox 9
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
# restart pveproxy service
systemctl restart pveproxy.service

Log in again and verify

Log out of the Proxmox web UI and log back in. Check apt update, the pveproxy service, the .bak files, and the active repository. If the UI breaks, restore the corresponding .bak file from the console and restart pveproxy; a missing popup alone does not prove the repository is correct.

This article does not change subscription licensing or make enterprise packages supported without a subscription. It only explains the community-repository path from the source.

Sources


  1. https://i12bretro.github.io/tutorials/0446.html — i12bretro tutorial 0446. Independently edited from the numbered HTML page; version branches are preserved and the original video remains an embedded player. ↩︎

  2. https://www.youtube.com/watch?v=1liGVX6oSrE — Disable Proxmox Nagging Subscription Popup and Enterprise Apt Repository — i12bretro ↩︎


0 Bình luận

Góp Ý / Bình Luận / Đánh giá