Win32_PhysicalMemory blank

Discussions about using Windows guests in VirtualBox.
Post Reply
TheScriptGuy
Posts: 5
Joined: 15. May 2021, 05:39

Win32_PhysicalMemory blank

Post by TheScriptGuy »

Hi!

When running the Powershell script to get memory

Code: Select all

Get-WmiObject Win32_PhysicalMemory
it returns nothing but my desktop definitely has RAM assigned. This is applicable to both Windows 10 and Windows 11 and I've had this problem on 7.0.4 as well as 6.1.40.

I have to rely on that Powershell command as I have a monitoring tool that pulls information from that command.

Is there something I need to tweak in my Virtualbox configuration to allow the OS to gather the memory correctly when the Powershell command is run?

Code: Select all

vmuser@host:~$ vboxmanage showvminfo Win11Client1 
Name:                        Win11Client1
Encryption:     disabled
Groups:                      /
Guest OS:                    Windows 11 (64-bit)
UUID:                        2be2f6d3-3912-4179-832f-45443cc65bc6
Config file:                 /storage/virtualmachines/Win11Client1/Win11Client1.vbox
Snapshot folder:             /storage/virtualmachines/Win11Client1/Snapshots
Log folder:                  /storage/virtualmachines/Win11Client1/Logs
Hardware UUID:               2be2f6d3-3912-4179-832f-45443cc65bc6
Memory size:                 4096MB
Page Fusion:                 disabled
VRAM size:                   128MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    EFI
Number of CPUs:              2
PAE:                         enabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      disabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              disabled
Boot Device 1:               DVD
Boot Device 2:               HardDisk
Boot Device 3:               Not Assigned
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
BIOS NVRAM File:             /storage/virtualmachines/Win11Client1/Win11Client1.nvram
RTC:                         local time
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 enabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
AMD-V Virt. Vmsave/Vmload:   enabled
IOMMU:                       None
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   HyperV
State:                       running (since 2022-11-22T19:05:11.541000000)
Graphics Controller:         VBoxVGA
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:          
Teleporter Password:         
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:       
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:            
VM process priority:         default
Storage Controllers:
#0: 'SATA Controller', Type: IntelAhci, Instance: 0, Ports: 30 (max 30), Bootable
  Port 0, Unit 0: UUID: cedbb2f1-59b7-4fa2-9dd5-e6944575cdd8
    Location: "/storage/virtualmachines/Win11Client1/DISK1.vdi"
#1: 'IDE Controller', Type: PIIX4, Instance: 0, Ports: 2 (max 2), Bootable
  Port 1, Unit 0: UUID: 4e20c13c-0eb7-4b72-9625-33d2d0af6437
    Location: "/iso/VBoxGuestAdditions_7.0.4.iso"
NIC 1:                       MAC: 080027C345C0, Attachment: Bridged Interface 'enp7s0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:                       disabled
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             PS/2 Mouse
Keyboard Device:             PS/2 Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: Default, Controller: AC97, Codec: STAC9700)
Audio playback:              disabled
Audio capture:               disabled
Clipboard Mode:              disabled
Drag and drop Mode:          disabled
Session name:                headless
Video mode:                  1792x1120x32 at 0,0 enabled
VRDE:                        enabled (Address 192.168.1.12, Ports 49998, MultiConn: on, ReuseSingleConn: off, Authentication type: null)
VRDE port:                   49998
Video redirection:           disabled
VRDE property               : TCP/Ports  = "49998"
VRDE property               : TCP/Address = "192.168.1.12"
VRDE property               : VideoChannel/Enabled = <not set>
VRDE property               : VideoChannel/Quality = <not set>
VRDE property               : VideoChannel/DownscaleProtection = <not set>
VRDE property               : Client/DisableDisplay = <not set>
VRDE property               : Client/DisableInput = <not set>
VRDE property               : Client/DisableAudio = <not set>
VRDE property               : Client/DisableUSB = <not set>
VRDE property               : Client/DisableClipboard = <not set>
VRDE property               : Client/DisableUpstreamAudio = <not set>
VRDE property               : Client/DisableRDPDR = <not set>
VRDE property               : H3DRedirect/Enabled = <not set>
VRDE property               : Security/Method = <not set>
VRDE property               : Security/ServerCertificate = <not set>
VRDE property               : Security/ServerPrivateKey = <not set>
VRDE property               : Security/CACertificate = <not set>
VRDE property               : Audio/RateCorrectionMode = <not set>
VRDE property               : Audio/LogPath = <not set>
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    disabled
USB Device Filters:          <none>
Available remote USB devices: <none>
Currently attached USB devices: <none>
Bandwidth groups:            <none>
Shared folders:              <none>
VRDE Connection:             active
Clients so far:              2
Start time:                  2022/11/22 19:05:52 UTC
Sent:                        85233282Bytes
Average speed:               282972B/s
Sent total:                  85233282Bytes
Received:                    30483Bytes
Speed:                       101B/s
Received total:              30483Bytes
User name:                   a
Domain:                      
Client name:                 M-HOST1234
Client IP:                   192.168.1.226
Client version:              67564
Encryption:                  RDP4
Recording enabled:           no
Recording screens:           1
 Screen 0:
    Enabled:                 yes
    ID:                      0
    Record video:            yes
    Destination:             File
    File:                    /storage/virtualmachines/Win11Client1/Win11Client1-screen0.webm
    Options:                 vc_enabled=true,ac_enabled=false,ac_profile=med
    Video dimensions:        1024x768
    Video rate:              512kbps
    Video FPS:               25fps
* Guest:
Configured memory balloon:   0MB
OS type:                     Windows11_64
Additions run level:         3
Additions version:           7.0.4 r154605
Guest Facilities:
Facility "VirtualBox Base Driver": active/running (last update: 2022/11/22 19:05:15 UTC)
Facility "VirtualBox System Service": active/running (last update: 2022/11/22 19:05:20 UTC)
Facility "VirtualBox Desktop Integration": active/running (last update: 2022/11/22 19:06:26 UTC)
Facility "Seamless Mode": active/running (last update: 2022/11/22 19:06:26 UTC)
Facility "Graphics Mode": active/running (last update: 2022/11/22 19:06:26 UTC)
TIA
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Win32_PhysicalMemory blank

Post by fth0 »

While the VM is not running, enter the following command in your favorite shell:

Code: Select all

VBoxManage setextradata "Win11Client1" "VBoxInternal/Devices/efi/0/Config/DmiExposeMemoryTable" "1"
TheScriptGuy
Posts: 5
Joined: 15. May 2021, 05:39

Re: Win32_PhysicalMemory blank

Post by TheScriptGuy »

This is great and has solved my problem! Thank you for sharing. You are a legend! :D
Pythaeus
Posts: 1
Joined: 7. Feb 2023, 16:59

Re: Win32_PhysicalMemory blank

Post by Pythaeus »

fth0 wrote:While the VM is not running, enter the following command in your favorite shell:

Code: Select all

VBoxManage setextradata "Win11Client1" "VBoxInternal/Devices/efi/0/Config/DmiExposeMemoryTable" "1"
how does this work without EFI ?
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Win32_PhysicalMemory blank

Post by fth0 »

Try "/pcbios/" instead of "/efi/".
Post Reply