Linux Images
Supported Distributions
| Distribution | Status |
|---|---|
| RHEL 8+ / Rocky Linux 8+ / AlmaLinux 8+ | Recommended |
| Ubuntu 20.04+ / Debian 11+ | Supported |
Manual Image Creation
Step Overview
1. Create a Virtual Machine
Use any hypervisor that produces qcow2 images:
- Virtual Machine Manager (free, Linux)
- VirtualBox (free, cross-platform)
- QEMU/KVM via command line
Attach your distribution's ISO as a CD-ROM and install the OS. Create only a root account.
2. Install the VM Installer
Download the package for your distribution:
- RHEL / Rocky / AlmaLinux (RPM): Linux
- Ubuntu / Debian (DEB):
If the tiCrypt package repository is configured on the image:
dnf install ticrypt-vm-controller
systemctl enable ticrypt-vm-controller.service
3. Configure Networking
The interface must be named eth0 and use DHCP. Create or replace /etc/sysconfig/network-scripts/ifcfg-eth0:
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
Hypervisors like VirtualBox assign different interface names (e.g., enp0s3). The tiCrypt infrastructure requires eth0. Networking will fail without this configuration.
4. Disable SSH
The VM Controller binds to port 22 at boot. If OpenSSH holds that port, the controller cannot start and registration fails.
systemctl disable sshd
During image preparation, temporarily change the SSH port in /etc/ssh/sshd_config (e.g., to 2022) to keep remote access. Disable SSH as the final step before shutdown.
5. Configure the Controller
Edit /etc/ticrypt/controller.toml. See Controller Configuration for the full reference.
6. Configure NFS Client
tiCrypt VMs mount NFS shares from tiCrypt storage for file access. The NFS client utilities must be installed and the required services enabled.
Install NFS utilities:
- RHEL / Rocky / AlmaLinux
- Ubuntu / Debian
dnf install -y nfs-utils
apt-get install -y nfs-common rpcbind
Enable the required services:
The rpcbind service handles RPC program number lookups, and rpc-statd manages NFS file locking. The nfs-client.target groups all NFS client services. These must be explicitly enabled because the VM Controller mounts storage imperatively at boot rather than through /etc/fstab, so systemd's fstab-triggered generators do not pull them in automatically.
systemctl enable --now rpcbind
systemctl enable --now nfs-client.target
systemctl enable --now rpc-statd
SELinux (RHEL / Rocky / AlmaLinux only):
SELinux gates user-process access to NFS-mounted paths with the use_nfs_home_dirs boolean. Despite the name, this controls access to all NFS content, not only home directories. Without it, desktop applications and shell sessions will receive permission denials when accessing NFS-mounted project shares:
setsebool -P use_nfs_home_dirs on
Verify the NFS client is operational:
rpcinfo -p localhost
The output should list portmapper and status (rpc.statd). The nlockmgr entry only appears after an actual NFS mount engages the lock manager, so its absence at this stage is expected. You can test connectivity to the storage server with showmount -e <storage-ip> once the VM is on the network.
tiCrypt VMs operate on an isolated VLAN with no Active Directory or NIS. NFS mounts use AUTH_SYS (UID/GID-based) authentication. The VM Controller handles mount operations at boot, so no /etc/fstab entries are needed in the image.
7. Configure Remote Desktop (Optional)
Enable this if users need a graphical desktop session via RDP. The configuration depends on your Rocky/RHEL version.
| XRDP (Rocky 8/9, or 10 with Xvnc) | Rocky 10+ + GNOME Remote Desktop | |
|---|---|---|
| Guide | XRDP Configuration | GNOME Remote Desktop |
| Desktop | Xfce (8/9) or MATE (10), lightweight | GNOME (heavier, ~2 vCPU / 2 GB RAM minimum) |
| Authentication | Single login prompt | Single login (headless mode, provisioned via controller.toml hook) |
| Clipboard control | Full directional control | Not available |
| Multi-user | Built-in terminal-server multiplexing | Native multi-user via GDM session routing |
| Session reaping | Built-in | Manual (loginctl) |
| Best for | Secure-research VMs needing clipboard restriction | General-purpose VMs that need a GNOME desktop |
8. Enable SFTP (Optional)
SFTP allows users to transfer files from their local machine into the VM while running tiCrypt. The connection is one-way only: uploads are permitted, downloads and file reads are not.
- Confirm OpenSSH is installed but its service is disabled (step 4).
- Set
sftpEnabled = truein the[tunnel]section ofcontroller.toml.
The VM Controller runs its own SSH daemon restricted to SFTP uploads, with no console access or file reads. See the SFTP parameters in the configuration reference.
9. Install Applications (Optional)
Install any required software, desktop environments, or development tools, and apply any required organizational policies. tiCrypt imposes no restrictions on installed software.
If any installed software requires license activation or periodic license checks (e.g., SAS, ArcGIS, Adobe), the licensing server must be added to the Global Licensing Servers allowlist in the tiCrypt frontend before the VM can reach it.
10. Finalize
- Shut down the VM.
- Verify the image is in qcow2 format. Convert if necessary:
qemu-img convert -f raw -O qcow2 input.img output.qcow2
The image is ready to be added to tiCrypt. If you encounter registration issues after deploying the image, see the Troubleshooting guide.
A Linux image is a prepared Linux installation that tiCrypt clones each time a user launches a secure VM. Building one is a one-time task per distribution and version: the operating system, the VM Controller, and any preinstalled software are baked in once, and every VM created from the image starts from that state.
There are two ways to build one. The image builder automates the process from a short configuration file and is the recommended route. The manual process is documented for images the builder does not yet cover.
Automated: Linux Image Builder
tiCrypt provides an image builder that automates Linux VM image creation. You describe the image in a configuration file (image.conf), and the builder customizes a Rocky Linux or AlmaLinux cloud image into a deployment-ready qcow2 image: the VM Installer, the NFS client, a disabled SSH server, a firewall, the image type you choose (terminal, XRDP desktop, Slurm or cluster controller), the applications you add, and a controller.toml. It is released as an RPM package, ticrypt-image-builder, in the tiCrypt package repository.
sudo dnf install ticrypt-image-builder
ticrypt-image-builder.sh generate image.conf # write a commented configuration file
nano image.conf # choose the base image, type and applications
sudo ticrypt-image-builder.sh build --check image.conf # list any mistakes, build nothing
sudo ticrypt-image-builder.sh build image.conf # build the image
- Image Builder Quick Start: build one image step by step, from installing the builder to a VM running in tiCrypt.
- Image Builder Guide: every command, build option and
image.confsetting, the image types and application add-ons, what a build does, and how to fix a failed build.