You can also get an onix earlier on in the game if you talk to a hiker near the peridot ward station who asks you for any available apartments to rent. Near him there is a house which when you talk to the guy he is looking for people to rent it, talk to the hiker again he will move in there and if you go see him there, he will give you an onix. Just thought that was worth mentioning