code: def _get_state(self):
          
  
          result = yield from self._execute("showvminfo", [self._vmname, "--machinereadable"])
          for info in result.splitlines():
              if '=' in info:
                  name, value = info.split('=', 1)
                  if name == "VMState":
                      return value.strip('"')
          return "unknown"
docs: Returns the VM state (e.g. running, paused etc.)
  
          :returns: state (string)