MongoDB can not start after move VM from local to Proxmox server

I have ubuntu server 24.04 and I install everything on this server for make Qemu Image of Ubuntu 22.04.
After make qemu image of ubuntu 22.04 by Packer , I install on this server MongoDB 7 by ansible roles , after build image I can login to this server and I see MongoDB is installed and I can go to MongoDB shell and I can use it.
Everything is fine. but after I move this Qemu image to Proxmox server and import it as VM on Proxmox server. after import I see Ubunut server start but I see mongodb not started and I see this

proton@packerubuntu:~$ sudo systemctl status mongod
× mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
     Active: failed (Result: core-dump) since Thu 2024-08-01 18:53:49 UTC; 18min ago
       Docs: https://docs.mongodb.org/manual
    Process: 1140 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
   Main PID: 1140 (code=dumped, signal=ILL)
        CPU: 9ms

Aug 01 18:53:49 packerubuntu systemd[1]: Started MongoDB Database Server.
Aug 01 18:53:49 packerubuntu systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
Aug 01 18:53:49 packerubuntu systemd[1]: mongod.service: Failed with result 'core-dump'.

and I see this too

ug 01 18:05:52 packerubuntu kernel: traps: mongod[1007] trap invalid opcode ip:559ada46955c sp:7ffd62a64300 error:0 in mongod[559ad6327000+420d000]
Aug 01 18:05:52 packerubuntu systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
░░ An ExecStart= process belonging to unit mongod.service has exited.
Aug 01 18:05:52 packerubuntu systemd[1]: mongod.service: Failed with result 'core-dump'.
░░ The unit mongod.service has entered the 'failed' state with result 'core-dump'.

and I see core dump
Before move to proxmox everything is OK

This is common when using a cpu that is incompatible with MongoDB 5.0 and above. Please search the forum for more information.

core-dump, signal=ILL

Thank you,
I hear old version of mongdb has not this problem, which version mongodb do not need AVX

Versions below 5.0. These are all end of life and do not receive any patches.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.