Much more important than the AG opinion is the PUBLISHED opinion of the Court of Appeals of Virginia.
As we have already seen, any politically motivated public official may disregard the opinion of the Attorney General. What cannot be so easily dismissed is a published opinion from a court of record, which in this case has upheld the AG's opinion, and is much more valuable to cite.
ELIAS P. DOULGERAKIS vs. Commonwealth of Virginia
ETA: Something I just now noticed in re-reading the opinion, the position of the Commonwealth changed between the Circuit Court of Henrico, and the Appeals Court:
The sole issue on appeal is whether a firearm in an unlocked, but latched, glove box of a private vehicle is “secured in a container or compartment” within the meaning of Code §18.2-308(B)(10). Appellant argues that it is, and the Commonwealth agrees, conceding error.