While viruses don't usually make a person light-headed directly, they can make you sick -- and symptoms like fever, nausea, head-ache, dehydration and fatigue can all (especially when combined) cause light-headedness. If you are feeling light-headed and it persists for more than a few minutes, contact your doctor. If you suspect you have a a virus, contact your doctor.
Yes, I can say from personal experience that a virus can make you feel really light-headed. You can also feel dizzy and weak from a virus. It is often recommended to get a lot of rest and drink a lot of fluids to recover. You can also see your doctor if you are running a high fever and/or you are not getting better.