I suspect some were quartered within the Palace, though never in the IF areas. Perhaps some few in the basement, though I rather think not. As with any guard assignment as prevailed at the AP, there was a rotation of men and posts, and there were nearby barracks. Also, throughout the period of the IF house arrest at the Palace, there still remained some deference to the Romanovs' former status and their personal space, so to speak,at least indoors, and at least among the higher political authorities , like even Kerensky, who made decisions on these things.