As you go through your Virginia tax return, look for the screen titled, Here's the income that Virginia handles differently. On that screen you will see a category for Military. Click Start beside the option for Military Benefits Subtraction to exclude your military retirement income.