Many minerals can simply be heated to very high temperatures  or "smelted"  to separate the metal from the silicon and oxygen Liquid metal pours out The containers can be made from high temperature "refractory" ceramic materials  readily available from the Moon and asteroids