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

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

Closed
dpitink opened this issue Jun 6, 2024 · 1 comment · Fixed by #3465
Closed

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

dpitink opened this issue Jun 6, 2024 · 1 comment · Fixed by #3465

Comments

@dpitink
Copy link

dpitink commented Jun 6, 2024

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

Copy link
Contributor

github-actions bot commented Jun 6, 2024

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.

dougm added a commit to dougm/govmomi that referenced this issue Jun 7, 2024
PR vmware#3424 switched from the deprecated CapacityInKB field to CapacityInBytes.
That PR focus was to fix an issue with the simulator, but broke against real vCenter.
Just leaving CapacityInKB as-is makes vCenter happy again.

Fixes vmware#3464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant