I am an Indian citizen and my passport will expire in 2021. I am planning on moving to US for my Masters in 2019, for my VISA application will I face any problems as my passport will expire before i complete my MS which is a two year program. Most of my other colleagues have received a 5 year VISA, will i be able to receive the same.
There's no need to renew your passport early, nor do you need to apply to transfer your visa to a new passport. You can travel using a valid visa in an expired passport as long as you carry both old and new passports.
An afterthought: this applies specifically to US visas. Visas for other countries may need different treatment.