VM Crash and no logs

roberne

Member
Aug 13, 2021
6
0
6
33
1628807382491.png
i'm new on proxmox the machine has 32gb ram 1 socket 12cores its the second crash in 3 days i updated the system, it has ubuntu 18.04
1628807451486.png
main machine stats are this
 
Looking at your hosts graphs the hosts RAM usage slowly climbed up to 99%, your host was already swapping as hell and swap was full too so OOM kicked in and killed your VM. You should look at your hosts syslog file for OOM mesages. Make sure your host always got enough available memory left (I try to keep 10-20% free). So looks to me that the host just ran out of RAM.
You could:
  1. buy more RAM for your host
  2. if you use ZFS limit your ARC size
  3. look that you don't give your VMs more RAM they actually really need or the guests will fill up all the RAM with caches. If Proxmox shows that your guest is low on free RAM that doesn't mean that the guest is really running out of memory. You should run "free -h" inside the guest and look how much RAM is actually "available" and don't look on the guests memory usage graph Proxmox is presenting you. I would bet you can easily reduce the guests RAM from 18 to 8GiB without any problems because most of that RAM is just used for page file caching. Look here for a better unterstanding.
  4. enable ksmtuned for memory deduplication. Will slowdown your host but can save you some RAM if you got alot of the same VMs or services running. Here this saves me 9-11GB of 64GB.
  5. enable ballooning and give your VM a "min RAM" of 8GB or something like that. If your host will run out of RAM (used RAM >80%) ballooning will kick in and limit the VM to 8GB RAM so it is forced to drop the caches or kill some processes if it is using more than 8GB.
 
Last edited:
1-all pcs on host uses 29gb ram host have 32gb,
2- ZFS and ARC size please speak english xD i'm so new if u have any guide of what is it
3- my guest only needs 10gb but it fills up i dont know how do that, and i see that proxmox shows more ram usage than machine shows
4- please a guide
5- guide too xD sorry i'm really newbie
PHOTOS:
free -h
1628820265180.png
panel

1628820292707.png
 
Last edited:
You might be pushing too close to the limit on host.

On my first proxmox box I had a few unexplained reboots, was no evidence of kernel panics.

Then I added a swap and they stopped confirming was oom, but then several months later there was odd behaviour with the swap so I ended up just managing my ram better without swap. I think you should give a higher margin for free memory.
 
i have no reboot, only shutdown how do u added swap memory
1628824116816.png
this is the node server
 
Last edited:
1-all pcs on host uses 29gb ram host have 32gb,
Your host needs RAM too. And there is always virtualizationoverhead. So if you give 29GB to your VMs your might use over 32GB of RAM.
2- ZFS and ARC size please speak english xD i'm so new if u have any guide of what is it
Its really not that hard to use google to look up what ZFS is. Did you read the proxmox documentation at all? Its everywhere in the documentation and a complete chapter on how to manage und optimize ZFS. By default ZFSs ARC will use up to 50% of the total RAM, so 16GB RAM might be used by ZFSs ARC if you are using ZFS as your storage.
3- my guest only needs 10gb but it fills up i dont know how do that, and i see that proxmox shows more ram usage than machine shows
Looking at your free -h you guests services use 2,8GiB RAM + 5.0GiB for caching. That caching will grow until there is no free momory. Did you read the link I gave you? Its explained there. So you give your VM way too much RAM because Linux will eat all RAM you throw at it for caching.
5- guide too xD sorry i'm really newbie
Its all in the documentation "10.2.6. Memory".

And you really should read the whole thing atleast once to understand what you are doing.
 
Last edited: