If you're new to the area or just unfamiliar with the voting process the
State Board of Elections website will answer many of your questions about how and where to
register to vote (which gets you the voter ID card), where and when to vote, and what you'll need when you go to vote - you'll find links to your locality from the SBE site.
The Virginia ID card issued by the DMV is one of the acceptable (and probably the easiest one to get, protestations of the entitlement masses notwithstanding) form of government-issued photo ID at your polling place - and you can register to vote at the DMV (again, how dreadfully inconvenient for the so-called "underprivileged", right?) You can go to the
VA DMV ID page to see what you'll need to take with you for the state-issued photo ID.
But to reiterate the posts above the two documents are in fact TWO documents requiring two transactions.