Description of problem:
dominfo is showing used memory and max memory as same in the guest domain.
I am using lxc driver within libvirt 0.8.0.
Version-Release number of selected component (if applicable):
Compiled against library: libvir 0.8.0
Using library: libvir 0.8.0
Using API: LXC 0.8.0
Running hypervisor: LXC 2.6.31
Fedora 12 32bit OS.
Steps to Reproduce:
1.Create a domain using libvirt Domain XML.
2.issue virsh -c lxc:/// dominfo 'domainname'
Used memory is same as max memory.
Used memory should be lesser that max memory.
The 'current' memory limit of dominfo shows the amount of memory that a hypervisor is currently permitted to give to the guest, NOT the amount of memory actually being currently used by that guest. For hypervisors like qemu that support memory ballooning, the current limit can be less than the max. But for LXC, there is no difference between the two numbers, because there is no balloon to force an artificial reduction of the limits. I think this is a misunderstanding of what the API gives you, and not an actual bug in libvirt. Feel free to reopen this if you have information to the contrary.