Re: 'qemu-img create' to backup encrypted qcow2 - ?

2021-08-16 Thread Peter Maydell
On Mon, 16 Aug 2021 at 15:14, lejeczek wrote: > On 16/08/2021 10:02, Peter Maydell wrote: > > Please don't make me try to reconstruct what you ran. Run > > the command, and cut-and-paste the command line and the > > output from your terminal into an email. > reconstruct? "work out what you actua

Re: 'qemu-img create' to backup encrypted qcow2 - ?

2021-08-16 Thread lejeczek
On 16/08/2021 10:02, Peter Maydell wrote: On Sun, 15 Aug 2021 at 17:26, lejeczek wrote: On 15/08/2021 13:17, Peter Maydell wrote: How about you say what command line(s) you tried that gave that error message ? Almost identical to the original, only take out 'options' out and put in front o

Re: 'qemu-img create' to backup encrypted qcow2 - ?

2021-08-16 Thread Peter Maydell
On Sun, 15 Aug 2021 at 17:26, lejeczek wrote: > On 15/08/2021 13:17, Peter Maydell wrote: > > How about you say what command line(s) you tried that gave that > > error message ? > Almost identical to the original, only take out 'options' > out and put in front of '-b' (or any other place in cmd a

Re: 'qemu-img create' to backup encrypted qcow2 - ?

2021-08-15 Thread lejeczek
On 15/08/2021 13:17, Peter Maydell wrote: On Sun, 15 Aug 2021 at 13:07, lejeczek wrote: On 14/08/2021 11:19, Peter Maydell wrote: On Sat, 14 Aug 2021 at 08:24, lejeczek wrote: -> $ qemu-img create -f qcow2 -b -o encrypt.key-secret=3fd57349-3671-4cf2-ab00-f13b8ba00a4d /00.GLUSTER-mnt/VMs

Re: 'qemu-img create' to backup encrypted qcow2 - ?

2021-08-15 Thread Peter Maydell
On Sun, 15 Aug 2021 at 13:07, lejeczek wrote: > > > > On 14/08/2021 11:19, Peter Maydell wrote: > > On Sat, 14 Aug 2021 at 08:24, lejeczek wrote: > >> -> $ qemu-img create -f qcow2 -b -o > >> encrypt.key-secret=3fd57349-3671-4cf2-ab00-f13b8ba00a4d > >> /00.GLUSTER-mnt/VMs3/enc.locallan.qcow2 -F q

Re: 'qemu-img create' to backup encrypted qcow2 - ?

2021-08-15 Thread lejeczek
On 14/08/2021 11:19, Peter Maydell wrote: On Sat, 14 Aug 2021 at 08:24, lejeczek wrote: -> $ qemu-img create -f qcow2 -b -o encrypt.key-secret=3fd57349-3671-4cf2-ab00-f13b8ba00a4d /00.GLUSTER-mnt/VMs3/enc.locallan.qcow2 -F qcow2 ./enc.locallan.qcow2.bkp qemu-img: Invalid image size specified

Re: 'qemu-img create' to backup encrypted qcow2 - ?

2021-08-14 Thread Peter Maydell
On Sat, 14 Aug 2021 at 08:24, lejeczek wrote: > -> $ qemu-img create -f qcow2 -b -o > encrypt.key-secret=3fd57349-3671-4cf2-ab00-f13b8ba00a4d > /00.GLUSTER-mnt/VMs3/enc.locallan.qcow2 -F qcow2 > ./enc.locallan.qcow2.bkp > qemu-img: Invalid image size specified. You may use k, M, G, > T, P or E suf

'qemu-img create' to backup encrypted qcow2 - ?

2021-08-14 Thread lejeczek
Hi guys. I am trying to backup qcow2s which are luks encrypted but I fail and I wonder if it's my syntax being crooked or something is not working in qemu(-img). Non-encrypted qcow2 works fine and I only add encryption bits to cmd line, here: -> $ qemu-img create -f qcow2 -b -o encrypt.key-