This section provides some information which may be useful to programmers and system administrators intending to write custom scripts to make their lives easier by using libvirt.
virsh can handle XML configuration files. You may want to use this to your advantage for scripting large deployments with special options. You can add devices defined in an XML file to a running virtualized guest. For example, to add a ISO file as hdc to a running guest create an XML file: