Open git-noise opened 2 years ago
@dmacvicar I have a working branch ready with aforementioned modifications - let me know if you're interested in merging such a feature.
@git-noise did you manage to create a working version? It might get merged eventually if you are interested in it
@scabala it has been quite a while, but I had a working version back then. I'll try and see if I can dig something.
I'd prefer that we try to map as close to libvirt definition as possible, instead of abstracting it away. Even if it requires a bit more verbosity in the definition. It becomes painful to map state otherwise.
I isolated the changes I used back in the days, but a few things seems to have changed with some newer distributions, so I am still untangling these. We can maybe then adopt a tf mapping that is close enough to the libvirt one.
System Information
Linux distribution
Ubuntu 22.04
Terraform version
Provider and libvirt versions
Checklist
[x] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
See 1. hereunder in Issue description
See 2. hereunder in Issue description
See hereunder in Issue description
Description of Issue/Question
Setup
Not tf specific
Steps to Reproduce Issue
Not a bug
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? Have you tried to reproduce the issue without them enabled?
Not relevant here
Issue description
In its current state, it does not seem that the provider supports Secure Boot without some xslt modification.
Regarding code-base actual changes it means at least:
Adding a secure_boot option in the libvirt domain schema in resourceLibvirtDomain. The .tf file could look like:
setFirmware()
in resourceLibvirtDomain, tweakingdomainDef.OS.Loader
with an additionalSecure
attribute depending on the aforementioned secure_boot flag in the .tf file.One caveat is that "secure" Secure Boot with SMM and OVMF needs Q35 - with all the implication of using
Q35
overi440FX
. On top of my head, missing IDE support would certainly impact cloud-init ISO workflows.