This method should be called after a new virshsession object created.