Building QMP in qemu-nbd
Hi,
I want to make qemu-nbd QMP aware so the cloud stack my customer work on could start lxc containers with qcow2 KVM images and still benefit from the quorum and snapshot goodness.
Stefan mentioned the nice idea of splitting qapi-schema.json in small files in a subdirectory so qemu-nbd could use only the block related commands.
Eric: What do you think of this idea ?
Do you have variants of this idea ?
Best regards
Benoît
Quoted 11 lines · Benoît Canet
Hi,
I want to make qemu-nbd QMP aware so the cloud stack my customer work on could start lxc containers with qcow2 KVM images and still benefit from the quorum and snapshot goodness.
Stefan mentioned the nice idea of splitting qapi-schema.json in small files in a subdirectory so qemu-nbd could use only the block related commands.
Eric: What do you think of this idea ?
See Lluís' work on creating an include directive (although it needs a respin to use a json5 syntax):
https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg00017.html
So I'm definitely in favor of splitting the schema file into smaller per-topic sections.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Il 13/03/2014 15:40, Benoît Canet ha scritto:
Quoted 5 lines
Hi,
I want to make qemu-nbd QMP aware so the cloud stack my customer work on could start lxc containers with qcow2 KVM images and still benefit from the quorum and snapshot goodness.
Yes, blockdev can help for this. In the meanwhile, could you start a dummy guest ("-M none -m 1 -machine accel=qtest -display none -nodefaults" consumes ~16M here) and use the embedded NBD server?
Quoted 5 lines
Stefan mentioned the nice idea of splitting qapi-schema.json in small files in a subdirectory so qemu-nbd could use only the block related commands.
Eric: What do you think of this idea ?
Do you have variants of this idea ?
Weren't there patches to add "include" directives to qapi-schema.json?
Paolo