The protein shell of a virus, enclosing its genetic material.