[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] 'BOOTLOADER_FAILED' install-repository was not set to an appropriate value, and this is required for the selected distribution type.


  • To: 'Andrew Holway' <aholway@xxxxxxxxxxx>, "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • From: Dave Scott <Dave.Scott@xxxxxxxxxx>
  • Date: Mon, 30 Dec 2013 11:06:07 +0000
  • Accept-language: en-GB, en-US
  • Delivery-date: Mon, 30 Dec 2013 11:09:41 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: AQHPAxfx/1CoyYqeZEehZSuf8iplFZpslZrQ
  • Thread-topic: [Xen-API] 'BOOTLOADER_FAILED' install-repository was not set to an appropriate value, and this is required for the selected distribution type.

Hi,

 

I think that example needs a bit of a tweak to work with the current generation of PV templates.

 

If you try installing from the ‘xe’ CLI first you’ll see what I mean. If you “xe vm-install template=… new-name-label=newvm” and then attempt to “xe vm-start vm=newvm” it will fail in the same way, with a missing “other-config:install-repository” key. Note at this point the new VM is in a bad state and should be destroyed.

 

With the CLI you should be able to install via a sequence like

 

VM=$(xe vm-install template=… new-name-label=newvm)

xe vm-param-set uuid=$VM other-config:install-repository=http://path/to/arch/directory

xe vm-start vm=$VM

 

I recommend figuring out the right install-repository URL first via the CLI and then translate this into python. You’d have to insert a line like:

 

session.xenapi.VM.add_to_other_config(vm, “install-repository”, “<my URL>”)

 

just before the session.xenapi.VM.start()

 

HTH

Dave

 

 

From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf Of Andrew Holway
Sent: 27 December 2013 3:26 PM
To: xen-api@xxxxxxxxxxxxx
Subject: [Xen-API] 'BOOTLOADER_FAILED' install-repository was not set to an appropriate value, and this is required for the selected distribution type.

 

Hello, 

 

I am struggling to understand how to clone from templates via the XenAPI using Python using the code samples in the 

 

This is the python I am trying with: https://gist.github.com/mooperd/33ab0b908dc411443652

 

If, in the GUI I use “quick create”, it works fine. The error is below.

 

Thanks,

 

Andrew

 

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']

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.