Back to Lima

Installation

website/content/en/docs/installation/_index.md

2.1.11.6 KB
Original Source

Supported host OS:

  • macOS (the latest version is recommended)
  • Linux
  • NetBSD (untested)
  • DragonFlyBSD (untested)
  • Windows (untested)

Prerequisite:

  • QEMU (Required, only if [QEMU]({{< ref "/docs/config/vmtype#qemu" >}}) driver is used)

{{< tabpane text=true >}}

{{% tab header="Homebrew" %}}

bash
brew install lima

Hint: specify --HEAD to install the HEAD (master) version. The HEAD version provides early access to the latest features and improvements before they are officially released.

Homebrew formula is available here. Supports macOS and Linux. {{% /tab %}}

{{% tab header="MacPorts" %}}

bash
sudo port install lima

Port: https://ports.macports.org/port/lima/ {{% /tab %}}

{{% tab header="Nix" %}}

bash
nix-env -i lima

Nix file: https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/li/lima/package.nix {{% /tab %}}

{{% tab header="Binary" %}} Download the binary archive of Lima from https://github.com/lima-vm/lima/releases, and extract it under /usr/local (or somewhere else).

bash
VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
curl -fsSL "https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local

# For Lima v1.1 onward
curl -fsSL "https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-additional-guestagents-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local

{{% /tab %}} {{< /tabpane >}}