Skip to content
  • Daniel P. Berrangé's avatar
    d85f4222
    qcow: convert QCow to use QCryptoBlock for encryption · d85f4222
    Daniel P. Berrangé authored
    
    
    This converts the qcow driver to make use of the QCryptoBlock
    APIs for encrypting image content. This is only wired up to
    permit use of the legacy QCow encryption format. Users who wish
    to have the strong LUKS format should switch to qcow2 instead.
    
    With this change it is now required to use the QCryptoSecret
    object for providing passwords, instead of the current block
    password APIs / interactive prompting.
    
      $QEMU \
        -object secret,id=sec0,file=/home/berrange/encrypted.pw \
        -drive file=/home/berrange/encrypted.qcow,encrypt.format=aes,\
               encrypt.key-secret=sec0
    
    Though note that running QEMU system emulators with the AES
    encryption is no longer supported, so while the above syntax
    is valid, QEMU will refuse to actually run the VM in this
    particular example.
    
    Likewise when creating images with the legacy AES-CBC format
    
      qemu-img create -f qcow \
        --object secret,id=sec0,file=/home/berrange/encrypted.pw \
        -o encrypt.format=aes,encrypt.key-secret=sec0 \
        /home/berrange/encrypted.qcow 64M
    
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Reviewed-by: default avatarAlberto Garcia <berto@igalia.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
    Message-id: 20170623162419.26068-10-berrange@redhat.com
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    d85f4222
    qcow: convert QCow to use QCryptoBlock for encryption
    Daniel P. Berrangé authored
    
    
    This converts the qcow driver to make use of the QCryptoBlock
    APIs for encrypting image content. This is only wired up to
    permit use of the legacy QCow encryption format. Users who wish
    to have the strong LUKS format should switch to qcow2 instead.
    
    With this change it is now required to use the QCryptoSecret
    object for providing passwords, instead of the current block
    password APIs / interactive prompting.
    
      $QEMU \
        -object secret,id=sec0,file=/home/berrange/encrypted.pw \
        -drive file=/home/berrange/encrypted.qcow,encrypt.format=aes,\
               encrypt.key-secret=sec0
    
    Though note that running QEMU system emulators with the AES
    encryption is no longer supported, so while the above syntax
    is valid, QEMU will refuse to actually run the VM in this
    particular example.
    
    Likewise when creating images with the legacy AES-CBC format
    
      qemu-img create -f qcow \
        --object secret,id=sec0,file=/home/berrange/encrypted.pw \
        -o encrypt.format=aes,encrypt.key-secret=sec0 \
        /home/berrange/encrypted.qcow 64M
    
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Reviewed-by: default avatarAlberto Garcia <berto@igalia.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
    Message-id: 20170623162419.26068-10-berrange@redhat.com
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Loading