def METHOD_NAME(self):
    error_context.context("Config guest and reboot it", self.test.log.info)
    pre_cmd = self.params.get("pre_cmd") + self.params.get("pre_cmd_extra")
    session = self.vm.wait_for_login(timeout=360)
    session.cmd(pre_cmd, timeout=240)
    session = self.vm.reboot(session=session, timeout=900, serial=False)
    self.__sessions__.append(session)