Thresholds for virus spread on networks