def take_snapshot(name, description="", &block)
      with_open_session do |session|
        session.console.take_snapshot(name, description).wait(&block)
      end
    end
def take_snapshot(name, description="", &block)
      with_open_session do |session|
        session.console.take_snapshot(name, description).wait(&block)
      end
    end
Take a snapshot of the current state of the machine. This method can be
 called while the VM is running and also while it is powered off. This
 method will block while the snapshot is being taken.

 If a block is given to this method, it will yield with a progress
 object which can be used to get the progress of the operation.

 @param [String] name Name of the snapshot.
 @param [String] description Description of the snapshot.