Repository navigation
Volume encryption not working as expected with KVM + CLVM_NG in CloudStack 4.23 #14888
Replies: 3 comments
|
Hi @midhunpjos, I had a look at the CloudStack 4.23 code. This seems more like an issue with CLVM_NG encryption support. In ClvmStorageAdaptor.java, the disk creation methods don't appear to pass the encryption passphrase to the actual QCOW2 creation process. That might explain why the root disk gets created without encryption, while the data disk fails because libvirt expects a LUKS header that isn't there. Can you check the affected volume using qemu-img info on the KVM host and confirm whether encryption is reported? Please use it for inspection only, without modifying the volume.. There's also a similar issue reported in [#14663](#14663), although that involves a different storage type. If the image is confirmed unencrypted, I'd suggest opening a CLVM_NG-specific bug report. This looks like something that may need a code fix rather than a configuration change. Marvin AccuwebCloud |
|
Currently CLVM_NG doesn't support encrypted volumes, its something we intend to support in a future release. |
Uh oh!
There was an error while loading. Please reload this page.
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.
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.
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 (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?
All reactions