> ## 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 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.
</Warning>

<Steps>
  <Step title="Open the Hosting portal">
    Log in to the [Hosting portal](https://hosting.gcore.com/billmgr) and navigate to **Products/Services** → **Virtual private servers**.
  </Step>

  <Step title="Open VMmanager 6">
    Select the checkbox next to the server, then click **To panel** in the toolbar.

    <Frame>
      <img src="https://mintcdn.com/gcore/fbsHLaFWaUjhwqa3/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=fbsHLaFWaUjhwqa3&q=85&s=cf68b1fe388ab1ba23266b82db2ad311" alt="Virtual private servers list with a server row selected and the To panel button highlighted in the toolbar" width="1024" height="235" data-path="images/docs/hosting/virtual-servers/manage/operating-system/install-a-linux-os-from-a-template/install-a-linux-os-from-a-template-image1.png" />
    </Frame>
  </Step>

  <Step title="Open the Reinstall OS menu">
    In VMmanager 6, click **Menu** in the upper right and select **Reinstall OS**.

    <Frame>
      <img src="https://mintcdn.com/gcore/fbsHLaFWaUjhwqa3/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=fbsHLaFWaUjhwqa3&q=85&s=4df561ff31345dbba1098b74ff5d1f1e" alt="VMmanager 6 server page with the Menu dropdown open and Reinstall OS highlighted" width="1400" height="900" data-path="images/docs/hosting/virtual-servers/manage/operating-system/install-a-linux-os-from-a-template/install-a-linux-os-from-a-template-image2.png" />
    </Frame>
  </Step>

  <Step title="Select an OS template">
    Choose a distribution from the available templates and select the version from the dropdown.

    <Frame>
      <img src="https://mintcdn.com/gcore/fbsHLaFWaUjhwqa3/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=fbsHLaFWaUjhwqa3&q=85&s=83ec32871f5f137a29e09d50fb71bfaa" alt="Reinstall OS page showing OS template tiles for CentOS, Debian, FreeBSD, and Ubuntu, with Applications and scripts section and VM password field below" width="2398" height="1242" data-path="images/docs/hosting/virtual-servers/manage/operating-system/install-a-linux-os-from-a-template/install-a-linux-os-from-a-template-image3.png" />
    </Frame>
  </Step>

  <Step title="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.
  </Step>

  <Step title="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.
    </Note>
  </Step>

  <Step title="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.
  </Step>
</Steps>
