> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gcore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install an OS from a template

> Reinstall a virtual server operating system from predefined templates or a custom ISO, noting that all disk data is erased.

Reinstall the operating system on an existing virtual server using one of the predefined OS templates available in VMmanager 6, or use a [custom ISO](/hosting/virtual-servers/manage/operating-system/install-a-linux-os-from-your-iso-image) for distributions not available as templates. Templates cover CentOS, Debian, FreeBSD, and Ubuntu. The exact list of available versions depends on the current template catalog.

> [!WARNING]
>
> Reinstalling the OS erases all data on the server disk. Back up any important files before proceeding.

**1. Open VMmanager 6**

In the [Gcore Hosting Portal](https://hosting.gcore.com/billmgr), navigate to **Products/Services** → **Virtual private servers**, select the server checkbox, and click **To panel**.

![Virtual private servers list with a server row selected and the To panel button highlighted in the toolbar](https://mintcdn.com/gcore/494jjlOXZiI1ohtY/images/docs/hosting/virtual-servers/manage/operating-system/install-a-linux-os-from-a-template/install-a-linux-os-from-a-template-image1.png?fit=max\&auto=format\&n=494jjlOXZiI1ohtY\&q=85\&s=37e9b23b26dfe49cdb1e9d6efb59563c)

**2. Open the Reinstall OS menu**

In VMmanager 6, click **Menu** in the upper right and select **Reinstall OS**.

![VMmanager 6 server page with the Menu dropdown open and Reinstall OS highlighted](https://mintcdn.com/gcore/494jjlOXZiI1ohtY/images/docs/hosting/virtual-servers/manage/operating-system/install-a-linux-os-from-a-template/install-a-linux-os-from-a-template-image2.png?fit=max\&auto=format\&n=494jjlOXZiI1ohtY\&q=85\&s=38aefd4feccd084071228b61ffcc3173)

**3. Select an OS template**

Choose a distribution from the available templates and select the version from the dropdown.

![Reinstall OS page showing OS template tiles for CentOS, Debian, FreeBSD, and Ubuntu, with Applications and scripts section and VM password field below](https://mintcdn.com/gcore/494jjlOXZiI1ohtY/images/docs/hosting/virtual-servers/manage/operating-system/install-a-linux-os-from-a-template/install-a-linux-os-from-a-template-image3.png?fit=max\&auto=format\&n=494jjlOXZiI1ohtY\&q=85\&s=7269b78e12c5c261d9095d02187f1573)

**4. Select application scripts (optional)**

In **Applications and scripts**, select a script to run automatically after the OS is installed. Scripts can install packages and update configuration files. Select **Without script** to skip this step.

**5. Set a VM password**

Enter a new password for the server or click **Generate** to create one automatically. The previous password becomes invalid after reinstallation.

> [!NOTE]
>
> Select **Send email with password** to receive the new password by email.

**6. Confirm reinstallation**

Click **Reinstall**. The server is reinstalled and becomes temporarily unavailable. When its status changes back to **Active**, the new operating system is ready to use.
