Solved Proxmox initial setup annoyances
-
So Proxmox is building on top of Debian and KVM. Great.
They want you to buy a subscription for support. Great.
Annoying the fuck out of you because you don't buy one? Not great.
Causing updates to not come down because you don't have one? Stupid.At least the updates, they talk about in their documentation.
Short answer: edit/etc/apt/sources.list.d/pve-enterprise.list
Comment out the enterprise repo and add the no subscription repo.# deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise # PVE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve buster pve-no-subscription
The fix for the nag is a simple one liner from John McLaren
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
-
The noted repo has been updated.
The "fix" is no longer required.
It also still works on ProxMox 7.0.0
apt update # you will get an error because of the enterprise repo. ignore it. apt install git -y git clone https://github.com/foundObjects/pve-nag-buster.git cd pve-nag-buster && ./install.sh # now update the system apt update && apt dist-upgrade -y # then reboot. reboot
-
If there is an update to proxmox-widget-toolkit you will end up needing to run that script again because proxmoxlib.js will be replaced.
You can confirm it by running this:
apt --reinstall install proxmox-widget-toolkit
You could create a dpkg post install hook script that will remove the license nag after each update. Or use the one provided at https://github.com/foundObjects/pve-nag-buster.
But the last time I used it, the variable,
NAGTOKEN="data.status.toLowerCase() !== 'Active'"
need to be change toNAGTOKEN="data.status.toLowerCase() !== 'active'"
https://github.com/foundObjects/pve-nag-buster/issues/3 -
@black3dynamite said in Proxmox initial setup annoyances:
If there is an update to proxmox-widget-toolkit you will end up needing to run that script again because proxmoxlib.js will be replaced.
You can confirm it by running this:
apt --reinstall install proxmox-widget-toolkit
That is all on the blog. I wasn't reposting his blog.
-
@JaredBusch said in Proxmox initial setup annoyances:
@black3dynamite said in Proxmox initial setup annoyances:
If there is an update to proxmox-widget-toolkit you will end up needing to run that script again because proxmoxlib.js will be replaced.
You can confirm it by running this:
apt --reinstall install proxmox-widget-toolkit
That is all on the blog. I wasn't reposting his blog.
My bad.
-
@JaredBusch said in Proxmox initial setup annoyances:
@black3dynamite said in Proxmox initial setup annoyances:
If there is an update to proxmox-widget-toolkit you will end up needing to run that script again because proxmoxlib.js will be replaced.
You can confirm it by running this:
apt --reinstall install proxmox-widget-toolkit
That is all on the blog. I wasn't reposting his blog.
Is this git by someone else?
I didn't look at that. Maybe his would be the answer because he says it works form 5.x to current.
-
The git repo is from someone else. But the pve-nag-buster script hasn't been updated with the fix for NAGTOKEN variable.
pve-nag-buster make changes to the data.status while the one from John McLaren changes Ext.Msg.show
-
@black3dynamite said in Proxmox initial setup annoyances:
The git repo is from someone else. But the pve-nag-buster script hasn't been updated with the fix for NAGTOKEN variable.
pve-nag-buster make changes to the data.status while the one from John McLaren changes Ext.Msg.show
When I reinstalled everything today, I looked at the github.
That also fixes the repo as well as the nag (minus the current bug).
-
I've always just dealt with the nag screen. I guess I'll have to give this a shot.
-
So with the git repo method, immediately after installing PM...
Even before opening the web console the first time..
Hit upssh
as root.apt update # you will get an error because of the enterprise repo. ignore it. apt install git -y git clone https://github.com/foundObjects/pve-nag-buster.git cd pve-nag-buster && ./install.sh # as of this writing, there is a bug in the git repo. so fix it. sed -i 's/NAGTOKEN="data.status !== \x27Active\x27"/NAGTOKEN="data.status.toLowerCase() !== \x27active\x27"/g' /usr/share/pve-nag-buster.sh bash /usr/share/pve-nag-buster.sh # now update the system apt update && apt dist-upgrade -y # then reboot. reboot
Now you have a clean install, fully updated and not nagging you.
-
@JaredBusch Thanks!
-
@JaredBusch said in Proxmox initial setup annoyances:
So with the git repo method, immediately after installing PM...
Even before opening the web console the first time..
Hit upssh
as root.apt update # you will get an error because of the enterprise repo. ignore it. apt install git -y git clone https://github.com/foundObjects/pve-nag-buster.git cd pve-nag-buster && ./install.sh # as of this writing, there is a bug in the git repo. so fix it. sed -i 's/NAGTOKEN="data.status !== \x27Active\x27"/NAGTOKEN="data.status.toLowerCase() !== \x27active\x27"/g' /usr/share/pve-nag-buster.sh bash /usr/share/pve-nag-buster.sh # now update the system apt update && apt dist-upgrade -y # then reboot. reboot
Now you have a clean install, fully updated and not nagging you.
you should make your git for this, fewer steps for people
-
@Dashrender said in Proxmox initial setup annoyances:
you should make your git for this, fewer steps for people
The owner of the above repo has not updated the repo in 11 months. The "issue" has only been hanging around since November 10th.
I know that issues posted to my github are not immediately noticed by me. Because I have email turned off. So not blaming this guy.
-
This post is deleted! -
The noted repo has been updated.
The "fix" is no longer required.
It also still works on ProxMox 7.0.0
apt update # you will get an error because of the enterprise repo. ignore it. apt install git -y git clone https://github.com/foundObjects/pve-nag-buster.git cd pve-nag-buster && ./install.sh # now update the system apt update && apt dist-upgrade -y # then reboot. reboot
-
You may have to clear browser cache to fully get rid of the nag. Mine kept coming back, clearing caches got rid of it.
-
@marcinozga said in Proxmox initial setup annoyances:
You may have to clear browser cache to fully get rid of the nag. Mine kept coming back, clearing caches got rid of it.
I run this prior to ever opening the web interface, so never an issue.
-
-