vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.26k stars 896 forks source link

[BUG] Customize option failing for Windows VM due to missing Userdata #3443

Closed rubinthomasdev closed 3 weeks ago

rubinthomasdev commented 1 month ago

Describe the bug The customize option using govc vm.customize fails to customize Windows VM due to missing mandatory parameters fullname and organization. Refer the mandatory parameters here : link

To Reproduce Steps to reproduce the behavior:

  1. run the govc vm.customize command to customize a windows vm
    govc vm.customize -vm=<windows-vm-name> -u="<vcenter-url>" -dc="<datacenter-name>" -ip=<vm-ip> -netmask=<netmask> -gateway=<gateway-ip> -name=<windows-vm-name> -type=Windows -domain="<domain-name>"

Expected behavior VM to be successfully customized with ip, netmask and gateway settings.

Affected version govc version : v0.37.2.

Screenshots/Debug Output Got an error.

A specified parameter was not correct: spec.identity.userData.fullName

Additional context NA.

github-actions[bot] commented 1 month ago

Howdy 🖐   rubinthomasdev ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.