> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/compute/kvm-virtual-machines/how-tos/restore-virtual-machines.md).

# Restore virtual machines

***

## Restore a virtual machine using the control panel

It is not possible to restore an existing virtual machine (VM) from a backup. Instead, you create a new VM from a backup. This approach is equivalent to restoring the VM but allows the current VM to continue running until the new one is fully set up. The new VM is created without any assigned IP addresses.

Once you are fully satisfied with the newly restored VM, you can release the IP addresses from the old VM and assign them to the new one. The new VM will then be identical to the old one.

To restore and create a new VM from a backup, start by navigating to the VM's overview.&#x20;

Select **Virtual machines** from the left-hand menu under **Compute**, then click on the VM to be restored. After that, click on the **Backups** tab.

<div align="left"><figure><img src="/files/PPYy6bD5mrIyuzTNqy1J" alt=""><figcaption></figcaption></figure></div>

Select the backup from which you want to restore the VM in the following dialog box. Here, we choose the most recent one. Click the three dots to the right of the backup and select **Restore**.

<div align="left"><figure><img src="/files/oXgAmapxBM3fpFxWTDuY" alt=""><figcaption></figcaption></figure></div>

Select the data center where you want to restore the server. Currently, you can choose between Falkenberg, Stockholm, and Oulu. Here, you can also view the cost of the restored VM. Click **Restore** after selecting the data center.

<div align="left"><figure><img src="/files/5s4zCM2Csg6JF25Csa3j" alt=""><figcaption></figcaption></figure></div>

Once the VM is restored, it appears in the VM overview. It appears and functions identically to any other VM, but is powered off and lacks assigned IP addresses. It is also named after the original VM with the suffix `restored`. The description of the server indicates from which snapshot the VM was created; for example, `Restored from snapshot taken at: 2025-05-27-17-28-UTC`.

<div align="left"><figure><img src="/files/ttMNVWjAZJAntAK9Pe3M" alt=""><figcaption></figcaption></figure></div>

If you need to change the restored VM before transferring the IP addresses from the old VM, you can start it and log in via the [console](/products/compute/kvm-virtual-machines/how-tos/connect-to-the-vm-console.md).

The next step is to release the IP addresses from the old VM and assign them to the new one. You accomplish this by navigating to the overview of the old VM in the control panel, located under **Virtual machines** in the left-hand menu, and then clicking on the specific VM.

Locate the **IP Addresses** section and click the red crosses next to the IP addresses you wish to delete from the virtual machine. It is crucial to ensure that **Keep IP** is checked. Once you confirm that **Keep IP** is selected, click the **Confirm delete** button. The IP address is removed from the server but remains available in the [project](/platform/control-panel/projects.md).

<div align="left"><figure><img src="/files/zh6wKvelU7SXkLq69NsQ" alt=""><figcaption></figcaption></figure></div>

Next, navigate to the newly restored VM under **Virtual machines** in the left-hand menu. Locate the **IP Addresses** section, then click the **+ Add IPv4** and **+ Add IPv6** buttons.

<div align="left"><figure><img src="/files/B2K6dzUMw8d55Ldk8A2F" alt=""><figcaption></figcaption></figure></div>

You can now locate the old VM's IP addresses under the **Reserved IP Addresses** section. In the example below, we are viewing the IPv6 Addresses. Select the IP addresses to assign to the restored VM. The selected IP addresses are highlighted in bold and marked with a checkmark on the right. Once you have chosen the appropriate IP addresses, click **Add Selected**.

<div align="left"><figure><img src="/files/iYKhEbR7da5l9xMdJlx1" alt="" width="563"><figcaption></figcaption></figure></div>

Now, you can start the VM. Scroll to the top of the server page, click on **Actions**, and then select **Power on**.

<div align="left"><figure><img src="/files/7bb4lXDRxaJMlcQxrqvp" alt=""><figcaption></figcaption></figure></div>

The VM is now fully restored to its original state, as when the backup was taken. It also has the same IP addresses as the old VM. You can now log in to it just as before, using SSH or Remote Desktop.

## Restore a virtual machine using the API

Use the [server/listbackups](https://github.com/GleSYS/API-docs/wiki/API-Documentation#serverlistbackups) endpoint to list the currently available backups for the VM. Then, to create a new VM from a backup, use the [server/createfrombackup](https://github.com/GleSYS/API-docs/wiki/API-Documentation#servercreatefrombackup) endpoint. See [Platform → API](/platform/control-panel/api.md) on how to use the API.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.glesys.com/products/compute/kvm-virtual-machines/how-tos/restore-virtual-machines.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.
