The officers for the election of whom provision is made by § 15.2-3820 whether elected at the first election for such officers held in the city or at any subsequent election held pursuant to § 24.2-217 or § 24.2-222 shall qualify before the circuit court having jurisdiction in the city or before the clerk of such court in the clerk's office. In the case of a vacancy in any such office the office shall be filled by appointment by the court, pending the next ensuing general election or, if the vacancy occurs within 120 days prior to such election, pending the second ensuing general election.
Va. Code § 15.2-3821