Trouble using Xen Hypervisor

Hi,

I am trying to use opennebula v5.2 with Xen Hypervisor on the nodes and base machines as CentOS 7. It was not working initially because the nodes were not getting recognized but I solved the problem through this link I found.
https://github.com/OpenNebula/addon-xen/issues/8
("I comment the line: #load_vars(hypervisor, file, vars) inside the file: “/var/tmp/one/vmm/xen/poll”)

Now that the host is correctly being monitored, I tried depoying a VM but it’s giving error. Here are the logs.

Wed Feb 8 22:39:07 2017 [Z0][VM][I]: New state is ACTIVE
Wed Feb 8 22:39:07 2017 [Z0][VM][I]: New LCM state is PROLOG
Wed Feb 8 22:39:23 2017 [Z0][VM][I]: New LCM state is BOOT
Wed Feb 8 22:39:23 2017 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/145/deployment.0
Wed Feb 8 22:39:23 2017 [Z0][VMM][E]: Boot option not supported.
Wed Feb 8 22:39:23 2017 [Z0][VMM][E]: deploy_action, error generating deployment file: /var/lib/one/vms/145/deployment.0
Wed Feb 8 22:39:23 2017 [Z0][VM][I]: New LCM state is BOOT_FAILURE

Does anybody have an idea why is this happening?

Also, while creating a template it gives an option to chose KVM or vCenter hypervisor, but xen is not an option over there. Could that be the problem?

Hello. I found a better solutin for this problem. I don’t remember when I found it in my researchs and who did that, but try to apply this patch to this file: /var/lib/one/remotes/vmm/xen/poll
poll.patch (1.5 KB)
I’m testing for 2 months and everything is running smoothly. Sorry for my bad english.
Best Regards,
Jeparre

I found now from where i got that solution: https://github.com/abealasd/addon-xen/pull/1/commits/9d87c9ae99be0c7924a49af6e82dbd62907bdbe3