This is the sort of thing that is best defined by each country's structural codes. I'm from Brazil, so I'm going to use the NBR 6118, our concrete code. That being said, the general gist behind all of the codes tends to be pretty similar.
Doing a free translation, this is what is described in the Brazilian code:
13.2.5.1 Openings that cross a beam along its width
In any case, the minimal distance between an opening and the nearest beam-face must be greater than 5 cm (~2") and twice the concrete cover adopted for the beam. The remaining section in this region, having discounted the area occupied by the opening, must be able to resist the design loads, as well as allow for a good concrete pour.
So that no special check is required, the following conditions must all be satisfied:
- openings must be in the area under tension and at a distance of at least $2h$ from the support, where $h$ is the height of the beam;
- the opening must be lesser than or equal to 12 cm and $\frac{h}{3}$;
- the minimal distance between aligned opening faces is $2h$;
- concrete covers must be satisfied and steel reinforcement is not disrupted.
So, of the positions you present, only position 1 is automatically valid (and maybe 3, depending on the beam's cross-section and where exactly it is, in relation to the support). Position 2 is in the compression area, and 4 and 5 are too close to the support.
That being said, there's nothing to stop you from making openings at these other positions, so long as you certify that the structural integrity of the beam will not be affected.