In case if you are using Mac M1 or above you need to run Linux VM to build Memgraph.

We recommend to use Lima VM.

Step 1. Install Lima

brew install lima

Step 2. Start Linux VM

Currently, we support Ubuntu 22.04 and Debian 11 (seems like Debian 11 has some user connection) for ARM CPU architecture.

Run limactl create command and choose Open an editor to review or modify the current configuration:

$ limactl create
? Creating an instance "default"  [Use arrows to move, type to filter]
> Proceed with the current configuration
  Open an editor to review or modify the current configuration
  Choose another example (docker, podman, archlinux, fedora, ...)
  Exit

In opened editor fix following statements:

...
arch: aarch64
...
images:
- location: "<https://cloud.debian.org/images/cloud/bullseye/20230124-1270/debian-11-generic-amd64-20230124-1270.qcow2>"
  arch: "x86_64"
  digest: "sha512:fa152c6159dcb73adb1b573da3631937068c6a465ce7565a16dcce7aebd27c9a62ad783296d408300b99616cad89b8c0092e11df0fc2aa423334d741ac83b1a2"
- location: "<https://cloud.debian.org/images/cloud/bullseye/20230124-1270/debian-11-generic-arm64-20230124-1270.qcow2>"
  arch: "aarch64"
  digest: "sha512:d714ed2b70322bb2c4adc588f96671192a5ca67f70e20c3fb51c89d55b6a9646f00a6e6f0e5da241b7017916bb19b65a5703a1e3b3869a89c0da7047ac6c4e53"
...
cpuType:
  aarch64: host

<aside> ⁉️ NOTE: Mounted paths are slower to write.

Please be sure that memgraph repo is on a local Linux filesystem, not in the directory mounted from host. Lima uses sshfs to mount directories. It’s extremely slow and VM could hang during Memgraph build because of lots IO operations.

</aside>

Save the configuration and exit.

Start the VM by entering limactl start --memory 16. By default, Lima allocates only 4GB to the VM. Building Memgraph will likely require more than the default: 16GB is a more reasonable setting.

Lima will continue deploying Linux VM.

Step 3. Login to the VM

limactl shell default

Step 4. Install Memgraph

Quick Start

If Lima asks you about restarting services (the purple screen), just choose OK.