

def launch(self, pause=False):
    'Starts a created guest.\n\n        :param pause: Indicates whether to start and pause the guest\n        '
    flags = ((pause and libvirt.VIR_DOMAIN_START_PAUSED) or 0)
    try:
        return self._domain.createWithFlags(flags)
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.error(_LE('Error launching a defined domain with XML: %s'), self._encoded_xml, errors='ignore')

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py Guest.launch/original