# Linux

This document will provide you with instructions on how to prepare and register your own template image for use with Frame. Before moving forward with the preparation procedure, please ensure you have read through the general requirements on the [BYO image](https://docs.difr.com/books/platform-administrators-guide/page/bring-your-own) page and considerations below.

## Considerations

- Create a template VM running a supported version of Ubuntu from an ISO or from the AWS, Azure, or GCP Marketplace.

## Create an Ubuntu Template Image VM

The following instructions assume you have an Ubuntu 24.04 ISO image in your desired infrastructure. If you already have an Ubuntu VM you wish to use as the starting point for your template VM, then you can skip to the installation of the Frame Guest Agent.

1. Create a VM using your Ubuntu ISO (mounted as a CD-ROM). The VM should have at least 2 vCPUs, 8 GB memory, 40 GiB disk, and a network interface.
2. Power on the VM and access the VM through the console or via ssh.
3. Choose your language.

<figure id="bkmrk-ubuntu-installer---l">![Ubuntu Installer - Language](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu1.png)

<figcaption>Ubuntu Installer - Language</figcaption></figure>2. If you are informed that there is an installer update available, choose "Continue" without updating to stay on version 20.04. You can always perform the updates later in the Sandbox.

<figure id="bkmrk-ubuntu-installer---u">![Ubuntu Installer - Update](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu2.png)

<figcaption>Ubuntu Installer - Update</figcaption></figure>3. Choose your Keyboard Configuration. Choose "Done" when complete.

<figure id="bkmrk-ubuntu-installer---k">![Ubuntu Installer - Keyboard Configuration](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu3.png)

<figcaption>Ubuntu Installer - Keyboard Configuration</figcaption></figure>4. Configure your Network Connections. Choose "Done" when complete.

<figure id="bkmrk-ubuntu-installer---n">![Ubuntu Installer - Network Connections](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu4.png)

<figcaption>Ubuntu Installer - Network Connections</figcaption></figure>5. Leave the Proxy Address field blank and choose "Done" (unless the VM needs to communicate to the Internet using an outbound proxy server).

<figure id="bkmrk-ubuntu-installer---p">![Ubuntu Installer - Proxy Server](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu5.png)

<figcaption>Ubuntu Installer - Proxy Server</figcaption></figure>6. Enter in your Archive Mirror address, if you have a preferred option. Choose "Done" when complete.

<figure id="bkmrk-ubuntu-installer---a">![Ubuntu Installer - Archive Mirror](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu6.png)

<figcaption>Ubuntu Installer - Archive Mirror</figcaption></figure>6. On the Guided storage configuration page, uncheck the Set up this disk as an LVM group option, then choose "Done".

<figure id="bkmrk-ubuntu-installer---g">![Ubuntu Installer - Guided Storage](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu7.png)

<figcaption>Ubuntu Installer - Guided Storage</figcaption></figure>7. On the Storage configuration page, choose "Done".

<figure id="bkmrk-ubuntu-installer---s">![Ubuntu Installer - Storage Configuration](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu8.png)

<figcaption>Ubuntu Installer - Storage Configuration</figcaption></figure>8. Confirm the “destructive action” (wiping/formatting the hard disk).

<figure id="bkmrk-ubuntu-installer---c">![Ubuntu Installer - Confirm Disk Formatting](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu9.png)

<figcaption>Ubuntu Installer - Confirm Disk Formatting</figcaption></figure>9. Provide computer/user information.

<figure id="bkmrk-ubuntu-installer---p-1">![Ubuntu Installer - Profile Setup](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu10.png)

<figcaption>Ubuntu Installer - Profile Setup</figcaption></figure>1. Install OpenSSH server.

<figure id="bkmrk-ubuntu-installer---o">![Ubuntu Installer - OpenSSH](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu11.png)

<figcaption>Ubuntu Installer - OpenSSH</figcaption></figure>11. Do not install any add-ons.

<figure id="bkmrk-ubuntu-installer---n-1">![Ubuntu Installer - No Add-Ons](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu12.png)

<figcaption>Ubuntu Installer - No Add-Ons</figcaption></figure>12. The installation will now begin.
13. When prompted, let the security updates install.

<figure id="bkmrk-ubuntu-installer---i">![Ubuntu Installer - Install Complete](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu13.png)

<figcaption>Ubuntu Installer - Install Complete</figcaption></figure>14. Reboot when prompted.

<figure id="bkmrk-ubuntu-installer---r">![Ubuntu Installer - Reboot](https://docs.difr.com/uploads/images/gallery/2025-10/byo-image-ubuntu14.png)

<figcaption>Ubuntu Installer - Reboot</figcaption></figure>15. If prompted, press Enter to eject Ubuntu installation media.

## Install Frame Guest Agent

1. Download the Frame Workload Installer (Linux) to your local machine (or within the template VM) from the [Downloads page](https://files.difr.com/).
2. Unzip the Frame Workload Installer.
3. Untar the Frame Workload Installer tar file.
4. If you need to upload the Frame Workload Installer, use `winscp` to transfer the Frame Workload Installer file folder (frame\_workload\_installer\_linux-2.0.0 folder) to the template VM. This assumes you have installed and enabled OpenSSH in your Ubuntu VM.
5. Login to the Linux VM using account specified during installation of the operating system. In the Linux VM, `ls -al` to verify the `frame_workload_installer_linux-2.0.0` folder exists. Change directory to the folder.
6. Run `sudo bash prepare.sh`. Elevate if prompted.

<figure id="bkmrk-frame-guest-agent-wo">![Frame Guest Agent Workload Installer - prepare.sh](https://docs.difr.com/uploads/images/gallery/2025-10/fga-workload1.png)

<figcaption>Frame Guest Agent Workload Installer - prepare.sh</figcaption></figure>7. Upon completion, run `sudo bash install.sh`.

<figure id="bkmrk-frame-guest-agent-wo-1">![Frame Guest Agent Workload Installer - install.sh](https://docs.difr.com/uploads/images/gallery/2025-10/fga-workload2.png)

<figcaption>Frame Guest Agent Workload Installer - install.sh</figcaption></figure>8. Upon completion, shut down the VM.

### Tag Template

You will now need to tag the template VM, image, or snapshot (depending on the infrastructure) in order for Frame control plane to be able to recognize this template image. This process is exactly the same as what is required for tagging Windows template images.

Instructions for performing tagging, by infrastructure are at:

- [AHV](https://docs.difr.com/link/77#bkmrk-tag-vm)
- [AWS](https://docs.difr.com/link/74#bkmrk-tag-ami)
- [Azure](https://docs.difr.com/link/75#bkmrk-tag-snapshot)
- [GCP](https://docs.difr.com/link/76#bkmrk-create-image-from-vm)
- [IBM](https://docs.difr.com/link/78#bkmrk-tag-the-ibm-cloud-ma)

## Register Template Image

Once you have successfully created and tagged your template image(s) in your infrastructure, you will [register your template image](https://docs.difr.com/link/45#bkmrk-add-a-template-image).

##   
AWS Marketplace

  
If you want to use Ubuntu 24.04 from AWS Marketplace you must accept the terms of AWS Marketplace Ubuntu Image

1. Go to the **AWS Marketplace**

[![image.png](https://docs.difr.com/uploads/images/gallery/2025-10/scaled-1680-/kl0image.png)](https://docs.difr.com/uploads/images/gallery/2025-10/kl0image.png)

2\. Go to **"Discover products"** and search for the &lt;Ubuntu version&gt; (current supported version is 24.04)

[![image.png](https://docs.difr.com/uploads/images/gallery/2025-10/scaled-1680-/Ttzimage.png)](https://docs.difr.com/uploads/images/gallery/2025-10/Ttzimage.png)

3\. Select the image you want to use, scroll down to the end of the page and click on **Subscribe**

 **[![image.png](https://docs.difr.com/uploads/images/gallery/2025-10/scaled-1680-/9Mvimage.png)](https://docs.difr.com/uploads/images/gallery/2025-10/9Mvimage.png)**

[![image.png](https://docs.difr.com/uploads/images/gallery/2025-10/scaled-1680-/ZOFimage.png)](https://docs.difr.com/uploads/images/gallery/2025-10/ZOFimage.png)

**That's it, you are set to use the image from AWS Marketplace**