-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'firmware' field is not applied when creating VM from template or VM copy #1307
Comments
I just tested with
|
Hello @vitality411 , |
No, in the user interface it is not possible to select the firmware (BIOS or EFI) or the operating system type when you create a VM or vAPP from a template. |
Then it raises a thought if this is allowed by VCD, the value being restored to Could you try to create a template with |
Creating a template from a vApp with efi and then creating a new vApp from this template works - it is configured with efi. |
Could you try to enable logging ? https://registry.terraform.io/providers/vmware/vcd/latest/docs#logging We can double check that the request definitely sends correct payload to API. I would expect so, but we can double check. If it does - it maybe that VCD API simply returns the configuration back to you as it is - then we can't do much |
I tested again with the following config:
So not setting
On the second apply without any changes to the config, terraform changed the firmware from
The complete logs are here. |
Apperently it is really not possible to create a new EFI VM from template:
Only changing the VM to Is this something go-vcloud-director schould provide? |
This log is from terraform. If you enable logging https://registry.terraform.io/providers/vmware/vcd/latest/docs#logging, you should get a go-vcloud-director.log in your working directory. That one will contain all API calls |
@Didainius I uploaded tf.log and go-vcloud-director.log of both applies to the gist. You have to scroll all the way to the bottom. |
Can you give more details about that - what workflow worked with your expectations? Was it creating a VM from template with |
Creating a VM from template with the following config
will create a VM but with A second terraform apply execution will change the VM to |
@vitality411 , |
I verified with provider build from PR branch #1308 that firmware is now correctly set to efi. On a second apply there is no change. |
This will be part of 3.14. |
Hello,
I am unable to set
firmware = "efi"
. It is automatically changed tofirmware = "bios"
(see below). Only when I also setefi_secure_boot = true
firmware will also be set to "efi".VMware Cloud Director version
10.5.1.23400185
Terraform Version
Terraform v1.9.4
on linux_amd6
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
firmware = "efi"
Actual Behavior
firmware = "bios"
Steps to Reproduce
terraform apply
User Access rights
Information about user used. Role and/or more exact rights if it is customized.
Organization Operator
Important Factoids
Is there anything atypical about your accounts that we should know?
I am using ubuntu ova cloud image uploaded to VMware Cloud Director
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: