# Installation

For now, you can either install the daemon from source, or use the released binaries.

## Prerequisites

Since Cedana depends on [CRIU](https://criu.org), you will need to ensure its dependencies are installed.

#### Using apt (Ubuntu/Debian)

```sh
apt-get install -y libnet-dev libprotobuf-c-dev libnl-3-dev libbsd-dev libcap-dev libseccomp-dev libgpgme11-dev libnftables-dev
```

#### Using dnf/yum (Fedora/CentOS)

```sh
yum install -y libnet-devel protobuf-c-devel libnl3-devel libbsd-devel libcap-devel libseccomp-devel gpgme-devel nftables-devel
```

## Download latest release

{% hint style="info" %}
Cedana is supported on both linux/amd64 and linux/arm64 platforms.
{% endhint %}

Using public installer:

```sh
curl -fsSL https://github.com/cedana/cedana/releases/latest/download/install-release.sh | sudo -E bash
```

Using authenticated installer (see [Authentication](/daemon/get-started/authentication.md)):

```sh
export CEDANA_URL=https://myorg.cedana.ai/v1
export CEDANA_AUTH_TOKEN=your_auth_token

curl -fsSL ${CEDANA_URL}/install?version=latest -H "Authorization: Bearer ${CEDANA_AUTH_TOKEN}" | sudo -E bash
```

{% hint style="info" %}
You can also find the latest binaries at [releases](https://github.com/cedana/cedana/releases). Ensure `/usr/local/bin` is in your `PATH`.
{% endhint %}

## Build from source

Clone the [cedana repository](https://github.com/cedana/cedana) and navigate into it.

#### Build

```sh
make cedana
```

#### Install

```sh
make install
```

{% hint style="info" %}
Try `make help` to see all available targets.
{% endhint %}

## Install CRIU

{% hint style="success" %}
To install a plugin from the online registry, you need to be [authenticated](/daemon/get-started/authentication.md). See [plugins](/daemon/get-started/plugins.md) for more information.
{% endhint %}

A modified version of CRIU is shipped as a plugin for Cedana, so you don't need to install it separately. You can simply do:

```sh
sudo cedana plugin install criu
```

This version of CRIU is not a requirement for Cedana, but it is recommended for certain features, such as [checkpoint/restore streamer](/daemon/checkpoint-restore/cr-4.md).

{% hint style="info" %}
To install CRIU independently, see the [CRIU installation guide](https://criu.org/Installation).
{% endhint %}

## Start the daemon

{% hint style="warning" %}
The daemon requires root privileges for checkpoint/restore operations. Check the [CLI reference](/daemon/references/cli/cedana.md) for all options.
{% endhint %}

#### Direct

You can directly start the daemon with:

```sh
sudo cedana daemon start
```

#### Systemd

If you're a *systemd* user, you may also install it as a service (if built from source):

```sh
make install-service
```

{% hint style="info" %}
Try `make help` to see all available targets.
{% endhint %}

## Health check the daemon

The daemon can be health checked to ensure it fully supports the system and is ready to accept requests. See [health checks](/daemon/get-started/health.md) for more information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cedana.ai/daemon/get-started/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
