---
title: "Restore a cloud server from an ISO image"
sidebar_label: "Restore a server from an ISO image"
sidebar_position: 2
description: "How to restore a server from an ISO image"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'

# Restore a cloud server from an ISO image

If you encounter system errors while working with a cloud server, you can restore the server from an ISO image.

You can restore a server from an ISO image if it is running any OS from a custom image or Windows OS from a pre-built image. For servers with Linux-based OS created from pre-built images, we recommend using [booting in Rescue mode](/cloud-servers/troubleshooting/boot-to-rescue.mdx).

1. [Prepare an ISO image](#prepare-iso-image).

2. [Upload the ISO image to the image storage](#upload-iso-image).

3. [Create a cloud server from the ISO image](#create-cloud-server).

4. [Repair the cloud server's volume](#fix-server-volume).

5. [Apply the repaired volume](#apply-fixed-volume).

## 1. Prepare an ISO image⁠ \{#prepare-iso-image}

Prepare your own operating system ISO image with the necessary drivers. You can also use pre-built WinPE ISO images for Windows or Rescue ISO images for Linux.

## 2. Upload the ISO image to the image storage⁠ \{#upload-iso-image}

Follow the [Uploading and creating an image](/cloud-servers/images/create-image.mdx) guide. The image must be uploaded to the Selectel image storage located in the same pool as the cloud server.

## 3. Create a cloud server from the ISO image \{#create-cloud-server}

Use the [Create a cloud server](/cloud-servers/create/create-server.mdx) guide. As a source, select the image you [uploaded to the image storage](#upload-iso-image).

## 4. Repair the cloud server's volume \{#fix-server-volume}

<Tabs queryString="fix-server-volume">
  <TabItem value="network-volume" default>
    <TabItemLabel>
      Network volume
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/servers/), on the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Servers** section.

    3. In the <MoreVerticalIcon /> menu of the server where the errors occurred, select **Shut down**. The server will enter the `SHUTOFF`.

    4. Go to the **Volumes**.

    5. In the <MoreVerticalIcon /> menu of the volume to be fixed, select **Detach from server**.

    6. [Attach the network volume to the server](/cloud-servers/volumes/attach-detach-volume.mdx#attach-network-volume-to-server) that you [created from the ISO image in step 3](#create-cloud-server).

    7. Perform repair work on the cloud server volume, for example, repair damaged files.
  </TabItem>

  <TabItem value="local-disk">
    <TabItemLabel>
      Local disk
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/servers/), on the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Servers**.

    3. In the <MoreVerticalIcon /> menu of the server where the errors occurred, select **Shut down**. The server will enter the `SHUTOFF`

    4. [Create an image from the local disk](/cloud-servers/images/create-image.mdx#create-image-from-volume) of the server.

    5. [Create a network volume](/cloud-servers/volumes/create-volume.mdx) from the local disk image.

    6. [Attach the network volume to the server](/cloud-servers/volumes/attach-detach-volume.mdx#attach-network-volume-to-server) that you [created from the ISO image in step 3](#create-cloud-server).

    7. Perform repair work on the cloud server volume. For example, repair damaged files.
  </TabItem>
</Tabs>

## 5. Apply the repaired volume \{#apply-fixed-volume}

<Tabs queryString="apply-fixed-volume">
  <TabItem value="network-volume" default>
    <TabItemLabel>
      Network volume
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/servers/), on the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Servers**.

    3. In the <MoreVerticalIcon /> menu of the server that you [created from an ISO image in step 3](#create-cloud-server), select **Shut down**. The server will enter the `SHUTOFF`.

    4. Go to the **Volumes**.

    5. In the <MoreVerticalIcon /> menu of the volume, select **Detach from server**.

    6. Use the repaired network volume:

       * [attach to the cloud server](/cloud-servers/volumes/attach-detach-volume.mdx#attach-network-volume-to-server) whose operation needed to be restored;
       * or [create a cloud server](/cloud-servers/create/create-server.mdx).
  </TabItem>

  <TabItem value="local-disk">
    <TabItemLabel>
      Local disk
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/servers/), on the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Servers**.

    3. In the <MoreVerticalIcon /> menu of the server that you [created from an ISO image in step 3](#create-cloud-server), select **Shut down**. The server will enter the `SHUTOFF`.

    4. Go to the **Volumes**.

    5. In the <MoreVerticalIcon /> menu of the volume you created in step 4 while [fixing the volume in step 4](#fix-server-volume), select **Detach from server**.

    6. [Create an image](/cloud-servers/images/create-image.mdx) or [snapshot](/cloud-servers/volumes/snapshots.mdx#create-snapshot) of the network volume.

    7. [Create a cloud server](/cloud-servers/create/create-server.mdx) with a local disk. As a source, select the image or snapshot that you created in step 5.
  </TabItem>
</Tabs>

<Formbricks />
