Where can I get a Master Ball?
Solution 1:
After defeating Valerie in Laverre City, your friends will tell you to meet up near the Poké Ball Factory, at the northern part of the city. After beating Team Flare in the factory, the president of the factory will give you a Master Ball. The Master Ball is obtained in the storyline.
Another way to get a Master Ball is the Lottery Corner found in Lumiose City on Estival Avenue. If you can't find it, just take a cab there. Enter a cab, and pick services, one of the options is the Loto-ID Center, which is the lottery. Matching all five numbers, is a Master Ball, according to Serebii.net.
Solution 2:
According to Serebii, there is a lottery corner somewhere in Lumiose City, using the same system as the the ones before Gen 5 (by ID number of any of your Pokémon). I can't seem to find it myself, and I also don't know what the prizes are, but chances are it's still a Master Ball for matching all numbers.
http://serebii.net/xy/dailyevent.shtml
The information is on this page, and it has an image of what the building looks like on the inside.
EDIT: Found it. It's on Estival Avenue.
Solution 3:
As others have said the lottery is in Estival Avenue in Lumiose City. It is the city you go to right after the first gym leader, Viola, who is a bug type gym leader, although you can't go there until you save the blackout in the Lumiose power plant at Route 13.