Hhariram, your visa status/student status/etc. has no relevance to this question. It is really a legal question regarding the actual property. (And I, and most of the folks on this site are Realtors, not lawyers, if you want legal advice, you need to consult a lawyer). Do you have condo or homeowners association documents, and do they put restrictions on what you can do with the property? Are there other municipal laws that come into play regarding landlords?
If you still are in communication with the Realtor who helped you buy the house, you could reach out to them to see what they suggest. (Or find a new Realtor, or perhaps a lawyer.)
I hope your studies are going well, and best of luck regarding your plans to lease the property.