Memory display of free and top is wrong with proxmox kernel

  • Thread starter Thread starter happyfunball
  • Start date Start date
H

happyfunball

Guest
I've noticed that inside vz containers the commands top, free etc. no longer display the right memory. The meminfo setting is now ignored, instead it always shows the hardware nodes memory. Setting meminfo in the conf file for the container or from the command line has no effect. Older versions of the kernel didn't seem to have this problem.

How do I fix it so that inside the container shows memory limits again?

example:

vzctl set 5000 --meminfo pages:16384 --save
vzctl exec 5000 free
total used free shared buffers cached
Mem: 4294967295 0 4294967295 0 0 19012
-/+ buffers/cache: 4294948284 19011
Swap: 0 0 0


This is a fresh install, pveversion -v:

pve-manager: 1.9-26 (pve-manager/1.9/6567)
running kernel: 2.6.32-7-pve
proxmox-ve-2.6.32: 1.9-55+ovzfix-2
pve-kernel-2.6.32-7-pve: 2.6.32-55+ovzfix-2
qemu-server: 1.1-32
pve-firmware: 1.0-15
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.29-3pve1
vzdump: 1.2-16
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.15.0-2
ksm-control-daemon: 1.0-6
 
Please can you set the memory limits using the GUI. That works without problems here.

It doesn't work, the error is:

"Error: unable to apply VM settings, command failed: /usr/bin/pvectl vzset 5844 --mem 512 "

Running that command from the command line gets this error: VE 5844 is not managed by PVE

Does this mean that proxmox is no longer compatible with vzctl ? We use scripts to create all our servers (over 1000 containers, and growing). Everything was fine until this machine was updated :(
 
Does this mean that proxmox is no longer compatible with vzctl ? We use scripts to create all our servers (over 1000 containers, and growing). Everything was fine until this machine was updated :(

You created or modified that container using other tools (that is what this error messages says). Please can you post the container config?