Proxmox VM with AVX support
To install MongoDB in Proxmox VM, the CPU needs to have AVX support. Otherwise, following error appears
WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
Solution
Change CPU type to host
, which by pass the CPU simulation.
For container cluster, such as docker swarm, kubernetes, MongoDB might need to be run on specific worker node which have CPU type equals to host
.
Impact
Once the CPU set to be host
, the live migration may not work, because the hosts have different CPU type. But host
will give maximum performance.
References
AVX2
KVM: Which CPU for VM ('host' vs 'kvm64') to use for web load?
Coriolan says:
Also needed for proxmox ha cluster… specially when host are different machines.