The likes of Antonio Conte and Zinedine Zidane have been linked with the job at Old Trafford after Solskjaer's side suffered a 5-0 defeat to Liverpool last weekend.
While Guardiola understands the magnitude of the job Solskjaer is facing at United, he does have sympathy for his fellow coach during this tough period.
"Of course. At United, everything that happens is doubled," Guardiola replied when asked if had sympathy for Solskjaer, according to the Independent.
"The influence of them, like Liverpool, they are the greatest teams in England for many years. When it happens, their victories are double, defeats are double. Of course, it's not a surprise.
"If I don't have good results, I'll be treated the same. Every manager. Nobody can survive bad results, no-one. So expectations are so high at United, you have to win.
"For a long time the team doesn't win the Premier League, they do and they work to get results in terms of titles because their history demands it. When I took over Barcelona, I knew it. I had to win. Otherwise, another manager will be in this position.
"I'm saying the most obvious things that everyone knows. And in that moment that it happened I'm pretty sure Ole is surrounded by people, family, the staff to be close to them and try to win the next game. There are no more secrets than that."