'LUKS volume to raw

I created luks volume

qemu-img create -f luks --object secret,data=123456,id=sec0 -o key-secret=sec0 demo.luks 40G

How do i convert demo.luks to demo.raw? (or demo.qcow2)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source