Haemophilus parasuis is the etiological agent of Glässer's disease in pigs and 15 standard serovars were identified. The widespread disease causes great economic loss in the swine industry worldwide. Aiming to investigate the differences in genome composition and functions among various strains, a highly virulent strain ZJ0906 of H. parasuis serovar 12 from China was analyzed and compared with serovar 5 SH0165. Strain ZJ0906 genome is 2,324,740 base pairs with 40.06% genomic GC content. It contains 2,484 open reading frames (ORF) predicted by Glimmer 3.02, of which 2,352 (∼94.7%) were annotated by NCBI nr blast, 1,745 by COG database and 1,829 by KEGG database. 109 potential virulence factors were annotated in strain ZJ0906 and 3 of which are potentially related to antibiotic resistance. Strain ZJ0906 genome is ∼55 kilobases longer than SH0165 genome, with an extra 211 predicted ORFs. VFDB, ARDB, and PAIDB blast searches showed that ZJ0906 and SH0165 shared a nearly identical panel of potential virulence factors, drug resistant genes and four PAI-like regions which showed high homology to Enterococcus, Escherichia and Salmonella. Synteny analysis showed that gene rearrangements are frequent between the two strains, which may lead to variations in pathogenicity and cross-protection among serovars. KEGG pathway analyses showed strain ZJ0906 shared similar metabolic pathways to strain SH0165. Molecular identification of these genomic elements and potential virulence factors pave the way to the better understanding of mechanisms underlying metabolic capabilities and pathogenicity of H. parasuis and prospective vaccine targets besides the widely used method of inactivated bacteria.