Skip to content
This repository was archived by the owner on Aug 3, 2021. It is now read-only.

Conversation

joncave
Copy link

@joncave joncave commented Mar 3, 2018

Prior to this change instant provisiong of VMs from the template would not work. This affected the "Quick Create" button in XenCenter or any other programmatic use of the clone, provision, start API calls. This change matches the actions taken when converting to template with XenCenter.

Adding instant to other config comes directly from XenCenter: https://github.com/xenserver/xenadmin/blob/92b3dc839524497168305a9c3e8f77a37536ec16/XenAdmin/Commands/ConvertVMToTemplateCommand.cs#L82

I can't remember exactly how I figured out to remove the disks XML from other config as well as it was difficult to follow the xen-api OCaml code. IIRC I saw the difference by comparing output from xe between a Packer produced template and one converted from a VM using XenCenter. The only decent reference to what the disks XML is that I could find was https://github.com/xapi-project/xen-api/blob/fe3dacf19fa179dbe4aae57c1b4e83e8dfab52bc/scripts/examples/python/provision.py#L16-L19 which also suggests that templates created from an actual VM wouldn't have it.

Prior to this change instant provisiong of VMs from the template would
not work. This affected the "Quick Create" button in XenCenter or any
other programmatic use of the clone, provision, start API calls. This
change matches the actions taken when converting to template with
XenCenter.
@joncave
Copy link
Author

joncave commented Mar 3, 2018

I also submitted the API bindings changes upstream: xenserver/go-xenserver-client#16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant