Displaying 3 results from an estimated 3 matches for "backflash".
2020 Jan 31
3
Does Libvirt's json parser support single quoted string in qmp json string?
...-commit to commit the changes in the top image to the base image which is encrypted.
So in the base parameter, I need a json string which is single quoted to support the encryption parameters.
However, the virsh is failed to parse the whole json qmp command.
Attempt 1: Single quote without backflash, failed
root@host:~# virsh qemu-monitor-command i-9wdfw2x8 "{\"execute\": \"block-commit\", \"arguments\": { \"device\": \"drive-virtio-disk2\", \"job-id\": \"job100\", \"base\":'json:{\"encrypt.key-sec...
2020 Jan 31
1
Re: Does Libvirt's json parser support single quoted string in qmp json string?
...r when
using qemu-4.2. Those two versions start using blockdev way of
specifying images and encrypted images are supported.
Please consider using libvirt-6.0 though as there are few fixes for
blockdev.
>
>
>
> Attempt 1: Single quote without backflash, failed
>
> root@host:~# virsh qemu-monitor-command i-9wdfw2x8 "{\"execute\": \"block-commit\", \"arguments\": { \"device\": \"drive-virtio-disk2\", \"job-id\": \"job100\", \"base\":'json:{\&qu...
2020 Jan 31
0
Re: Does Libvirt's json parser support single quoted string in qmp json string?
...nd if virsh can't parse it, libvirt can't pass
it on to qemu (even if qemu would have parsed it as written). To write
JSON inside JSON, you have to do things like:
"base":"json:{\"encrypt.key-secret\":\"vo...
>
>
> Attempt 2: Single quote with backflash, failed
>
> root@host:~# virsh qemu-monitor-command i-9wdfw2x8 "{\"execute\": \"block-commit\", \"arguments\": { \"device\": \"drive-virtio-disk2\", \"job-id\": \"job100\", \"base\":\'json:{\"encry...