TIL that QEMU/KVM virtual machines won't start up if you have /proc/sys/vm/overc...

@hal_pomeranz@infosec.exchange

TIL that QEMU/KVM virtual machines won't start up if you have /proc/sys/vm/overcommit_memory set to 2-- even if you have sufficient free memory.

# dmesg
[...]
[ 7002.919461] __vm_enough_memory: pid: 11837, comm: qemu-system-x86, no enough memory for the allocation
[...]

But if you 'echo 1 >/proc/sys/vm/overcommit_memory' then things work just fine. Meh.