...
Once you have two machines, proceed with installing TeamCity software as usual: download a distribution package, unpack it or follow the installation wizard.
Configure the TEAMCITY_DATA_PATHPATH environment variable on both machines, make sure it points to the shared data directory.
...