You must pull over to the edge of the road and allow an emergency vehicle to pass:

You must pull over to the right edge of the road and stop for an emergency vehicle with flashing lights, regardless of whether it is approaching you from behind or from the opposite direction.

Wait, before you go

Ace Your Virginia DMV Written Test with our Guaranteed Cheat Sheet