Say Goodbye to the Proxmox “No Valid Subscription” Nag: Two Easy Methods

Are you tired of the persistent “No valid subscription” warning message popping up in your Proxmox VE interface? While this message doesn’t impact the functionality of your virtual environment, it can be distracting and a bit of an eyesore.

In this guide, we’ll walk you through two straightforward methods to remove this nag screen. Whether you prefer a quick script or a more hands-on approach via the command line, we’ve got you covered.

Important Note: Removing the subscription nag does not grant you access to Proxmox enterprise repository updates if you don’t have a valid subscription. These methods solely address the visual warning.

Method 1: The Quick Script Solution

This method utilizes a handy post-install script from the Proxmox community, making the process incredibly simple.

Steps:

  1. Open your Proxmox VE console: You can do this directly on your server or via SSH.

  2. Execute the following command:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh)"

Community Post install Scirpt Link : https://community-scripts.github.io/ProxmoxVE/scripts?id=post-pve-install

  1. Follow the on-screen prompts: The script will likely ask for confirmation before making changes.

Benefit of Method 1:
  • Simplicity: This is the easiest and fastest method for most users.
  • Potential for Updates: This script might also configure your system to use the Proxmox no-subscription repository, allowing you to receive updates (though not the enterprise-level ones).

Method 2: The Manual File Modification via Shell CLI

This method involves directly editing a Proxmox JavaScript file using the command-line interface. It provides a more hands-on understanding of the change.

Steps:

  1. Open your Proxmox VE console: Again, either directly or via SSH.

  2. Create a backup of the file: It’s crucial to create a backup in case something goes wrong. Execute the following command:

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

This command copies the proxmoxlib.js file to proxmoxlib.js.bkup in the same directory.

  1. Edit the file using nano: Nano is a simple and user-friendly text editor for the command line.

    nano /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
    
  2. Search for the target text: Inside the nano editor, press Ctrl+W (for “Where is”). Then, type No valid and press Enter. This will take you to the line containing this text.

  3. Locate the line above “No valid”: You’re looking for a line that likely looks something like this:

    if (data.status !== 'Active') {
    
  4. Remove the exclamation mark (!): Change the line to:

    if (data.status == 'Active') {
    

    By removing the !, you are changing the condition to only show the nag if the status is not “Active”.

  5. Save the changes and exit nano:

    • Press Ctrl+O (for “Write Out”) to save the modified file. Press Enter to confirm the filename.
    • Press Ctrl+X (for “Exit”) to close the nano editor.
  6. Restart the pveproxy service: This service is responsible for the web interface. To apply your changes, restart it with the following command:

    systemctl restart pveproxy
    

Benefit of Method 2:

  • Direct Control: You have a clear understanding of the file being modified.
  • No External Script: You are not relying on a third-party script.

Important Limitation of Method 2:

  • No Update Capability: This method only removes the nag message. It does not change your repository settings, so you will not receive updates beyond the base Proxmox installation unless you manually configure the no-subscription repository.

Choosing the Right Method:

  • For most users, Method 1 (the script) is the recommended approach due to its simplicity and potential for enabling updates from the no-subscription repository.
  • Method 2 (manual file modification) is suitable for users who prefer a more hands-on approach and understand the implications of directly editing system files.

By following either of these methods, you can effectively remove the “No valid subscription” nag from your Proxmox VE interface and enjoy a cleaner, less cluttered experience. Remember to choose the method that best suits your technical comfort level and desired outcome.

Leave a Reply

Your email address will not be published. Required fields are marked *