A VM inside the machine
Srsly, Idk, but at least having a VM would work...
And I'm wondering: y u want 2 clients open?
I run two nodes on one machine. One node is a hub and accepts a ton of incoming connections from around the world. The other node is
only connected to that hub, and has a wallet.
I mostly did it because I have a cron job that detaches the wallet node and copies the block files out for distribution to my RAMdisk mining nodes, to speed their reboots. I wanted to keep a well connected node running, despite shutting down the client every day, so I've been running two for quite a while now. Turns out that there are nice privacy and security benefits from running them split like this too.
And grue has it exactly right, as usual. You need two sets of data directories, two configuration files, and two sets of 2 ports. You can even talk to both nodes using the bitcoind command line by specifying
-conf= along with your commands.