Visa on arrival for Qatar Citizens and not for you as a Sri Lankan Expat. Try to go to Moroccan Embassy here and ask some of the procedures you need to do.