Here, Malouli and colleagues demonstrate use of a cytomegalovirus-based T cell vaccine that induces immunity and can protect macaques from lethal avian influenza challenge with heterologous strains of influenza and suggest protection is linked to the generation of lung-resident influenza-specific CD4+ T cells. Here, CD4 is linked to influenza.