Install each extra agent into its own directory (do not reuse the same folder). In each agent's conf/buildAgent.properties set a unique name and a unique ownPort so the agents do not fight over ports. Give each agent distinctive work and temp directories too. Then start each agent's service separately. Watch for the real-world catch the thread implies: agents on one box compete for CPU, disk IO, and tools on PATH, so pin heavyweight build configs apart or stagger them if builds start queueing on resources instead of agents.

Context: Stack Overflow #1789212 (accepted answer, 87 votes): strong build machines sit idle running a single agent, and the asker wants several agents on one box without virtualization. The accepted answer confirms this works: each agent is just an install, and TeamCity treats them as independent agents.