Answers: <p>You must be Install the <strong>Virtio Balloon</strong> driver AND the <strong>Balloon service</strong> in the guest:</p>
  
  <p>1-Open Device Manager and see if there is an unknown PCI device. If so, right click it and install the driver manually from D:\Balloon\2K16\amd64 (or 2k12, 2k8, etc)</p>
  
  <p>2-Now copy the entire amd64 folder into C:\Program Files\ (NOT x86) and rename it "Balloon". So, now you have the amd64 folder from the disc copied as C:\Program Files\Balloon</p>
  
  <p>3-Open an Administrative Command Prompt and cd to C:\Program Files\Balloon</p>
  
  <p>4-Run this command:</p>
  
  <pre><code>BLNSVR.exe -i
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2019-08-05T15:03:12.933Z
Answers: Thanks it worked!
Answers: Milad Yarmohammadi
Answers: CC BY-SA 4.0
Answers: 2019-08-05T11:19:27.173Z
Answers: 2019-08-05T11:19:27.173Z
Answers: Rasoul Mohammadi
Answers: <p>In PowerShell</p>
  
  <pre><code>Get-WmiObject -Class win32_operatingsystem -Property TotalVisibleMemorySize,FreePhysicalMemory
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>wmic os get freephysicalmemory
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>systeminfo
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2019-08-05T10:00:12.073Z
Answers: Thanks for your response. But how to use these commands from outside of windows? I want to monitor them without login to them
Answers: Milad Yarmohammadi
Answers: CC BY-SA 4.0
Answers: 2019-08-05T10:57:25.973Z
Answers: You can pass -ComputerName to Get-WmiObject to run it remotely
Answers: Gaius
Answers: CC BY-SA 4.0
Answers: 2019-08-05T09:17:43.487Z
Answers: 2019-08-05T09:17:43.487Z
Answers: Gaius
Body: <p>I have an <em>Rocky OpenStack cluster</em>, I want to monitor memory usage of instances.</p>
  
  <p>monitoring of Linux instances is OK but Windows Server instances do not provide any data for memory usage. </p>
  
  <p>I've searched a lot, I've installed <em>balloon</em> driver on windows instances but not worked for me. All components are updated to latest version. </p>
  
  <p>So how can I get memory usage data from them?</p>
  
Tags: <monitoring><openstack>
Title: How to get Memory Usage from Windows Server 2012 R2 in OpenStack
UserDisplayName: Milad Yarmohammadi
ThreadText: # How to get Memory Usage from Windows Server 2012 R2 in OpenStack
  
  (Asked by: username_0 on 2019-08-05)
  
  I have an *Rocky OpenStack cluster*, I want to monitor memory usage of instances.
  
  monitoring of Linux instances is OK but Windows Server instances do not provide any data for memory usage.
  
  I've searched a lot, I've installed *balloon* driver on windows instances but not worked for me. All components are updated to latest version.
  
  So how can I get memory usage data from them?
  
  **Tags:** monitoring, openstack
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-08-05. Score: 1 | Accepted answer
  
  You must be Install the **Virtio Balloon** driver AND the **Balloon service** in the guest:
  
  1-Open Device Manager and see if there is an unknown PCI device. If so, right click it and install the driver manually from D:\Balloon\2K16\amd64 (or 2k12, 2k8, etc)
  
  2-Now copy the entire amd64 folder into C:\Program Files\ (NOT x86) and rename it "Balloon". So, now you have the amd64 folder from the disc copied as C:\Program Files\Balloon
  
  3-Open an Administrative Command Prompt and cd to C:\Program Files\Balloon
  
  4-Run this command:
  
  ```
  BLNSVR.exe -i
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks it worked!  
  
  ---
  
  ### Answer by username_2 on 2019-08-05. Score: 2
  
  In PowerShell
  
  ```
  Get-WmiObject -Class win32_operatingsystem -Property TotalVisibleMemorySize,FreePhysicalMemory
  
  ```
  
  Or
  
  ```
  wmic os get freephysicalmemory
  
  ```
  
  Or
  
  ```
  systeminfo
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks for your response. But how to use these commands from outside of windows? I want to monitor them without login to them  
  > **username_2**: You can pass -ComputerName to Get-WmiObject to run it remotely  
  
  ---
  
  