[SOLVED] VM Memory difference between proxmox and VM

rmaziere

New Member
Nov 7, 2022
2
0
1
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 :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!