If you are getting error as “The bootloader for this VM returned an error” The issue generally occurs when booting sequence is not set. You can verify the booting order by following command.
#xe vm-param-list uuid=a1e31ab1-964b-0426-9667-5b6c37b35431 | grep HVM-boot
HVM-boot-policy ( RW):
HVM-boot-params (MRW):
HVM-boot-params (MRW):
The above output display that booting sequence is not set (“*HVM-boot-params (MRW)*” is raw) for the VM. So to setup booting sequence for VM execute following command.
#xe vm-param-set uuid=a1e91ab3-964a-0426-9667-5c6c36b35431 HVM-boot-policy=BIOS\ order HVM-boot-params:order=”dc”
Enjoy!