Skip to content
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

vsphere guest os customization not applying #2167

Closed
4 tasks done
lsmokm opened this issue Apr 12, 2024 · 5 comments
Closed
4 tasks done

vsphere guest os customization not applying #2167

lsmokm opened this issue Apr 12, 2024 · 5 comments
Assignees
Labels
bug Type: Bug
Milestone

Comments

@lsmokm
Copy link

lsmokm commented Apr 12, 2024

Community Guidelines

  • I have read and agree to the HashiCorp Community Guidelines .
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Terraform

v1.7.5

Terraform Provider

v2.7.0

VMware vSphere

v7.0.3

Description

vm customization spec is created as expected in vcenter but the spec does not apply to windows vm during deployment

Affected Resources or Data Sources

resource/vsphere_guest_os_customization

Terraform Configuration

resource "vsphere_guest_os_customization" "windows_customization" {
  name = "windows-spec"
  type = "Windows"
  spec {
    windows_options {
      computer_name = "vm-basic-01"
      workgroup     = "lab-wg"
      time_zone     = 085
    }
  }
}

Debug Output

<script src="https://gist.github.com/lsmokm/31f17a59ce06df8f4008a3411a14c708.js"></script>

Panic Output

No response

Expected Behavior

The vm customization spec should be created and applied to vm(s) during deployment

Actual Behavior

The vm customization spec is created but not applied to vm(s) during deployment

Steps to Reproduce

terraform apply

Environment Details

No response

Screenshots

No response

References

No response

@lsmokm lsmokm added bug Type: Bug needs-triage Status: Issue Needs Triage labels Apr 12, 2024
Copy link

Hello, lsmokm! 🖐

Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.

If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.

@tenthirtyam tenthirtyam added this to the v2.8.0 milestone Apr 16, 2024
@spacegospod
Copy link
Collaborator

@lsmokm I tried applying your customization on a Windows Server 2019 VM and it works.

Is it possible that you forgot to sysprep your OS before customizing?
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--system-preparation--overview?view=windows-11

If system preparation isn't performed the customization task passes but has no effect.

@tenthirtyam tenthirtyam added waiting-response Status: Waiting on a Response and removed needs-triage Status: Issue Needs Triage labels Apr 19, 2024
@tenthirtyam
Copy link
Collaborator

Unfortunately, no response from OP. Closing.

@tenthirtyam tenthirtyam removed the waiting-response Status: Waiting on a Response label Apr 30, 2024
Copy link

github-actions bot commented May 8, 2024

This functionality has been released in v2.8.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

github-actions bot commented Jun 8, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants