Displaying 20 results from an estimated 4000 matches similar to: "libvirt/qemu and cgroups"
2014 Feb 10
2
Re: libvirt/qemu and cgroups
> The precise answer depends on which version of systemd you have. In
> any systemd host though, systemd should ensure all the filesystems
> are mounted correctly. If you have libvirt >= 1.1.1 and systemd >= 205
> then you can use its "slice" and "scope" concepts to setup grouping
> of VMs. If you have older systemd, then you have to setup groups
>
2014 Feb 15
2
lxc and cgroups
Dear list,
I am bulding a VM using libvirt and lxc for linux container. I have an
issue with my cgroups settings:
gabx@hortensia ➤➤ ~ # virsh start dahlia
error: Failed to start domain dahlia
error: internal error: No valid cgroup for machine dahlia
My environement:
Host : Arch Linux - systemd 208-11, libvirt 1.2.1-4
guest : Arch Linux , machine name : dahlia ,
/etc/libvirt/lxc/dahlia.xml ,
2013 Mar 14
1
cgroups not working?
Hi,
I'm trying to use cgroups to limit the apache webserver but this doesn't
seem to work as far as I can tell.
I modified cgconfig.conf like this:
group webserver {
cpu {
cpu.shares="250";
}
}
and addes this to cgrules.conf:
*:httpd * webserver
Looking into the "webserver" cgroup shows that the pid's of
2012 Nov 07
1
libvirt with lxc: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted
Hi,
I'm running OpenStack to manage LXC instance through libvirt. The same
setting runs perfectly well on Ubuntu 12.04, while on CentOS 6u3, libvirt
dumped following message when starting lxc instance.
virsh -c lxc:/// start instance-00000032
error: internal error The 'cpuacct', 'devices' & 'memory' cgroups
controllers must be mounted
Really appreciated if
2014 Feb 10
0
Re: libvirt/qemu and cgroups
On Mon, Feb 10, 2014 at 01:28:42PM +0100, arnaud gaboury wrote:
> > The precise answer depends on which version of systemd you have. In
> > any systemd host though, systemd should ensure all the filesystems
> > are mounted correctly. If you have libvirt >= 1.1.1 and systemd >= 205
> > then you can use its "slice" and "scope" concepts to setup
2011 Nov 01
1
auto-set /cgroup/*/libvirt/qemu/<vm name>/ directory permissions on creation
Is there a way to automatically set the permissions of cgroups directories
created by libvirt when a VM is launched?
Although it looks like I can set permissions on top-level /cgroup
directories via cgconfig.conf, the cgconfig.conf manpage says "Permissions
are related only to enclosing control group and are not inherited by
subgroups.". From this, I believe that when libvirt
2012 Jan 25
2
How to change libvirt / cgroup interaction?
Hi there,
Do you know if there is a way to modify how libvirt interacts with the
cgroup?
Because, I successfully add the /dev/net/tun support in my LXC container
by doing:
echo c 10:200 rwm >> /cgroup/libvirt/lxc/instance-00000005/devices.allow
But when I restart the instance/LXC container, this option has gone.
How can I make this persistant? Is there a configuration file?
Thanks
2014 Dec 14
0
Difficulty configuring Cgroups on redhat/centos
Hello All,
i am trying to set "memory.limit_in_bytes" for all process
created by libvirt.But i am not able to achieve this on RHEL systems
in Ubuntu servers creating memory cgroup for "libvirt-qemu" user
solves the issue.But in case of RHEL system i tried to create a group
by editing "cgconfig.conf" and then changing cgrules.conf and
restarted cgconfig and
2012 Dec 13
1
RHEL6 cgroup error after a few days of uptime
I have a RHEL6 that hosts many kvm virtual machines. It has been
working fine for a couple years. I apply errata updates about once a
week.
In the last couple weeks, I've ran into a bug where the virtual
machines start failing to start with a cgroup error message. If I
reboot the host (very disruptive) then things start working normaly
for a few days.
Can I configure qemu/libvirt not to use
2011 Jan 23
2
Cgroup
Hello,
I'm running Debian Sid with libvirt/qemu/kvm packages from experimental:
$ qemu --version
QEMU emulator version 0.13.0 (Debian 0.13.0+dfsg-2), Copyright (c)
2003-2008 Fabrice Bellard
$ kvm --version
QEMU emulator version 0.13.0 (qemu-kvm-0.13.0 Debian 0.13.0+dfsg-2),
Copyright (c) 2003-2008 Fabrice Bellard
$ libvirtd --version
libvirtd (libvirt) 0.8.6
/etc/libvirt/qemu.conf
2016 Sep 07
2
how to limit cpu usage for specified processes
Hi,
Is there some tool or method in centos that can limit cpu usage to some percentage for specified processes that consume large cpu resource?
I found cpulimit which is only able to limit one process. what I want is one tool that can limit several same processes' cpu usage. Thanks!
Regards
andrew
2014 Feb 12
2
Re: LXC container driver
>
> NB user namespaces are a fairly new piece of functionality that
> is still somewhat rough around the edges. You usuaully want to
> have the most recent kernel.org stable kernel available when
> using this.
>
Yes, I confirm it is a little bit touchy for me.
gabx@hortensia ➤➤ ~ % uname -a
Linux hortensia 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET
2014 x86_64
2012 Aug 17
1
getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
Hello,
I'm trying to use libvirt as a non-root user to obtain statistics on the
CPU usage by VMs using the Python API. I'm performing basically the
following steps:
import libvirt
conn = libvirt.openReadOnly(None)
dom = conn.lookupByUUIDString('268e38ea-1bc7-41e4-c19e-8eff682e58e4')
dom.getCPUStats(True, 0)
However, they result in the following error:
libvir: QEMU Driver
2012 May 11
1
Permission issue with cgroups
Hello libvirt users,
I'm using the cgroup with QEMU guests. At /etc/libvirt/qemu.conf, I have
the following parameter:
cgroup_controllers = [ "cpu" ]
This controller is successfully mounted and libvirt is able to create
subgroups for each VM, it's really great the cgroups support in libvirt.
The problem is that I can only set the parameters of a given cgroup under
the cpu
2014 Feb 10
0
Re: libvirt/qemu and cgroups
On Mon, Feb 10, 2014 at 12:29:10AM +0100, arnaud gaboury wrote:
> Dear list,
>
> I am building a Arch server on my Arch box.
> My tools are QEMU/KVM and libvirt to manage the guest, systemd as
> system manager.
>
> I am looking at implementing the Linux Control Groups facilities for
> resource management. Even after long hours of reading, I am not quite
> sure about
2013 Aug 21
2
Information needed regarding the libvirt version libvirt-1.0.6-1
Hi,
We have upgraded the libvirt version from libvirt-1.0.5 to libvirt-1.0.6-1
on our linux machine. After this upgrade "virsh cpu-stats <domain>" command
is not working on our HardWare.
*virsh # cpu-stats test
error: Failed to retrieve CPU statistics for domain 'test'
error: internal error error accessing cgroup cpuacct for vcpu*
**
*# cat /proc/cgroups
#subsys_name
2014 Feb 12
1
Re: LXC container driver
On Wed, Feb 12, 2014 at 03:21:18PM +0100, arnaud gaboury wrote:
> I am totally lost in this UID/GID mapping. Maybe all this stuff is
> just beyond my competence.
>
> For now, I am writing a basic mydomain.xml file following these 3 wiki:
> LXC container from libvirt.org[1]
> Linux containers guide from Rad Hat 7[2]
> getting start with lxc from P.Berrange [3]
>
> This
2014 Feb 10
2
Re: libvirt/qemu and cgroups
>
> Lets say you want a 2 level hierarchy for the guest from your example
> above. In the libvirt XML you would set the partition name to:
>
> /machine/dahlia
>
> this corresponds to a systemd slice call machine-dahlia.slice
>
> If you wanted a third level you'd need to create machine-dahlia.slice
> and also create machine-dahlia-foo.slice, making sure the
2011 Feb 15
2
monitiring cpu usage via cgroup
Hi
I was asking about the fedora 14 kernel if it is good enough for cgroup
usage because
I am trying to set a cgroup under cpu subsytem ( /dev/cgroup/cpu/group1/
) that have /cpu.rt_runtime_us of 100000
while cpu.rt_period_us has a value of 1000000 i.e a ratio of 1/10 . still
when I run a task (endless loop) in that group
(cgexec -g cpu,cpuset:group1 ./test) it gets all the cpu core time
2014 Sep 15
2
cgroups inside LXC containers losts memory limits after some time
Hi all
I have CentOS Linux release 7.0.1406, libvirt 1.2.7 installed.
Just after create and start inside LXC container present cgroups.
Example for memory:
[root@ce7-t1 /]# ls -la /sys/fs/cgroup/memory/
total 0
drwxr-xr-x 2 root root 0 Sep 15 17:14 .
drwxr-xr-x 12 root root 280 Sep 15 17:14 ..
-rw-r--r-- 1 root root 0 Sep 15 17:14 cgroup.clone_children
--w--w--w- 1 root root 0 Sep 15