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] Fail to create a new VM using PowerCLI integration #3422

Closed
radumgd opened this issue Apr 23, 2024 · 2 comments
Closed

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

radumgd opened this issue Apr 23, 2024 · 2 comments

Comments

@radumgd
Copy link

radumgd commented Apr 23, 2024

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

  • New-VM -Name "TestVM" -VMHost "DC0_H0" -Datastore "LocalDS_0" -Memory ...
  •   + CategoryInfo          : InvalidArgument: (:) [New-VM], InvalidArgument
      + FullyQualifiedErrorId : ViCore_VMServiceImpl_TryValidateVmMemorySize_InvalidMemorySize,VMware.VimAutomation.ViCore.Cmdlets.Comma
     nds.NewVM
    
    

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

Regards!

Copy link
Contributor

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
Copy link
Contributor

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

@tenthirtyam tenthirtyam closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
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

No branches or pull requests

2 participants