Displaying 2 results from an estimated 2 matches for "qcow220g".
2020 Apr 15
2
Can't start vm with enc backing files, No secret with id 'sec0' ?
...cret-define and secret-set-value commands,and $MYSECRET is in base64 format
MYSECRET=`printf %s "123456" | base64`
2. created a disk encrypted in luks format
qemu-img create --object secret,id=sec0,data=$MYSECRET,format=base64 -f qcow2 -o encrypt.format=luks,encrypt.key-secret=sec0 enc.qcow220G
3. The encrypted disk is defined in the XML configuration file, as shown below.Then I successfully started the virtual machine.
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/root/enc.qcow2'/&...
2020 Apr 15
0
Re: Can't start vm with enc backing files, No secret with id 'sec0' ?
...ue commands,and $MYSECRET is in base64 format
>
> MYSECRET=`printf %s "123456" | base64`
>
> 2. created a disk encrypted in luks format
>
> qemu-img create --object secret,id=sec0,data=$MYSECRET,format=base64 -f qcow2 -o encrypt.format=luks,encrypt.key-secret=sec0 enc.qcow220G
>
> 3. The encrypted disk is defined in the XML configuration file, as shown below.Then I successfully started the virtual machine.
>
> <disk type='file' device='disk'>
>
> <driver name='qemu' type='qcow2'/>
>
> <...