Closed fmbiete closed 9 years ago
Ok. Thats the biggest change in the api. That template_name
attribute was not a real attribute of XENSERVER
but rather just a "boolean" attribute that would change completely the behavior of the VM
creation and thus a lot of headaches to support it.
So this option was completely removed. That attribute does not exist anymore. You gotta dance as the XENSERVER
api now :smile: . No magic behind the scenes.
If you want to create a server from a template, just load the template and clone it:
@template = @conn.templates.find ....
@server = @template.clone
@server.provision
If you want to create a server from scratch, you gotta do a little more, like creating the disk, the vif, and installing the operational system.
Be sure to use fog-xenserver
and not fog
because i think it does not accept template_name
as an attribute anymore.
LMK if you have further problems but i think that you should start looking at the API documentation here. The current implementation tries to be the more compliant as possible to the api.
Hi,
When using servers.create to create a new server, using template_name from a template, I end with a template withouth VIFs or VBDs.
That should not create a server (not a template), with cloned vifs and disks?