In any suit a defendant may, whether the suit is on the court docket or not, confess a judgment in the clerk's office for so much principal and interest as the plaintiff may be willing to accept a judgment or decree for. The same shall be entered of record by the clerk in the order book and be as final and as valid as if entered in court on the day of such confession. The clerk shall record such judgment or decree and the date and time of the day at which the same was confessed. The lien of such judgment or decree shall run from the time such judgment is recorded on the judgment lien docket of the clerk's office of the county or city in which land of the defendant lies.
Va. Code § 8.01-431