tiCrypt and libvirt Storage Pools: Network Block Devices (iSCSI, Ceph RBD)
tiCrypt delegates VM storage to libvirt storage pools, and it keeps everything in them as image files. This article explains what that means for libvirt's block-device pool types, and how to use network block storage such as Ceph or an iSCSI SAN underneath.
At a glance
tiCrypt manages virtual machines through libvirt/KVM and delegates VM storage to libvirt storage pools. It defines its pools as directory pools (dir), in which every volume is an image file. VM images, boot volumes and encrypted drives are all .qcow2 or .raw files in a directory on the VM hosts.
The important nuance is that libvirt pool types are not equivalent. In some, a volume is a file; in others, it is a block device or a network image:
- Volumes are image files (what tiCrypt uses): directory (
dir). Filesystem (fs) and network filesystem (netfs) pools hold image files too, on a file system that libvirt mounts itself. - Volumes are block devices or network images (tiCrypt does not create or attach these): LVM (
logical), physical disk (disk), Ceph RBD (rbd), ZFS (zfs), iSCSI (iscsi,iscsi-direct), SCSI host adapter (scsi), multipath (mpath), and native GlusterFS (gluster).
This is why network block storage is not used through its own libvirt pool type. To use Ceph or an iSCSI SAN with tiCrypt, put a file system on it, mount that file system on the backend and on every VM host, and define the tiCrypt pool on a directory of it. Unless one machine runs both the backend and the VMs, that has to be a shared file system (CephFS, an NFS export or a cluster file system), not a local one.
Background: how tiCrypt uses storage pools
When a user creates an encrypted data drive, tiCrypt asks libvirt to create a volume in the drives pool. The result is one image file, drive-<id>.qcow2 or drive-<id>.raw, in the pool's directory, and tiCrypt attaches that file to the VM as a disk. Boot volumes work the same way: each VM boots from a .qcow2 file that uses the VM image, another file, as its backing store.
A tiCrypt storage pool is defined by its location in the VM host file system, a directory path, and the backend must be able to write to the same directory. Unless one machine runs both the backend and the VMs, that path must lead to the same shared file system on the backend and on every VM host. The Type of a pool in the tiCrypt interface (Drives, Images, ISOs and so on) says what the pool holds; it is not the libvirt pool type. For the procedure, see Libvirt Storage Pools.
The storage under the pool is independent of tiCrypt's drive encryption. tiCrypt does not rely on libvirt's encryption. Instead, encryption is handled inside the VM using LUKS (Linux) or BitLocker (Windows) both for security (decryption key is not available to the infrastructure/admins) and independence of storage technology. As far as encryption is concerned, the storage under the pool can be selected on performance considerations alone. Scope is a separate question. When the drives contain CUI, the storage that holds them holds CUI even though it is encrypted, so it belongs in the assessment scope, needs logical separation from non-CUI workloads beyond encryption, and if cloud-hosted must meet the FedRAMP Moderate baseline or its equivalent (CMMC FAQ, July 2026, questions B-Q8, F-Q3 and E-Q2).
Drive encryption is handled inside the secure VMs. It is independent of the storage: any file system that can hold the image files works with tiCrypt encryption.
libvirt pool types
The table below surveys libvirt's storage pool backends as background. The last column is the one that decides whether a pool can hold tiCrypt drives: tiCrypt attaches every disk as an image file, so only file-based pools qualify.
| libvirt pool type | A volume is | libvirt can create volumes? | Holds tiCrypt drives? |
|---|---|---|---|
dir | A file in a directory | Yes | Yes (the type tiCrypt defines) |
fs | A file on a block device that libvirt mounts | Yes | File-based; tiCrypt defines dir on the mounted file system instead |
netfs | A file on a network filesystem (e.g., NFS, CIFS) that libvirt mounts | Yes | File-based; tiCrypt defines dir on the mounted file system instead |
logical | A logical volume in an LVM volume group | Yes | No |
disk | A partition of a physical disk | Yes | No |
rbd | A Ceph RADOS Block Device image (raw only) | Yes | No |
zfs | A ZFS volume (zvol) | Yes | No |
gluster | A file reached through native GlusterFS access | No (list and delete only) | No |
vstorage | A file in Virtuozzo Storage | Yes | No |
iscsi | A LUN on an iSCSI target | No (LUNs defined on the target) | No |
iscsi-direct | A LUN reached via libiscsi (no host initiator) | No | No |
scsi | A LUN behind a SCSI host adapter (HBA) | No | No |
mpath | A multipath block device | No | No |
On the supported host operating systems (RHEL, Rocky Linux and AlmaLinux), the zfs and vstorage pool drivers are not shipped, and the gluster and iscsi-direct drivers are shipped on version 8 only.
A pool whose volumes are block devices or network images cannot hold tiCrypt drives, whether or not libvirt can create volumes in it. tiCrypt creates drives as .qcow2 or .raw files and attaches them by file path.
Ceph specifically
libvirt has first-class RBD support. Through an rbd pool it can create, clone, resize, wipe, and delete RBD images directly in a Ceph pool. A VM disk backed by RBD is accessed over the network using QEMU's native RADOS/RBD driver and is not mapped as a local block device on the hypervisor host. RBD volumes are raw only.
tiCrypt does not use that path, because an RBD image has no file path on the host for tiCrypt to attach. To keep tiCrypt storage on a Ceph cluster, use CephFS, the file system Ceph provides: mount it on the backend and on every VM host, and define the tiCrypt pools on directories of it. An encrypted data drive is then one image file in CephFS. Ceph receives the contents of that drive already encrypted and distributes them across OSDs according to the cluster's CRUSH/pool configuration. The distribution is internal to Ceph; the drive consumer does not manage it.
Key deployment considerations for Ceph:
- Authentication: each host mounts CephFS with Ceph
cephxcredentials. - Cluster sizing: performance and resilience are governed by the Ceph cluster (replication factor or erasure coding, OSD and metadata server count, network), independent of tiCrypt.
iSCSI specifically
The libvirt iscsi pool type discovers and exposes the LUNs that already exist on an iSCSI target. libvirt cannot create new LUNs on an iSCSI target. LUN creation is the storage array's responsibility. The same applies to iscsi-direct (which connects QEMU straight to the target via libiscsi, bypassing the host initiator). Layering LVM on the LUNs and defining a logical pool lets libvirt create volumes on demand, but those volumes are logical volumes, which are block devices, so tiCrypt cannot attach them either.
An iSCSI SAN is used with tiCrypt by putting a file system on its LUNs. Which file system depends on how many machines must mount it, counting the backend as well as the VM hosts:
-
One machine runs both the backend and the VMs: The machine logs into the iSCSI target, the LUN appears as a local block device, and you format it with an ordinary file system such as XFS and mount it. The tiCrypt pools are directories on that file system.
-
A separate backend, or more than one VM host: Every machine must see the same files, and an ordinary file system such as XFS or ext4 must not be mounted on more than one machine at a time. Either a file server owns the LUNs and exports the file system to the backend and the VM hosts over NFS, or the LUNs carry a cluster file system that all of them mount. GFS2 is such a file system on RHEL 8 and 9; it was removed in RHEL 10.
In short: iSCSI works as the storage under a file system, not through the iscsi or logical pool types.
How encrypted data drives map onto storage
The mapping is the same on every storage backend:
- One encrypted drive is one image file in the drives pool directory.
- On CephFS: Ceph stripes and replicates the file across OSDs. The "LUN" concept does not apply.
- On an iSCSI SAN: the file lives in the file system on the LUNs. How it spreads over one or more LUNs depends on how that file system and any volume manager beneath it are laid out.
Practical recommendations
- Running Ceph? Mount CephFS on the backend and the VM hosts and define the tiCrypt pools on it. Plan for cephx credentials and appropriate Ceph cluster sizing. An
rbdpool is not used. - Standardized on an iSCSI SAN? Put a file system on the LUN(s): a local one only where a single machine runs both the backend and the VMs, otherwise an NFS export or a cluster file system. The bare
iscsipool type and LVMlogicalpools cannot hold tiCrypt drives. - Validate before committing: Test the full create / attach / delete lifecycle of an encrypted data drive on your chosen file system in a non-production environment first.
