'Defines a domain, but does not start it.
:param xml: XML domain definition of the guest.
:returns: an instance of Guest'

def write_instance_config(self, xml):

    domain = self.get_connection().defineXML(xml)
    return libvirt_guest.Guest(domain)
