[libvirt-users] could not create snapshotxml on encryption image

Peter Krempa pkrempa at redhat.com
Fri Sep 6 12:06:38 UTC 2019


On Fri, Sep 06, 2019 at 14:39:56 +0800, 18781374080 wrote:
> hi ,everyone!
> I am a newcomer to Libvirt, and I don't know if it's a native question,
> 
> 
> I create snapshots of virtual machines that use encrypted disk, The console gave me the following error:
> 
> 
> Traceback(most recent call last):
>     File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py",line 4613, in snapshot
>           self._dom,snapshotCreateXML(snapxml, snapFlags)
>     File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", in line 98, in f 
>            ret = attr(*args, **kwargs)
>     File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", line 130, in wrapper
>     ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line 92, in wrapper
>     return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2620, in snapshotCreateXML
>     if ret is None:raise libvirtError('virDomainSnapshotCreateXML() failed', dom=self)
>  libvirtError: internal error: unable to execute QEMU command 'transaction': Parameter 'encrypt.key-secret' is required for cipher
> 

Hi, encrypted snapshots will be possible only when using the new
'blockdev' approach to configuring disk sources. The work on that is
almost done. It's possible that the next upstream release will support
it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190906/a1e1aace/attachment.sig>


More information about the libvirt-users mailing list