Proxmox 5.1 released

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

BLinux

cat lover server enthusiast
Jul 7, 2016
2,672
1,081
113
artofserver.com
first you need to switch repo to no-subscription in "/etc/apt/sources.list.d/"
there is a file "pve-enterprise.list" in there. I usually go in an comment out everything there.
than edit "/etc/apt/sources.list" and add a line "deb Index of /debian/pve/ stretch pve-no-subscription"
to it.

than , edit "/usr/share/pve-manager/js/pvemanagerlib.js"
find a line " if (data.status !== 'Active') "
and change it to "if (false) "

it works. I just tried it on my test setup.
Ok, finally had some time to look into this again. Unfortunately, no go.

Here's my /etc/apt/sources.list.d:

Code:
root@pve1:/usr/share/pve-manager/js# ls -l /etc/apt/sources.list.d/
total 4
-rw-r--r-- 1 root root 70 Dec  2 19:10 pve-enterprise.list
root@pve1:/usr/share/pve-manager/js# cat /etc/apt/sources.list.d/pve-enterprise.list 
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
here's my /etc/apt/sources.list:

Code:
root@pve1:/usr/share/pve-manager/js# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian stretch main contrib

# security updates
deb http://security.debian.org stretch/updates main contrib

# Proxmox no subscription 
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
Here's diff of my pvemanagerlib.js vs original file:

