Issue
MongoDB fails to connect because of incompatible CPU.
Why?
The most likely reason for this error is actually on the installation guide.
Generally, CPUs with the commercial denomination “Core i3/i5/i7” support AVX, whereas “Pentium” and “Celeron” CPUs don’t. AMD: Jaguar-based processors and newer. The supported CPUs are listed here.
Fixes
Change to host CPU
- SSH into your Proxmox node
- Run the below command to see if your CPU has the AVX instruction set
1
lscpu | grep -i avx
If the output is like below then your CPU supports AVX. If not, don’t fret, I’ll explain another solution later.
- Go back to your Proxmox web console
- Click on your VM, navigate to
Hardware
, click onProcessors
, andEdit
the type tohost
- Shutdown VM and reboot
After that you should be good to go! Go ahead and try to install again.
Change to a compatible CPU
Instead of changing the processor to host
, scroll through the list and find a compatible CPU. Shutdown and reboot.