Cricket was being played by the boys. The given sentence is in Past Continuous Tense and it is in active voice. We need to change it into Passive voice. Rule : Subject + (was /were) + being + V3 + Optional Agents.
From Voice · English Language Competence Test
The boy laughed at the beggar.
He was being chased by the dogs.
By whom is the child being fed?
God gives us happiness.
They made him a king.
I cannot draw this picture.
Who can count the stars in the sky?
Whom does he look for?