If running in a VM on Proxmox, MongoDB won't run unless the VM's ‘Processor Type’ is set to ‘host’
Import public key
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
Create an apt sources file for MongoDB
echo "deb [signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list
Reload apt
apt update
Install MongoDB
apt install mongodb-org
Start Mongod
systemctl enable mongod.service
systemctl start mongod.service
systemctl status mongod.service