Virginia hangs on in Raleigh to down N.C. State and improve to 4-2 in the ACC.