📅  最后修改于: 2023-12-03 15:33:48.494000             🧑  作者: Mango
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.
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:
/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
file:nano /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
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();
}
systemctl stop pveproxy
systemctl start pveproxy
systemctl restart pvedaemon
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:
wget https://raw.githubusercontent.com/ahuacate/proxmox-disable-nag/master/proxmox_disable_nag.sh
chmod +x proxmox_disable_nag.sh
./proxmox_disable_nag.sh
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.
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.