vmware / govmomi

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

[BUG] Fail to create a new VM using PowerCLI integration #3422

Closed radumgd closed 1 month ago

radumgd commented 2 months ago

Hi!

I want to test an automatic deployment of a VM, I can receive data from the inventory, but when I try to create a new one I get a non logical error, saying that "The valid range for VM memory size is between 4 MB and 0 MB".

PS C:\Users\Administrator> New-VM -Name "TestVM" -VMHost "DC0_H0" -Datastore "LocalDS_0" -MemoryMB 1024 -NumCpu 2 -NetworkName "VM Network" -DiskMB 20000 New-VM : 4/23/2024 9:42:52 AM New-VM The valid range for VM memory size is between 4 MB and 0 MB. At line:1 char:1

I would appreciate your feedback, maybe there is a workaround that I can apply to get it working.

Regards!

github-actions[bot] commented 2 months ago

Howdy 🖐   radumgd ! 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

Closing this issue as it's not related to vmware/govmomi.