VMware Communities
erik5678
Enthusiast
Enthusiast

Failed to allocate main memory when setting memory to 3096

Hi,

I decided to give a VM 3096 MB of RAM on accident instead of 3072 and got this fun error:

"Failed to allocate main memory.

Module 'MainMem' power on failed.

Failed to start the virtual machine"

Any other memory amount I have tried works, but not 3096.

I'm not sure where to report bugs, so I'm reporting it here.

Screen Shot 2021-09-24 at 22.40.19.png

4 Replies
Mikero
Community Manager
Community Manager

this is the place to report bugs, thanks for sharing!

That's... a weird one for sure!

-
Michael Roy - Product Marketing Engineer: VCF
Mikero
Community Manager
Community Manager

So it looks like it's any value not assignable by the slider in the UI, verified I can reproduce that. Bug filed! 

-
Michael Roy - Product Marketing Engineer: VCF
erik5678
Enthusiast
Enthusiast

Interesting. Glad to know it's been filed. I spent some time scratching my head as to why the VM wouldn't boot until I tried changing the RAM setting.

The interesting thing is that 6192 works, but it's not on the slider so I'm not sure that's the whole story. I tried that since it was 2x 3096 and I figured maybe there's something to it but there wasn't.

0 Kudos
dariusd
VMware Employee
VMware Employee

Thank you very much for reporting this.  The problem occurs when the virtual machine's memory size is not a multiple of 16 MBytes, i.e. the value of memSize in the .vmx configuration file is not divisible by 16.  The cause of the failure has already been identified and this bug should soon be thoroughly squashed.

In the meantime, sticking to multiples of 16 MBytes should keep this defect out of your way.

Thanks again for helping us to improve Fusion for Apple Silicon!
--
Darius

0 Kudos