A few strange things I noticed with the RAM hardware details for my VM’s.
Ex, Have VMware VM with 4 GB of RAM and the host details page show:
On the Hosts page and I do manage columns and “Reported data” and select RAM I see for the same VM:
So the HW properties shows 1 GB too much and the “Reported data” RAM value is for some reason has some rounding problems and shows 3.83 GB instead of 4 GB.
The HW properties card reports RAM specifically from the fact dmi::memory::maximum_capacity. The “Reported data” value comes from the host’s reported data facet, which from my reading of our code may come from Ansible, Puppet, or another fact parser.
@Marek_Hulan Do we need to update where the HW Properties card gets its data?
The additional GB: perhaps you increased the memory capacity on the VM, but live resizing is not supported? You may need to turn the machine off and turn it back on. Setting the correct virtual hardware can allow you to live add memory, depending on your guest OS.
I don’t think this is true. Hardware properties go via the compute resources, in this case talking directly to VMware API. Reported data is extracted from facts, which comes from sources such Ansible, Puppet, or RHSM.
To be able to add CPU/Memory on the fly in VMware, when you make the VM, you want to drop down both the CPU and Memory dropdown and make sure the check boxes are selected for:
CPU Hot Plug
Memory Hot Plug
You will need to power off the VM, check those boxes and power it up, after that you should be able to add more CPU/Ram on the fly. Each OS has a limit of how much can be added so it does not cause a crash with the Kernel or in Windows.
None of my hosts are provisioned by Foreman, only added to Foreman after the fact using the “Register Host” curl command. Tried to look for a pattern comparing HW properties to OS but it seems for some hosts it is correct but for most it is either 1 GB wrong or totally wrong like 257 GB instead of configured 16 GB and for some all that information is totally empty.
The issue is only for VM’s running in VMware. Have 100+ VM’s using AHV (Nutanix) as hypervisor and all of them are good.
If I register a server with 1 GB of RAM, 1 GB of RAM is shown in “HW properties”.
If I register a server with 2 GB of RAM, 2 GB of RAM is shown in “HW properties”.
If I register a server with 4 GB of RAM, 5 GB of RAM is shown in “HW properties”.
If I register a server with 8 GB of RAM, 9 GB of RAM is shown in “HW properties”.