linux – Disable RAM, use swap only

This is a bit of a stupid question to ask. How do I disable the RAM from my system, or at least severely limit it to a couple MB (not enough to run any reasonable operating system) Swap would be used as a replacemnt.

There’s no real practical use for this, but it can be disabled at any time, as long as RAM is off once the user gains access to the system. It’d have to work on a Debian or Ubuntu-based system