The Pacific oyster, Crassostrea gigas, is the most important commercial oyster species cultivated in the world. Meanwhile, the ostreid herpesvirus 1 (OsHV-1) is one of the major pathogens affecting the Pacific oyster, and numerous mortality outbreaks related to this pathogen are now reported worldwide. To assess the genetic basis of resistance to OsHV-1 infection in spat C. gigas and to facilitate breeding programs for such a trait, if any exist, we compared the mortality of half- and full-sib families using three field methods and a controlled challenge by OsHV-1 in the laboratory. In the field, three methods were tested: (A) one family per bag; (B) one family per small soft mesh bag and all families inside one bag; (C) same as the previous methods but the oysters were individually labelled and then mixed. The mean mortality ranged from 80 to 82% and was related to OsHV-1 based on viral DNA detection. The narrow-sense heritability for mortality, and thus OsHV-1 resistance, ranged from 0.49 to 0.60. The high positive genetic correlations across the field methods suggested no genotype by environment interaction. Ideally, selective breeding could use method B, which is less time- and space-consuming. The narrow sense heritability for mortality under OsHV-1 challenge was 0.61, and genetic correlation between the field and the laboratory was ranged from 0.68 to 0.75, suggesting a weak genotype by environment interaction. Thus, most of families showing the highest survival performed well in field and laboratory conditions, and a similar trend was also observed for families with the lowest survival. In conclusion, this is the first study demonstrating a large additive genetic variation for resistance to OsHV-1 infection in C. gigas, regardless of the methods used, which should help in selective breeding to improve resistance to viral infection in C. gigas.