GitHub user midhunpjos created a discussion: Volume encryption not working as 
expected with KVM + CLVM_NG in CloudStack 4.23

Environment

Apache CloudStack: 4.23
Hypervisor: KVM + Ubuntu 24.04
Primary Storage: CLVM_NG
Storage Backend: iSCSI
Volume Format: QCOW2

Description

We are testing volume encryption with KVM and CLVM_NG in Apache CloudStack 4.23 
and have observed inconsistent behaviour when creating encrypted root and data 
disks.

1. Root Disk Encryption

When deploying a VM with volume encryption enabled for the root disk, the VM is 
created and starts successfully without any errors.
However, upon verification, the root disk does not appear to be encrypted. It 
seems that CloudStack completes the provisioning process without actually 
applying LUKS encryption to the underlying QCOW2 image.

2. Data Disk Encryption

When creating an additional data disk with encryption enabled and attaching it 
to a running VM, the attachment fails with the following error:

2026-11-27 14:38:18,251 WARN 
[kvm.storage.KVMStorageProcessor](AgentRequest-Handler-4:[]) (logid:7453bf1b)
Failed to attach device to i-2-2237-VM: internal error:unable to execute QEMU 
command 'blockdev-add': No encryption in image header, but options specified 
format 'luks'

Is LUKS-based volume encryption fully supported with KVM + CLVM_NG in 
CloudStack 4.23?



GitHub link: https://github.com/apache/cloudstack/discussions/14888

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to