# File lib/virt/guest.rb, line 36
    def running?
      return false if new?
      @domain.active?
    rescue
      # some versions of libvirt do not support checking for active state
      @connection.connection.list_domains.each do |did|
        return true if @connection.connection.lookup_domain_by_id(did).name == name
      end
      false
    end