Ion beam driven instabilities in unmagnetized and strongly magnetized plasmas