How do viruses use energy?
If you're talking about biological viruses, they dont actually
need energy as they are mostly proteins and are inactive most of
the time and become active only when they reach a host like a
bacterium or any other cell. Its pure thermodynamics on how the
virus attaches itself and injects DNA/RNA into the host. So there
is no need for energy