Virus is considered to be on the boundary line between the living and the non living.It is becomes active only if it enters a host body otherwise it remains inactive.
Sun is simply a non living thing as it is made up of gases and other such things...there is no living matter inside it.