The traditional way to prepare glass and glass ceramics is Melt-Quench method where the glasses can be obtained by melting and rapid cooling of multi component oxides. Further heat treatment resulted glass ceramic.
Another method is sol-gel route which is a chemical route governed by kinetics of various chemical reactions. Sol-gel derived glasses'ceramics are highly porous in structure. Depends on the purpose, you may chose any of the methods.