def restore(&block)
      machine.with_open_session do |session|
        session.console.restore_snapshot(interface).wait(&block)
      end
    end
def restore(&block)
      machine.with_open_session do |session|
        session.console.restore_snapshot(interface).wait(&block)
      end
    end
Restore a snapshot. This will restore this snapshot's virtual machine
 to the state that this snapshot represents. This method will block while
 the restore occurs.

 If a block is given to the function, it will be yielded with a progress
 object which can be used to track the progress of the operation.