Is there a way of creating a domain with virsh from a base image? I have looked around and found that it is possible using virt-install, however I would prefer it if this was done purely through virsh, as I am using libvirt language bindings just to make things easier.
I have thought of one way of doing it, which would involve dumping out the XML configuration into a temporary file, editing some of the settings, such as the name, memory, vcpus, and possibly the disk size. Then using that XML file to create the new image, would that be a feasible way of doing it?