Paul Gilbert Jr., of Rose Hill, Va., and Curtis Allen Fortner, of Jonesville, each posted a $25,000 bond following the hearings in Scott County General District Court.
Aubrey Gene Carter, an inmate at the jail, swore out warrants against the two former officers alleging that on April 9 he was sexually penetrated with an object by Gilbert while Fortner held him down.
Gilbert faces a felony charge of object sexual penetration, while Fortner faces a felony charge of aiding and abetting object sexual penetration.
The two former jailers also face misdemeanor charges that are similar in nature.
In a complaint filed last month, David Dewayne Scott, another inmate at the jail, accused Gilbert and Fortner of entering his cell and restraining him with handcuffs and leg irons.
According to the complaint, Fortner then put hair conditioner on Scott's buttocks.
Both sets of warrants have been sworn out by the alleged victims, but the Virginia State Police are still in the middle of an investigation, said Scott County Assistant Commonwealth Attorney Dan Fellhauer.
Fellhauer attended the arraignment Tuesday, but he requested the case be transferred to a special prosecutor by Circuit Court Judge John Kilgore. Kilgore will find an attorney to handle prosecution of the case who does not have a conflict with the regional jail, Fellhauer said.
A May 17 preliminary hearing is scheduled on the misdemeanor charges.
Gilbert and Fortner were dismissed from their positions at the jail.