As for virtue, this comprises three out of eight aspects of the Noble Eightfold Path, the path central in the Buddhist teaching: right speech, right action and right livelihood. Being the main criterion for moral behavior in Buddhism, virtue is mostly about the undertaking of five precepts, although the eight precepts may be kept now and then.
Virtue in Buddhism centers around the Noble Eightfold Path's three aspects of right speech, right action, and right livelihood, which are considered fundamental principles for ethical conduct.  The five precepts serve as a core foundation for moral behavior, while the eight precepts can be followed selectively.