BENOUVILLE, France — US President Barack Obama and Russian President Vladimir Putin spoke Friday on the sidelines of a lunch for world leaders attending D-Day commemoration ceremonies, marking their first face-to-face conversation since the crisis in Ukraine erupted.

The conversation was informal and lasted 10-15 minutes inside a chateau where the leaders ate lunch, the White House said.

Putin spokesman Dmitry Peskov said that Obama and Putin had exchanged views about the situation in Ukraine and the crisis in the east, where Ukrainian forces have been fighting with pro-Russian insurgents.

“Putin and Obama spoke for the need to end violence and fighting as quickly as possible,” Peskov said.

Putin also spoke with Ukraine’s newly elected leader, President-elect Petro Poroshenko. The two discussed their desire for a quick end to hostilities in southeastern Ukraine, a Russian spokesman said.

“During the brief conversation, both Putin and Poroshenko spoke for the soonest end to bloodshed in southeastern Ukraine and combat actions by both parties: the Ukrainian armed forces and supporters of the federalization of Ukraine,” Putin’s spokesman Dmitry Peskov said in a statement carried by Russian news wires.

Peskov said that Putin and Poroshenko also “confirmed that there is no alternative to settling the situation by peaceful political means.”

French President Francois Hollande and German Chancellor Angela Merkel also joined in what French officials said was a 15-minute encounter.

As leaders posed outside the chateau for a group photo before the lunch, Obama and Putin appeared to be avoiding each other deliberately. But once inside, they made time for their first such exchange since Putin annexed Ukraine’s Crimean Peninsula.

As the crisis has developed, Obama and Putin have spoken multiple times by phone. But they had not met in person until their mutual interest in paying tribute to the bravery of Allied forces 70 years ago brought them both to the shores of France.

Obama told reporters Thursday that if he and Putin ended up speaking, he would tell the Russian leader that he has a new path to engage with Ukraine through Poroshenko, who is scheduled to take office Saturday.

“If he does not, if he continues a strategy of undermining the sovereignty of Ukraine, then we have no choice but to respond” with more sanctions, Obama said.

Obama, who said his relationship with Putin is “businesslike,” expressed hope that the Russian leader is “moving in a new direction” on Ukraine since he didn’t immediately denounce Poroshenko’s election on May 25. “But I think we have to see what he does and not what he says,” Obama said.

The Obama-Putin meeting followed a gathering earlier in the week in Brussels of leaders from the Group of Seven wealthier nations who pointedly met without Putin. Afterward, the leaders said the Russian president could avoid tougher sanctions in part by recognizing the legitimacy of the government that takes over in Ukraine on Saturday and ending support for an insurgency in eastern Ukrainian cities that the US has said is backed by the Kremlin.

There was no mention of rolling back Russia’s annexation of the Ukrainian region of Crimea, which precipitated sanctions the US and Europe levied on Russia in retaliation. The US and its allies have said the move is illegal and that they will not recognize it.

Copyright 2014 The Associated Press.