This is the reason why Carvajal was absent in training

Dani Carvajal did not train with the rest of the team just two days before the match against Bayern Munich.
Real Madrid yesterday trained before the Champions League match against Bayern Munich.

Pepe and Raphael Varane were not the only who where absent, Dani Carvajal was not seen on training also but the reason is that Zidane is resting him.