Public ip, let 2 indipendent vm talk to each other

Hi all!!
I would to ask if there is a way to assign a public ip to a vm…
my goal is to assign two public ip to two different vm residing on two separate opennebula cloud, so they could talk to each other…
it is possible to do that?
Thank you!!