vmware / govmomi

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

[BUG] govc v0.37.2 command vm.disk.change always fail #3454

Closed Fred78290 closed 1 month ago

Fred78290 commented 1 month ago

Describe the bug After update to govc v0.37.2 the command vm.disk.change always fail The version v0.37.1 works correctly

To Reproduce Steps to reproduce the behavior:

  1. Import OVA ubuntu: https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.ova
  2. govc vm.disk.change -vm noble-server-cloudimg-amd64 -size=20G

Expected behavior Resize disk to the expected size

Affected version v0.37.2 on MacOS + Linux.

Screenshots/Debug Output govc: error resizing main disk Logged Item: Invalid operation for device '0'.

Additional context command installed with these method

  1. curl -L -o - https://github.com/vmware/govmomi/releases/download/v0.37.2/govc_Darwin_arm64.tar.gz | tar -C /usr/local/bin -xvzf - govc
  2. go install github.com/vmware/govmomi/govc@latest
github-actions[bot] commented 1 month ago

Howdy 🖐   Fred78290 ! 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.

tenthirtyam commented 1 month ago

Duplicate of #3441