On Tue, Mar 12, 2013 at 06:14:55PM +0530, Saurabh Deochake wrote:
> Hi all,
> 

Hi,


> I'm new to LXC and libvirt. I have created a LXC container using libvirt.
> In domain XML file I have mentioned "memory" and "current memory" as 256
> MB.
> 
> Now I want to check the memory inside the container, but whenever I run top
> command or try to cat /proc/meminfo, it shows host machine's memory which
> is 3GB.
> 
> So is there any command by which I can check containers memory?
> 

You could use virsh commands such as dominfo or memtune.

virsh --connect lxc:// dominfo <vm-id>

regards,
Rudy

-- 
Rudy Godoy
http://stone-head.org

_______________________________________________
libvirt-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to