Repository navigation
Volume encryption not working as expected with KVM + CLVM_NG in CloudStack 4.23 #14888
|
Environment Apache CloudStack: 4.23 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.
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) Is LUKS-based volume encryption fully supported with KVM + CLVM_NG in CloudStack 4.23? |
Replies: 4 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. |
|
Closing as answered: CLVM_NG doesn't support encrypted volumes yet; that is planned for a future release. |
Currently CLVM_NG doesn't support encrypted volumes, its something we intend to support in a future release.