> For the complete documentation index, see [llms.txt](https://docs.layerstack.com/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerstack.com/product-docs/quickstart/create-custom-template.md).

# Create Custom Template

{% hint style="info" %}
You can create custom templates in two ways: create a new one via LayerPanel or import your own VM image file.
{% endhint %}

### ***Creating from LayerStack Cloud Servers***

1. Log in to [LayerPanel](https://layerpanel.com/), go to the **Services** section and click **Cloud Servers** button, and then select the cloud server of which you want to create a custom template.
2. Click on the **Template** button.
3. Enter your template name, then click **Create** button.
4. The template status will read In Progress on the Template List page. Once the template is created successfully, the status will read Working. You can also view the template name, region, and date in this section.

### ***Importing a Custom VM Template***

1. Log in to [LayerPanel](https://layerpanel.com/), go to the **Services** section and click **Cloud Servers** button, and then click on the **Cloud Servers** you want to use VM image file.
2. Click the **Template** button.
3. Click the **Upload** option and you will see three options here

{% tabs %}
{% tab title="Via URL" %}
File Location: Enter the HTTP download URL\
File Name: Enter your name of VM image file (E.g CentOS8)\
Example: <http://xxx.com/pub/Linux/centos/8/xxx.iso>

{% hint style="info" %}
If your template file is stored in an FTP server, you need to use the FTP method and change the URL from **http\://** to **ftp\://**.
{% endhint %}

Example:

<http://ftp.xxx.hk/pub/Linux/centos/8/xxx.iso\\>
needs to be changed to\
ftp\://ftp.xxx.hk/pub/Linux/centos/8/xxx.iso
{% endtab %}

{% tab title="Via FTP" %}
File Location: Enter the FTP directory path\
File Name: Enter your name of VM image file (E.g CentOS8)\
FTP Login: Enter your FTP login username\
FTP Password: Enter your FTP password<br>

Example: ftp\://ftp.xxx.hk/pub/Linux/centos/8/xxx.iso
{% endtab %}

{% tab title="Via Google Drive Link" %}
File Location: Enter the HTTP download URL\
File Name: Enter your name of VM image file (E.g CentOS8)\
Example: <https://drive.google.com/file/xxx/view?usp=sharing>

{% hint style="info" %}
Make sure to select the **Public on the web** because the connection is public between your computer and our server.
{% endhint %}

&#x20;

<figure><img src="https://www.layerstack.com/img/docs/resources/uploadiso1.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1511353726-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhVaMym2wicStyt4BqbfT%2Fuploads%2F7LQkninuEFgtexpfZVdN%2Fuploadiso2.png?alt=media&amp;token=66b58da5-e49a-405f-9c75-b32552e62d77" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

4\. Select **File Format** of your VM image file (E.g. vmdk, raw, vdi, vhdx and qcow2), and then click **Upload** to start uploading the file.

5\. The template status will read **In Progress** on the Template List page. Once the template is created successfully, the status will read Working.
