Yes, to legally rent residential
property you need a residence visa (EP, WP, PR, PEP, SP, LTVP, DP) of minimum 6 months duration.
The landlord is responsible for checking and ensuring the persons residing in his property fulfil it. They can get into deep shit if they fail to do this, therefore no reasonable landlord would accept a tenant as the OP.