📜  proxmox disable nag (1)

📅  最后修改于: 2023-12-03 15:33:48.494000             🧑  作者: Mango

Proxmox Disable Nag

Proxmox is an open-source server virtualization platform that allows users to run virtual machines and containers in a single web-based interface. However, Proxmox comes with a nag message that reminds users to purchase a subscription license. This nag message can be annoying for users who do not want to purchase a license or who are simply testing the platform. Luckily, there are ways to disable the Proxmox nag message.

Method 1: Editing the Proxmox Source Code

Disabling the Proxmox nag message can be done by editing the source code. However, this method is not recommended as it can break your Proxmox installation and void your support agreement. Here are the steps to disable the Proxmox nag message by editing the source code:

  1. SSH into your Proxmox server.
  2. Go to the /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js file:
    nano /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
    
  3. Search for and remove the following lines of code:
    if (data.status !== 'Active') {
        Ext.create('Proxmox.window.Status', {
            modal: true,
            html: gettext('You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.'),
            width: 600,
        }).show();
    }
    
  4. Save the changes and exit the editor.
  5. Stop and start the Proxmox web interface:
    systemctl stop pveproxy
    systemctl start pveproxy
    systemctl restart pvedaemon
    
Method 2: Using a Script

A simpler way to disable the Proxmox nag message is to use a script. Here are the steps to use a script to disable the Proxmox nag message:

  1. SSH into your Proxmox server.
  2. Download the script:
    wget https://raw.githubusercontent.com/ahuacate/proxmox-disable-nag/master/proxmox_disable_nag.sh
    
  3. Make the script executable:
    chmod +x proxmox_disable_nag.sh
    
  4. Run the script:
    ./proxmox_disable_nag.sh
    
  5. Stop and start the Proxmox web interface:
    systemctl stop pveproxy
    systemctl start pveproxy
    systemctl restart pvedaemon
    

The script will edit the /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js file and remove the nag message code.

Conclusion

Disabling the Proxmox nag message can be done by editing the source code or using a script. However, editing the source code is not recommended as it can break your Proxmox installation and void your support agreement. The recommended method is to use the script provided above. Remember to stop and start the Proxmox web interface after making changes to the proxmoxlib.js file.