前陣子在 PVE 上開了 VM 架設 Docker MongoDB Server,遇到了以下 Log
1 2 3 4 5 6 7
mongodb | /bin/bash: line 1: mongo: command not found mongodb | mongodb | WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that! mongodb | see https://jira.mongodb.org/browse/SERVER-54407 mongodb | see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2 mongodb | see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814 mongodb |
重點在於 MongoDB 5.0+ requires a CPU with AVX support
居然!! PVE 預設開啟的 VM 沒有 AVX 指令集
解決方法
回到 PVE VM 上的硬體畫面,更改 CPU 的配置,將類別從 KVM 轉換成 Host 就可以了