Everything other than the DNA or RNA is dispensable and serves primarily to ensure that the viral nucleic acid gets to the right part of the right sort of cell in the organism hosting the virus, because viruses cannot multiply until they invade a living cell.