0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00

fix(vm): update smbios during clone (#827)

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2023-12-20 21:28:43 -05:00 committed by GitHub
parent 552f56f289
commit 0ffe75afa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -143,6 +143,10 @@ resource "proxmox_virtual_environment_vm" "example" {
] ]
} }
smbios {
serial = "my-custom-serial"
}
initialization { initialization {
// if unspecified: // if unspecified:
// - autodetected if there is a cloud-init device on the template // - autodetected if there is a cloud-init device on the template

View File

@ -2176,6 +2176,8 @@ func vmCreateClone(ctx context.Context, d *schema.ResourceData, m interface{}) d
updateBody.StartOnBoot = &onBoot updateBody.StartOnBoot = &onBoot
updateBody.SMBIOS = vmGetSMBIOS(d)
updateBody.StartupOrder = vmGetStartupOrder(d) updateBody.StartupOrder = vmGetStartupOrder(d)
//nolint:gosimple //nolint:gosimple