you just need to battle wild pokemon while a pokemon with the virus is in your party, it may take a few battles tough. after 24 hours the virus will disappear so you need to spread it before that happens. If a pokemon is in the pc the time will not increase meaning that you can always keep a pokemon infected for future use.