I am struggling to understand how to clone from templates via the XenAPI using Python using the code samples in the
If, in the GUI I use “quick create”, it works fine. The error is below.
Asking server to provision storage from the template specification
Starting VM
['BOOTLOADER_FAILED', 'OpaqueRef:13ac7347-c597-50b3-c66e-8f4ce172d3d1', 'UNSUPPORTED_INSTALL_METHOD\nother-config:install-repository was not set to an appropriate value, and this is required for the selected distribution type.\n\n']
Traceback (most recent call last):
File "./install.py", line 140, in <module>
main(session)
File "./install.py", line 95, in main
session.xenapi.VM.start(vm, False, True)
File "/root/xen-api/scripts/examples/python/XenAPI.py", line 245, in __call__
return self.__send(self.__name, args)
File "/root/xen-api/scripts/examples/python/XenAPI.py", line 149, in xenapi_request
result = _parse_result(getattr(self, methodname)(*full_params))
File "/root/xen-api/scripts/examples/python/XenAPI.py", line 219, in _parse_result
raise Failure(result['ErrorDescription'])
XenAPI.Failure: ['BOOTLOADER_FAILED', 'OpaqueRef:13ac7347-c597-50b3-c66e-8f4ce172d3d1', 'UNSUPPORTED_INSTALL_METHOD\nother-config:install-repository was not set to an appropriate value, and this is required for the selected distribution
type.\n\n']