def start(self, name):
        dom = self.get_inactive_domain(name)
        if not dom:
            raise Exception("%s not found or already started." % name)

        for host in self.hosts:
            if host["name"] == dom["host"]:
                dom = host["conn"].lookupByName(name)
                return dom.create()
dataset/ETHPy150Open mizzy/maglica/maglica/virt.py/Virt.start/original