[GH-ISSUE #157] Virtual machine views don't show Max vs Used memory or vcpu #129

Closed
opened 2026-02-27 16:38:03 +03:00 by kerem · 2 comments
Owner

Originally created by @treydock on GitHub (Dec 6, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/157

I just begun using webvirtmgr (amazing application) and noticed that the views and edit pages for virtual machines do not show the Used and Max memory or vcpus separately. My workflow is to typically set the max memory and vcpu to double the allocated value.

Before I worked on a PR I wanted to check if current memory and vcpu representations on the web interface were intentional.

Example of a domain XML that has memory of 2GB max and 1GB allocated and 2 VCPUs max and 1 allocated.

<domain type='kvm'>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static' current='1'>2</vcpu>
</domain>

Ideally the interface would show these 2 values separately for both memory and vcpu so the current allocation and max allocation could be viewed and set.

Originally created by @treydock on GitHub (Dec 6, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/157 I just begun using webvirtmgr (amazing application) and noticed that the views and edit pages for virtual machines do not show the Used and Max memory or vcpus separately. My workflow is to typically set the max memory and vcpu to double the allocated value. Before I worked on a PR I wanted to check if current memory and vcpu representations on the web interface were intentional. Example of a domain XML that has memory of 2GB max and 1GB allocated and 2 VCPUs max and 1 allocated. ``` xml <domain type='kvm'> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>1048576</currentMemory> <vcpu placement='static' current='1'>2</vcpu> </domain> ``` Ideally the interface would show these 2 values separately for both memory and vcpu so the current allocation and max allocation could be viewed and set.
kerem closed this issue 2026-02-27 16:38:04 +03:00
Author
Owner

@k3oni commented on GitHub (Dec 6, 2013):

From what i see in the code the amounts allocated are fixed, this is why there is no max value for neither cpu or memory so it is allocating from start what you give it.

It would be probably good to add max values for each but at the same time this might be better handled in a autoscaling feature ??

<!-- gh-comment-id:30017896 --> @k3oni commented on GitHub (Dec 6, 2013): From what i see in the code the amounts allocated are fixed, this is why there is no max value for neither cpu or memory so it is allocating from start what you give it. It would be probably good to add max values for each but at the same time this might be better handled in a autoscaling feature ??
Author
Owner

@retspen commented on GitHub (Dec 7, 2013):

Ok need add this functionality, but in new version v4.

<!-- gh-comment-id:30055171 --> @retspen commented on GitHub (Dec 7, 2013): Ok need add this functionality, but in new version v4.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#129
No description provided.