The guide is made from a thick-walled pipe; it is wider at the back end to accommodate the varying chain direction with different gears, and open at the bottom. One side is flattened, and screwed to a bracket which in turn is screwed to a clamp. All home-made.
A simple U-shaped thingie over the chain will work equally well and be simpler.