Install Mongo DB under Ubuntu in a virtual box

Hello dear community!

My task:
I have a Windows 11 system (host) running Virtual Box and a box with Ubuntu 23.10. I would now like to use Mongo DB in this box.

Actually, I didn’t think I would run into a problem, but here I am.

My problem:

I have followed these instructions:

I can see that this is actually only up to Ubuntu 22, but I wanted to try it anyway. Then I tried it in a VB with Ubuntu 22, same problems.

I get through the individual steps without any problems, but in the end the Mongo server does not run and I get this output:

$ sudo systemctl status mongod
× mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; disabled; preset: enabled)
     Active: failed (Result: core-dump) since Wed 2023-12-27 15:58:57 CET; 19s ago
   Duration: 125ms
    Process: 3116 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
   Main PID: 3116 (code=dumped, signal=ILL)
        CPU: 18ms

Dez 27 15:58:57 osboxes systemd[1]: Started mongod.service - MongoDB Database Server.
Dez 27 15:58:57 osboxes systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
Dez 27 15:58:57 osboxes systemd[1]: mongod.service: Failed with result 'core-dump'.

I am completely at a loss as to what I can do next to narrow the problem down further or even solve it.

My questions:

  • Is it even possible to run Mongo DB in a virtual box with Ubuntu?
  • Does anyone know the problem and can tell me a solution?
    IF NOT:
  • Does anyone have an idea what I can check to get closer to a solution?

I’m not even sure at this point if it’s Ubuntu or the Virtual Box.

I also found this article, but it didn’t help me: Setting up MongoDB v5.0 on Ubuntu 20: "core-dump: STATUS 4/ILL" - #3 by Philipp_Kolbe

Best regards


You’re getting an Illegal Instruction signal from Linux.
One suspects that the virtual box doesn’t emulate the processor level required by MongoDB.