vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
150 stars 32 forks source link

BIOS settings with terraform #116

Open Daniel-Avo opened 3 years ago

Daniel-Avo commented 3 years ago

I would like to create terraform template that will create vm on xen orchestra and before installing OS it will setup some variables like system serial number and so on. Is it possible via terraform or I should use other tool?

https://support.citrix.com/article/CTX230618

ddelnano commented 3 years ago

@Daniel-Avo this is likely something that can be supported but I'll need some additional information on how you are trying to use this.

As of right now, you can launch a VM through Terraform with a VM template that has the BIOS settings you want. When the VM is created the BIOS settings will be copied from the template to the VM.

Would that accomplish what you are trying to do? If so the next step after that would be to determine how to manage the template in code (since the provider only has a data source for templates as of today).

Daniel-Avo commented 3 years ago

@ddelnano I wanted to enter to BIOS settings via tf file is it possible?

Daniel-Avo commented 3 years ago

I want to set some variables in BIOS from tf file. Start the VM without os and when the vars will be set install os.

ddelnano commented 3 years ago

Sorry I was out of town the past few days.

Thanks for clarifying. This is actually two feature requests then. There needs to be support for updating BIOS settings in terraform and there needs to be support for launching a VM without an already installed OS which is being tracked in #108.

ddelnano commented 3 years ago

VMs can now be created with diskless templates in v0.16.0 which means the blocking issue is taken care of. The remaining work would be to implement the bios setting support.