未订阅的PVE会有如下提示:
企业存储库需要有效订阅
You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.

在 /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js 文件中搜索 Proxmox.Utils.getNoSubKeyHtml关键词 , 然后做以下改动(增加一行)。
success: function(response, opts) {
let res = response.result;
// 新增下面这一行
res.data.status = 'active'
if (res === null || res === undefined || !res || res
.data.status.toLowerCase() !== 'active') {
Ext.Msg.show({
title: gettext('No valid subscription'),
icon: Ext.Msg.WARNING,
message: Proxmox.Utils.getNoSubKeyHtml(res.data.url),
buttons: Ext.Msg.OK,
callback: function(btn) {
if (btn !== 'ok') {
return;
}
orig_cmd();
},
});
} else {
orig_cmd();
}
}
参考资料: