Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default CPU type on Proxmox does not work with mongodb #45

Open
mitchweaver opened this issue May 15, 2023 · 1 comment
Open

Default CPU type on Proxmox does not work with mongodb #45

mitchweaver opened this issue May 15, 2023 · 1 comment

Comments

@mitchweaver
Copy link

Posting this in case any else runs into same issue.
Noticed I couldn't access graylog while following the tutorial with message "bad gateway".

Issue: My docker host was on Proxmox using cpu type kvm which then causes the mongodb container fail to start:

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 exited with code 132

Solution: change cpu type to "host" in Proxmox:

IMAGE

see: https://codehammer.io/proxmox-mongodb-5-0-requires-a-cpu-with-avx-support

@ronaldotto
Copy link

This is a workaround, not a solution imho.

You can set type to host. This has a downside though. If you want to do a live migration of VMs between different hosts, your VM might end up on a new system with a different CPU type. If the CPU flags passed to the guest are missing, the qemu process will stop. To remedy this QEMU has also its own CPU type kvm64, that Proxmox VE uses by defaults.

Live migration is an important feature of virtualisation so you can do maintenance on hardware without interrupting production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants