How to use encrypted qcow2 images

affenzahn

New Member
Mar 4, 2009
4
0
1
Hi,

i want to use a encrypted qcow2 image for a Proxmox KVM Instance. I create a KVM Instance with a qcow2 image and convert this image into a new one with encryption.

Code:
qemu-img convert -e -O qcow2 vm-101-disk-1.qcow2 vm-101-disk-1-encrypt.qcow2
After i change the first harddrive to the encrypted image. I boot the KVM but don't get a screen over OpenVNC.

I think the KVM is not starting correct cause it maybe need the password for the encrypted image.

Questions:

1. can i use encrypted images with Proxmox / KVM ?
2. what i need to configure to make it work ?

Thx in advanced for your feedback.

Greatings

Adam
 
never tried, but you can take a look on the following:

Code:
qm showcmd 101
hopefully you can figure out whats needed here (how to present the password in the start command) and you can start it.