code: def query_os_kernel_log(self, max_messages):
          
          if not isinstance(max_messages, baseinteger):
              raise TypeError("max_messages can only be an instance of type baseinteger")
          dmesg = self._call("queryOSKernelLog",
                       in_p=[max_messages])
          return dmesg
docs: Tries to get the kernel log (dmesg) of the guest OS.
  
          in max_messages of type int
              Max number of messages to return, counting from the end of the
              log.  If 0, there is no limit.
  
          return dmesg of type str
              The kernel log.