Hi,
I started migrating some kvm/qemu VMs from a bare metal / regular server (running debian) to my new proxmox server. So far it works quite well. Thanks for this really polished virtualization environment!
Today i wanted to migrate my Nextcloud VM. It consists of a disk image for the Debian OS and one LUKS encrypted disk image that only holds nextcloud user data and will be mounted at runtime so that nextcloud (it is a non-docker apache install) can access it.
I could import the nextcloud disk image (the OS) just fine, but when i import the data image, i get:
I googled a bit and found that qemu-img can be passed the LUKS keys (altough i'm unsure how this exactly works). But how do i do it with the qm importdisk that is used as a wrapper around it?
Anyone done this before? Any workaround or solution?
thx
I started migrating some kvm/qemu VMs from a bare metal / regular server (running debian) to my new proxmox server. So far it works quite well. Thanks for this really polished virtualization environment!
Today i wanted to migrate my Nextcloud VM. It consists of a disk image for the Debian OS and one LUKS encrypted disk image that only holds nextcloud user data and will be mounted at runtime so that nextcloud (it is a non-docker apache install) can access it.
I could import the nextcloud disk image (the OS) just fine, but when i import the data image, i get:
Code:
root@hostname:~# qm importdisk 160 nextcloud_data.img local
importing disk 'nextcloud_data.img' to VM 160 ...
Formatting '/var/lib/vz/images/160/vm-160-disk-1.raw', fmt=raw size=17177772032
transferred 0.0 B of 16.0 GiB (0.00%)
qemu-img: Could not open 'nextcloud_data.img': Parameter 'key-secret' is required for cipher
copy failed: command '/usr/bin/qemu-img convert -p -n -O raw nextcloud_data.img zeroinit:/var/lib/vz/images/160/vm-160-disk-1.raw' failed: exit code 1
I googled a bit and found that qemu-img can be passed the LUKS keys (altough i'm unsure how this exactly works). But how do i do it with the qm importdisk that is used as a wrapper around it?
Anyone done this before? Any workaround or solution?
thx