qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: 陳培泓
Subject: Re: [Qemu-devel] Can I mount encrypt qcow2?
Date: Fri, 21 Jul 2017 17:31:04 +0800

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 format 'qcow2' does not support the option 'encrypt.format'


Maybe it doen't support yet?

2017-07-21 16:38 GMT+08:00 Daniel P. Berrange <address@hidden>:

> 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 \
> > >            --image-opts driver=qcow2,file.filename=
> > > demo.qcow2,encrypt.format=luks,encrypt.key-secret=sec0
> >
> > but it shows unrecognized option '--object '
> > why?I missed to install something?
>
> Sounds like you're not running the binaries you just built
>
>
> Regards,
> Daniel
> --
> |: https://berrange.com      -o-    https://www.flickr.com/photos/
> dberrange :|
> |: https://libvirt.org         -o-
> https://fstop138.berrange.com :|
> |: https://entangle-photo.org    -o-    https://www.instagram.com/
> dberrange :|
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]