How to build a battery pack for a 12V device?

The voltage dropped across your resistor depends on the current drawn. For an active circuit the current is not constant. You can do this with a single component like a LED or a lamp but not for an active circuit.

If it is just for demo, there are small 12V batteries like the 23A.