Unpaid trainees can enter Ukraine either without a visa or on the basis of a visa. This is described in further detail in the "Business Travel" section above.
A trainee who receives any remuneration from the Ukrainian corporate host and whose functions are akin to those of an employee of the Ukrainian host requires a work permit and a D visa together with a temporary residence permit, regardless of the duration of the training.