Linux Images: Image Builder Quick Start
This page takes you from an empty build host to a VM running in tiCrypt, one command at a time. Choose an image below, and every command, file name and setting on the page changes to match it.
It covers the common case. For everything else the builder can do, such as adding applications, Slurm images and your own scripts, see Linux Images.
Choose Your Image
The steps below build a AlmaLinux 10 desktop image (MATE, reached over RDP). The finished image is AlmaLinux10-xrdp-1.qcow2.
| Operating system | Desktop image | Terminal image |
|---|---|---|
| AlmaLinux 10, Rocky Linux 10 | MATE desktop, reached over RDP | Terminal only, no desktop |
| AlmaLinux 9, Rocky Linux 9 | Xfce desktop, reached over RDP | Terminal only, no desktop |
Each of these eight images was built with the commands on this page and started in a VM before it was listed here.
Before You Start
| Requirement | Details |
|---|---|
| Build host | Rocky Linux, AlmaLinux or RHEL 9 or 10, with root access, KVM and the tiCrypt package repository configured. A version 9 host can also build version 10 images |
| Internet access | The build downloads packages from the distribution's mirrors, EPEL and repo-pub.terainsights.net. The finished VM needs no internet access |
| Disk space | About 10 GB free on the build host |
| CPU, for version 10 images | AlmaLinux 10 and Rocky Linux 10 only run on CPUs that support x86-64-v3: roughly, Intel CPUs from 2013 on and AMD CPUs from 2015 on. The VM hosts need such CPUs, and tiCrypt must pass a matching CPU model to its VMs |
| In tiCrypt | An account that can create VM images and VM hardware setups, and root access to a VM host |
1. Install the Builder
The builder is released only as an RPM, in the tiCrypt package repository. On the build host:
sudo dnf install ticrypt-image-builder
dnf also installs what the builder needs.
Check the installation:
ticrypt-image-builder.sh version
2. Download the Base Image
The builder starts from the distribution's own cloud image. It copies the file and never changes it.
mkdir ~/image-build && cd ~/image-build
wget https://repo.almalinux.org/almalinux/10/cloud/x86_64/images/AlmaLinux-10-GenericCloud-latest.x86_64.qcow2
3. Create the Configuration
Write a configuration file with every setting explained:
ticrypt-image-builder.sh generate image.conf
Open image.conf in an editor and set these five lines:
base_image_file="AlmaLinux-10-GenericCloud-latest.x86_64.qcow2"
type="xrdp"
name="AlmaLinux10"
destination_dir="."
version="1"
Leave the rest as it is. To add applications to a desktop image, such as VS Code or Chrome, see Configuration.
4. Build the Image
sudo ticrypt-image-builder.sh build image.conf
The build writes AlmaLinux10-xrdp-1.qcow2 to the current directory. A terminal image takes a few minutes and a desktop image about 5 to 15, depending on the host and the network.
- The output includes the image's random root password, on the line
Setting random password of root to .... Note it if you want to log in on the VM's console later. - The build updates every package, so the image ends at the newest release of its major version.
- An existing image is never replaced. To build the image again, raise
versioninimage.conf. - If the build stops with an error, the incomplete image is removed. Run the build again with
build --verboseto see the output of the step that failed.
Removing the incomplete image and never replacing an existing one apply to builder 1.0.1 and later.
5. Copy the Image to the VM Host
tiCrypt reads images from the ticrypt-bricks storage pool. On the VM host, as root:
cp AlmaLinux10-xrdp-1.qcow2 "$(virsh pool-dumpxml ticrypt-bricks | sed -n 's:.*<path>\(.*\)</path>.*:\1:p')/"
virsh pool-refresh ticrypt-bricks
virsh vol-list ticrypt-bricks | grep AlmaLinux10-xrdp-1.qcow2
The last command prints the image when the pool lists it. If you have several VM hosts and the pool is not on storage they share, repeat this on each host.
6. Register the Image in tiCrypt
-
Go to Management and open the Virtual Machines section.
-
Open Libvirt Volumes and confirm that
AlmaLinux10-xrdp-1.qcow2is listed. -
Open VM Images, click Create new VM image and fill in the pop-up:
Field Value Name A name your users will recognize, for example "AlmaLinux 10" Libvirt volume AlmaLinux10-xrdp-1.qcow2Operating System Linux Supported Drive Formats ext4 and xfs Device BUS Type VirtIO. It cannot be changed later Boot options Use legacy boot (BIOS). Use secure boot (UEFI) also works with these images -
Click Create image.
-
Open VM Hardware Setups and create a hardware setup that uses the new image. For a desktop image, start with 2 cores and 4 GB of memory.
The fields are described in VM Images and VM Hardware Setups.
7. Start a VM
Create a VM from the new hardware setup and start it.
The VM shows as connected within about a minute. With a desktop image, you can then open the desktop over RDP through tiCrypt Connect.
What the Image Contains
- The operating system at its newest release, with the tiCrypt VM Controller and the NFS client that tiCrypt uses for drives and home directories.
- Desktop images: the desktop from the table above and XRDP. The RDP clipboard and drive redirection are turned off, so data cannot leave the VM that way.
- SELinux is disabled, and the SSH server is turned off because the VM Controller uses its port.
- A firewall that is on from the first boot. Desktop images allow the RDP port.
If Something Goes Wrong
| What you see | What to check |
|---|---|
The build stops at base.sh with "Could not connect to server" | The build host cannot reach one of the package sources listed in Before You Start |
| The build stops with "No space left on device" | The image is full. Build from a larger copy of the base image, as the README in /usr/share/doc/ticrypt-image-builder/ explains under "Disk space" |
| A version 10 VM starts but never connects | The CPU model tiCrypt gives the VM does not support x86-64-v3 |
| Any other VM that starts but never connects | VM Image Troubleshooting |