Counties, cities, and towns shall not require any local permit to drive, except as provided in this section. Counties, cities, and towns may adopt regulations for the licensing of drivers of taxicabs and similar for-hire passenger vehicles and for the control of the operation of such for-hire vehicles. This section shall not preclude any county, city, or town from prosecuting, under a warrant issued by such county, city, or town, a person charged with violation of a local ordinance prohibiting operation of a motor vehicle without a driver's license or while his driver's license or privilege to drive is suspended or revoked.
Va. Code § 46.2-310