vmware / govmomi

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

[BUG] Can't resize a VM's disk #3464

Closed dpitink closed 3 weeks ago

dpitink commented 3 weeks ago

Describe the bug

Since version v0.37.2, when trying to change a disk's size, I get the error :

$ ./govc vm.disk.change -vm VMNAME -disk.filePath '[DS] PATH/VM.vmdk' -size 29G
./govc: error resizing main disk
Logged Item:  Invalid operation for device '0'.

To Reproduce Steps to reproduce the behavior:

  1. Create a VM with a disk attached
  2. Try to expand the disk using govc vm.disk.change -vm VMNAME -disk.filePath '[DS] PATH/VM.vmdk' -size XXG

Expected behavior The disk should be updated with the new size without any error message, same as in v0.37.1

Affected version Works in v0.37.1. It broke in v0.37.2

github-actions[bot] commented 3 weeks ago

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