Last time I checked, running an unlicensed hotel was still illegal
Of course running it out of an apartment runs afoul of every rental agreement I've seen.
I think a lot of the arm waving about airbnb is because of the latter situation. I don't think many people seem to have issues with renting out a spare room.