Real Madrid head coach Carlo Ancelotti says getting sacked is part of the job after his counterpart Ronald Koeman was dismissed by Barcelona on Wednesday.

Koeman was axed by the Blaugrana following their dismal start to the new season, capped by Wednesday's 1-0 loss to Rayo Vallecano, leaving them ninth in LaLiga.

Intense speculation and pressure had mounted about the Dutchman's future for the past month and former Chelsea and Paris Saint-Germain boss Ancelotti weighed in.

"I've been sacked several times and I'm still here, alive and happy," Ancelotti told reporters after Madrid's 0-0 home draw with Osasuna.

"Getting sacked is part of the job and you have to give it everything you've got until the day you're sacked.

"You have to look forward while keeping a clear conscience. He’s giving everything he has to give."

Madrid's draw with Osasuna moved them into top spot in LaLiga but left them with only four points collected from their past four league games.

Ancelotti's side are also winless from their past three home games, including a 2-1 home defeat to Sheriff in the Champions League.

The stalemate with Osasuna follows a goalless draw with Villarreal in LaLiga, meaning Madrid have recorded back-to-back 0-0 draws in home games in the league for the fourth time, and first since November 1996 under Fabio Capello.

"Of the three games, we deserved to win two of them," Ancelotti said. "We have to understand that they are difficult games for this squad, because in this game we lacked presence in the box.

"But do you want the truth? You can call me crazy, but I liked the performance. Especially in the second half. My players have given everything and we have to keep going."

Ancelotti bemoaned a first-half incident where Los Blancos were denied a penalty after Vinicius Junior was stamped inside the box by Osasuna's Lucas Torro. The Madrid boss also felt aggrieved at a lack of stoppage time in the second half.

"The penalty is a complicated issue. All I saw, was Vinicius asking the referee to take a look at VAR and he didn't get why," Ancelotti said.

"Then I understood why, he stamps on him and I think it's a penalty. Why VAR did not intervene I don't know.

"I told the referee I felt he hadn't added enough injury time given how the game had gone. I asked him for an explanation but it wasn't very convincing."

Vinicius Junior was busy throughout, attempting 71 passes (64 completed), which was his highest in a single game for Madrid in all competitions.