How do geodes form?
“Geodes are formed in a cavity such as might be found inside a fossil shell buried in sediment. At the beginning, this cavity is probably filled with a concentrated salt solution. The first step in the creation of a geode is the formation along the inner cavity wall of a layer of gelatinous silica, which will eventually be transformed into the chalcedony layer. As the water surrounding the layer becomes less salty, osmosis induces migration of fluids into the cavity. This results in a buildup of pressure, causing the cavity to expand until the water inside and outside is equally salty. When the silica gel dehydrates, crystallizes to form chalcedony, and cracks, mineral-bearing water enters to slowly deposit the inward-projecting crystals”. http://www.answers.