The folding of an organism's DNA molecule into a compact, orderly structure that fits within the limited space of a CELL or VIRUS PARTICLE.
More specific conditions that are subtypes of DNA Packaging in the MeSH hierarchy.