One is to use heavy duty self adhesive Velcro mounted on the console and an inexpensive nylon holster with Velcro on the back of it.
You can buy nylon holsters with Velcro on the back from companies that sell fanny packs. The holsters have Velcro so the holster can be stuck to the back wall of a fanny pack gun pocket.
Blackhawk and Eagle make fanny packs and the holsters. Just buy a holster.
You can find super strong self adhesive Velcro strips in most hardware and some Walmart stores.
The best is Velcro brand. it comes in precut sections or in 4 foot lengths.
The adhesive has to be applied then allowed to bond for 24 hours for full strength, before use.
Clean the area thoroughly to remove oils and if possible roughen the area with sand paper to give the adhesive a "tooth" to bond to.
There are many other ways of doing this. including mounting a section of heavy nylon or leather strap then use a clip-on holster.
Use some imagination on how to attach a holster.