Earlier quoted context omitted.
There's a lot to be said for running qemu from the command line, vs the complexity and opaqueness of libvirt. For example you can put the invocation in a script and check it into version control, and it will work on anyone's Linux box. You can easily debug the config and be suire about what options qemu was given. Yes, there may be many switches in the invocation, but at least they are in one place, the invocation sy…
You're splitting the option value for -drive into multiple arguments. Here's an idea to fix that while keeping the same style: qemu-system-x86_64 \ -display none \ -m 2048 \ -serial stdio \ -drive "$(printf "%s" file=/export/cirros.qcow2, \ format=qcow2, \ if=virtio )"
args=(
-display none
-m 2048
-serial stdio
# -disabled-option
)
qemu-system-x86_64 "${args[@]}"
The array syntax means you can ditch the tedious backslashes and easily comment individual lines.