Code:
root@pve1:/usr/share/pve-manager/js# diff -ruN pvemanagerlib.js pvemanagerlib.js.backup 
--- pvemanagerlib.js    2017-12-02 19:17:03.111566071 -0800
+++ pvemanagerlib.js.backup    2017-11-15 21:32:34.075071455 -0800
@@ -847,7 +847,7 @@
        success: function(response, opts) {
        var data = response.result.data;

-        if (false) {
+        if (data.status !== 'Active') {
            Ext.Msg.show({
            title: gettext('No valid subscription'),
            icon: Ext.Msg.WARNING,
And yet, after reboot, I get this screen:
Screenshot from 2017-12-02 19-27-17.png

This is Proxmox 5.1:

root@pve1:~# pveversion -v
proxmox-ve: 5.1-28 (running kernel: 4.13.8-2-pve)
pve-manager: 5.1-36 (running version: 5.1-36/131401db)
pve-kernel-4.13.4-1-pve: 4.13.4-26
pve-kernel-4.13.8-2-pve: 4.13.8-28
libpve-http-server-perl: 2.0-6
lvm2: 2.02.168-pve6
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-15
qemu-server: 5.0-17
pve-firmware: 2.0-3
libpve-common-perl: 5.0-20
libpve-guest-common-perl: 2.0-13
libpve-access-control: 5.0-7
libpve-storage-perl: 5.0-16
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-2
pve-docs: 5.1-12
pve-qemu-kvm: 2.9.1-2
pve-container: 2.0-17
pve-firewall: 3.0-3
pve-ha-manager: 2.0-3
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.1.0-2
lxcfs: 2.0.7-pve4
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.7.3-pve1~bpo9

Any suggestions?
 

vl1969

Active Member
Feb 5, 2014
634
76
28
well something is wrong.
I have "Virtual Environment 5.1-36" -- this what I see on the website UI page.
and I do not get the popup on login.

the only difference I can see (I run each command you provided on my test setup) are
I have a "pve-no-subscription.list" file in " /etc/apt/sources.list.d/" as well as line in "/etc/apt/sources.list"
and my version is "proxmox-ve: 5.1-26 (running kernel: 4.13.4-1-pve)" where you run 5.1.28.
I will update and re-check.


EDIT: OK I run the update and now using same code as you are.
and still have no popup.
 
Last edited:

vl1969

Active Member
Feb 5, 2014
634
76
28
Undo the change for the "no subscription" in pvemanagerlib.js,
login pop-up would re-appear.
OP does not want the popup, OP issue is that even after all the changes popup still there.
but I have the same setup and did the same changes and do not have popup.
so something is a miss in OP config.
 

BLinux

cat lover server enthusiast
Jul 7, 2016
2,672
1,081
113
artofserver.com
well something is wrong.
I have "Virtual Environment 5.1-36" -- this what I see on the website UI page.
and I do not get the popup on login.

the only difference I can see (I run each command you provided on my test setup) are
I have a "pve-no-subscription.list" file in " /etc/apt/sources.list.d/" as well as line in "/etc/apt/sources.list"
and my version is "proxmox-ve: 5.1-26 (running kernel: 4.13.4-1-pve)" where you run 5.1.28.
I will update and re-check.


EDIT: OK I run the update and now using same code as you are.
and still have no popup.
ok. what's the content of the /etc/apt/sources.list.d/pve-no-subscription.list ?
 

vl1969

Active Member
Feb 5, 2014
634
76
28
ok. what's the content of the /etc/apt/sources.list.d/pve-no-subscription.list ?
it is the same thing as in "/etc/apt/sources.list" >> see below.

I created the "pve-no-subscription" because that is how I did it in version 4.1
but than I check the sources list and also uncomment the lines there.


Code:
root@pve:~# cat /etc/apt/sources.list

deb http://ftp.us.debian.org/debian stretch main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription


# security updates
deb http://security.debian.org stretch/updates main contrib
Code:
root@pve:~# cat /etc/apt/sources.list.d/pve-no-subscription.list
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
 

BLinux

cat lover server enthusiast
Jul 7, 2016
2,672
1,081
113
artofserver.com
maybe sort of browser-caching of the extjs javascript, or pveproxy still serving the old file.
thanks an interesting point about browser cache. i'll dump my browser cache and see if that changes it. what is this pveproxy you speak of? does it do any caching too? if so, how do I clear it's cache ?
 

_alex

Active Member
Jan 28, 2016
866
97
28
Bavaria / Germany
pveproxy is sort of the webserver that serves the gui (and also checks privileges before executing anything requested).
It does sort of caching, at least for the perl files/libraries of proxmox itself. So it needs a restart/reload at least when something was changed there. Not sure if it also caches pvemanagerlib.js.
 

_alex

Active Member
Jan 28, 2016
866
97
28
Bavaria / Germany
just for the case you use ecmp over multiple links (i.e. with a leaf-spine underlay) and wonder why only a single link is used after upgrade from 5.0 to 5.1.

This was introduced with the 4.12 kernel:

sysctl -w net.ipv4.fib_multipath_hash_policy=1
 
  • Like
Reactions: Patrick

_alex

Active Member
Jan 28, 2016
866
97
28
Bavaria / Germany
Another mentionable change is xterm.js for the shell.
This is a great alternative to noVnc as it allows copy + paste plus scrolling.

Works out of the box for the PVE-Host, here it is just below 'Shell' on the left, labeled 'Shell (JS)'.
For VM's it is hidden under the '_Shell >' button in the upper menu where also Spice can be found (not accessible on the left side, where noVNC is labeled 'Console').
I only did a quick check, out of the box it will show 'unable to find a serial interface' with a Linux VM, i guess the missing bits can be found here:

Serial Terminal - Proxmox VE

Enjoy,
Alex
 
  • Like
Reactions: nkw

nkw

Active Member
Aug 28, 2017
136
48
28
Another mentionable change is xterm.js for the shell.
This is a great alternative to noVnc as it allows copy + paste plus scrolling.
Wow. That is a significant improvement. The lack of copy/paste in the old one was _really_ annoying.
 

_alex

Active Member
Jan 28, 2016
866
97
28
Bavaria / Germany
yeah, this really simplifies a lot of things.
still not sure what annoyed me more, the lack of copy/paste or not being able to scroll ...
 

micush

New Member
Mar 19, 2018
1
1
1
48
PVE 5.1.47 nag removal:

sed -i "s/getNoSubKeyHtml:/getNoSubKeyHtml_:/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
 
  • Like
Reactions: DanAnd