[SOLVED] VM Memory difference between proxmox and VM

rmaziere

Member
Nov 7, 2022
2
0
6
On PVE 7.2-3, I created VM (linux Debian) with 4 GB of memory for example (or more), but inside the VM, this is only 915 MB.

Bash:
debian@test:~$ free -mh
               total        used        free      shared  buff/cache   available
Mem:           915Mi       113Mi       759Mi       0.0Ki        42Mi       712Mi
Swap:             0B          0B          0B

debian@test:~$ egrep "MemTotal|DirectMap2M" /proc/meminfo
MemTotal:         937244 kB
DirectMap2M:     4128768 kB

Here, we can see the correct value : DirectMap2M, about 4 GB.
I tried both balloning : off and on.

I really don't understand.

If someone could help me, it would be great.
 

Attachments

  • Capture d’écran du 2022-11-07 15-08-58.png
    Capture d’écran du 2022-11-07 15-08-58.png
    24.8 KB · Views: 13
  • Capture d’écran du 2022-11-07 15-37-31.png
    Capture d’écran du 2022-11-07 15-37-31.png
    16.9 KB · Views: 14
Did you enable memory hot-plug in the VM options on Proxmox but not configure the Debian for hot-plug memory? Please try disabling Memory under VM Options, Hotplug.
 
Last edited:
To share your config, please show your VM config from /etc/pve/qemu-server/<vmid>.conf instead of screenshots :)