well buying a visa is illegal. However many small companies do sell a work visa and later provides a NOC.

Yes you are correct, nearly 15K-18K is required to buy this kind of transferable visa and once you get a job after arriving in Qatar. The company who gave you visa and sponsorship will give you NOC.

regards
hussain
6269817