Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-25 Thread Eric Blake
On 07/24/2017 11:26 PM, lampahome wrote: > I thought 2.9.0 is the latest and check to the wrong commit. You're still top-posting, even after being told not to: http://www.caliburn.nl/topposting.html > Now it supports encryption. > > My cmd is: > >> qemu-nbd --object secret,id=sec0,file=passwd.t

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-24 Thread lampahome
I thought 2.9.0 is the latest and check to the wrong commit. Now it supports encryption. My cmd is: > qemu-nbd --object secret,id=sec0,file=passwd.txt,format=raw \ > --image-opts > driver=qcow2,file.filename=demo.qcow2,encrypt.format=luks,encrypt.key-secret=sec0 But it shows error m

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-24 Thread Eric Blake
On 07/23/2017 08:49 PM, 陳培泓 wrote: > I check to the newest version of qemu. You're still top-posting, which makes it really hard to answer your questions. > > and do the cmds to install followed by the documents in github: > >> mkdir build >> cd build >> ../configure >> make > > > and it show

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-23 Thread 陳培泓
I check to the newest version of qemu. and do the cmds to install followed by the documents in github: > mkdir build > cd build > ../configure > make and it show nothing errors​ It's the version when I enter qemu-img --help: and I execute encrypt format(luks) to the qcow2 file: ​ always shows

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread Eric Blake
On 07/21/2017 09:06 AM, Daniel P. Berrange wrote: >> Oops, looks like 'git send-email' doesn't know how to auto-cc >> 'Reported-by:' tags. > > That's something that's bugged me too - someone should write a patch for > git :-) Attempted: http://marc.info/?l=git&m=150064653516706&w=2 -- Eric Blak

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread Daniel P. Berrange
On Fri, Jul 21, 2017 at 09:05:21AM -0500, Eric Blake wrote: > On 07/21/2017 07:18 AM, Eric Blake wrote: > > [please don't top-post on technical lists] > > > > On 07/21/2017 04:41 AM, 陳培泓 wrote: > >> oh Maybe the version is something wrong? > >> > >> qemu-img -V > >> > >>> qemu-img version 2.9.0 >

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread Eric Blake
On 07/21/2017 07:18 AM, Eric Blake wrote: > [please don't top-post on technical lists] > > On 07/21/2017 04:41 AM, 陳培泓 wrote: >> oh Maybe the version is something wrong? >> >> qemu-img -V >> >>> qemu-img version 2.9.0 >> >> >> qemu-nbd -V >> >>> qemu-nbd version 0.0.1 >> >> >> They're not correspo

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread Eric Blake
[please don't top-post on technical lists] On 07/21/2017 04:41 AM, 陳培泓 wrote: > oh Maybe the version is something wrong? > > qemu-img -V > >> qemu-img version 2.9.0 > > > qemu-nbd -V > >> qemu-nbd version 0.0.1 > > > They're not correspondent? Not currently, although patches are welcome (q

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread 陳培泓
oh Maybe the version is something wrong? qemu-img -V > qemu-img version 2.9.0 qemu-nbd -V > qemu-nbd version 0.0.1 They're not correspondent? 2017-07-21 17:34 GMT+08:00 Daniel P. Berrange : > On Fri, Jul 21, 2017 at 05:31:04PM +0800, 陳培泓 wrote: > > It works after I replace the /usr/bin/qem

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread Daniel P. Berrange
On Fri, Jul 21, 2017 at 05:31:04PM +0800, 陳培泓 wrote: > It works after I replace the /usr/bin/qemu-nbd with binary I built. > > My cmd is : > > > qemu-nbd --object secret,id=sec0,file=passwd.txt,format=raw \ > > --image-opts driver=qcow2,file.filename= > > demo.qcow2,encrypt.format=lu

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread 陳培泓
It works after I replace the /usr/bin/qemu-nbd with binary I built. My cmd is : > qemu-nbd --object secret,id=sec0,file=passwd.txt,format=raw \ > --image-opts driver=qcow2,file.filename= > demo.qcow2,encrypt.format=luks,encrypt.key-secret=sec0 But I got other message: > Block form

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-21 Thread Daniel P. Berrange
On Fri, Jul 21, 2017 at 09:44:33AM +0800, 陳培泓 wrote: > I re-build qemu from the https://github.com/qemu/qemu, and it didn't show > any errors. > > I tried the cmd you suggested below: > > > qemu-nbd --object secret,id=sec0,file=passwd.txt,format=raw \ > >-c /dev/nbd0 \ > >

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-20 Thread 陳培泓
I re-build qemu from the https://github.com/qemu/qemu, and it didn't show any errors. I tried the cmd you suggested below: > qemu-nbd --object secret,id=sec0,file=passwd.txt,format=raw \ >-c /dev/nbd0 \ >--image-opts driver=qcow2,file.filename= > demo.qcow2,encrypt.format=

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-20 Thread Daniel P. Berrange
On Thu, Jul 20, 2017 at 05:07:49PM +0800, 陳培泓 wrote: > oh~ I don't know can expose the LUKS encryption. I'm sure the older(AES) > can't be mounted by qemu-nbd. It can be mounted, with current git master (all the commands I show below are for git master btw). You should, however, *never* use the o

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-20 Thread 陳培泓
oh~ I don't know can expose the LUKS encryption. I'm sure the older(AES) can't be mounted by qemu-nbd. If I encrypt by the command you recommended: > qemu-nbd --object secret,id=sec0,file=passwd.txt,format=raw \ > --image-opts driver=qcow2,file.filename= > demo.qcow2,encrypt.format=l

Re: [Qemu-devel] Can I mount encrypt qcow2?

2017-07-20 Thread Daniel P. Berrange
On Thu, Jul 20, 2017 at 10:43:53AM +0800, 陳培泓 wrote: > Can I mount encrypt qcow2 file through qemu-nbd? What encryption format are you referring to ? The old AES encrypt, or the new LUKS encrypt ? The latter is the only one people should be using, and you can expose it with qemu-nbd --object

[Qemu-devel] Can I mount encrypt qcow2?

2017-07-19 Thread 陳培泓
Can I mount encrypt qcow2 file through qemu-nbd? I tried but failed and nothing about that in man page