B. In any unlawful detainer case filed under § 8.01-126, if a judge grants the plaintiff a judgment for possession of the premises, upon request of the plaintiff, the judge shall further order that the writ of eviction issue immediately upon entry of judgment for possession. In such case, the clerk shall deliver the writ of eviction to the sheriff, who shall then, at least 72 hours prior to execution of such writ, serve notice of intent to execute the writ, including the date and time of eviction, as provided in § 8.01-470. In no case, however, shall the sheriff evict the defendant from the dwelling unit prior to the expiration of the defendant's 10-day appeal period. If the defendant perfects an appeal, the sheriff shall return the writ to the clerk who issued it. When the appeal is taken by the defendant, he shall be required to give security also for all rent which has accrued and may accrue upon the premises, but for not more than one year's rent, and also for all damages that have accrued or may accrue from the unlawful use and occupation of the premises for a period not exceeding three months. Trial by jury shall be had upon application of any party.