TL;DR - Thailand is really the best option for you, but enrolling in a postgraduate Buddhist Studies program of some kind might help you get your foot in the door.
If I’m not mistaken, getting a long-term religious visa for Malaysia is impossible. I spoke to some people about this before, and I was told that all someone is able to get, even a monk ordained in Malaysia, is something akin to a tourist visa that requires them to leave Malaysia every few months. Every time you leave there’s a chance they won’t let you back in. So Malaysia is not a suitable place to ordain for foreigners interested in having long-term stability.
Like others have said, the path from laymen to monk can take a few years, and the visa situation is dicey until vows are taken (in the best situation). No one gets a tourist visa long enough to cover the time it takes to find a monastery, stay there, decide its right for you, and for the monastery/monks to decide you are right for them. So another thing you have to think about are the visa runs you’ll have to make until you ordain. Sri Lanka is an island, so that means flying to India, most likely, to renew your tourist visa. That would be more expensive than an overnight bus from Thailand to Laos or Cambodia, for example.
So, practically speaking, I’d say Malaysia is not an option. I wouldn’t recommend Sri Lanka, either, unless you have enough money to cover flights from/to Sri Lanka, hotels, food, other travel expenses, and visa fees while you wait to ordain. It also sounds like you’d have to fly back to Iraq to get the religious visa that allows you to stay in Sri Lanka after ordaining. Your best option is then a Buddhist country that has easily and cheaply accessible borders so you can make visa runs while waiting to ordain. That really only leaves Myanmar, Thailand, Laos, Cambodia, and Vietnam. Of those, Thailand is really the only option, since Myanmar is in the middle of a civil war, and Laos, Cambodia, and Vietnam do not have the infrastructure to support a foreign monk (English language teachings/instruction/training). I also don’t know if there is even a religious visa in those countries. If you’re feeling adventurous, you could still try Myanmar, but the civil war might have impacted the ability to get visas, and you might be risking your life in the process.
If we’re being thorough, there is India and Nepal. The largest form of Buddhism present in those countries is Tibetan Buddhism, though. However, there are a large number of reasons why I wouldn’t recommend that route, chief among them being that Tibetans are poor refugees who are barely able to support themselves. So there will be no support offered to foreigners (you’d be expected to pay to stay in a monastery, no religious visas, etc).
One thing you might consider is going to school to study Buddhism in a country like Sri Lanka. There are a variety of post-graduate degrees offered, and student visas are available that last a year or two, depending on the program. So you could study while you hunt for a suitable monastery. You might be able to form a relationship with one, and minimize visa runs that way.