Displaying 20 results from an estimated 26 matches for "cgconfig".
Did you mean:
gconfig
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 creates VMs, the new
directories under /cgroup/*/libvirt/qemu/<vm name>/ will not receive the
cgconfig.conf per...
2014 Feb 09
3
libvirt/qemu and cgroups
...s for
resource management. Even after long hours of reading, I am not quite
sure about how to deal with the cgroups facilities.
First, do I really need to care about all that, or libvirt and systemd
will manage the resource in an efficient way right out of the box?
If not, It's all about /etc/cgconfig.conf and cgrules.conf. I am
honestly not sure :
-what are the correct mount points for cpu, memory etc in the
/sys/fs/cgroup directory .
- which directories am I supposed to mk, if any ?
Then, Archwiki[1] says:
# cgcreate -a $USER -g memory,cpu:groupname
- what is the groupename I shall create...
2012 Nov 07
1
libvirt with lxc: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted
...ollers must be mounted
Really appreciated if someone could shed some lights. Seems to some libvirt
/ cgroup settings related.
$ cat /proc/mounts
..
none /cgroup cgroup
rw,relatime,net_prio,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,ns,cpuset
0 0
..
$ chkconfig --list | grep cg
cgconfig 0:off 1:off 2:off 3:off 4:off 5:off 6:off
cgred 0:off 1:off 2:off 3:off 4:off 5:off 6:off
xml definition
--
<domain type="lxc">
<uuid>252a2dc5-452c-4e9c-a593-8c386c9f47e6</uuid>
<name>instance-00000032</name>...
2014 Dec 17
0
Again with same Cgroup issue :)
...ied creating a separate hierarchy "mykvm"
and changed in sysconfig/libvirtd after that vm's memory cgroup
reflects this.But it is not obeying "memory.limit_in_bytes" set in
"mykvm" group,i als specified it in cgrules.conf and restarted it.If i
change that in "/cgconfig/memory/mykvm/libvirt/qemu/memory.limit_in_bytes
" its working.But that is dynamic as i am not able to find a way to
mention that in "cgconfig.conf".
How can i make sub hierarchies follow what is set in parent cgroup?
eg: if change variables in "/cgconfig/memory/mykvm"
then...
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
...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 libvirtd but still virtual machines are not
following what is mentioned in config,instead they follow cgroup
libvirt/qemu/virtualmachine-name ,is there any way i can set global
cgroup values for all process rather editing each pro...
2011 Jan 23
2
Cgroup
...p_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet", "/dev/net/tun",
]
/etc/cgconfig.conf
mount {
cpu = /dev/cgroup/cpu;
cpuacct = /dev/cgroup/cpuacct;
devices = /dev/cgroup/devices;
# memory = /dev/cgroup/memory;
blkio = /dev/cgroup/blkio;
}
When I'm running virsh, and want to change cpu shares I receive an error
virsh # schedinfo --set cpu.shares=2048 test
Scheduler...
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 the httpd
processes are correctly assign...
2014 Feb 10
0
Re: libvirt/qemu and cgroups
...n you can use its "slice" and "scope" concepts to setup grouping
of VMs. If you have older systemd, then you have to setup groups
manually. There's some guidance on setting up groups here
http://libvirt.org/cgroups.html
If you have systemd >= 205 then you can ignore cgconfig.conf entirely.
For earlier version, you can use cgconfig.conf to setup the groups
only.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- h...
2011 Feb 15
2
monitiring cpu usage via cgroup
...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 that
is assigned to it ( i watch via top utility) , so it seems
that the quota set via the group does not take effect although I restart
the cgconfig service .
I also verified libcgroup is installed by: rpm -q libcgroup
Am I missing something or top is not the right utility to watch the cpu
usage in this case ?
thanks
Zvi Dubitzky
Email:dubi at il.ibm.com
2012 May 11
1
Permission issue with cgroups
...ble 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 controller if I'm logged in as root. I want another user to have
that permission as well.
I tried to modify the file /etc/cgconfig.conf to change the permissions.
The file is exactly this:
group libvirt {
perm {
admin {
uid = opennebula;
gid = opennebula;
}
task {
uid = root;...
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
2014 Feb 10
2
Re: libvirt/qemu and cgroups
...e" and "scope" concepts to setup grouping
> of VMs. If you have older systemd, then you have to setup groups
> manually. There's some guidance on setting up groups here
>
> http://libvirt.org/cgroups.html
>
> If you have systemd >= 205 then you can ignore cgconfig.conf entirely.
systemd 208-10 and libvirt 1.2.1-1
So you are telling me I spent hours and hours of reading for nothing ? GGGrrhhh.
I use the slice concept (or partition map) with this file :
machine-dahlia.slice
I have been reading and reading again your mentioned link, and I
think it is the...
2012 Mar 08
0
Programs on/off on virtual host machine
...off 5:on 6:off
abrt-oops 0:off 1:off 2:off 3:on 4:off 5:on 6:off
abrtd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cgconfig 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ip6tables 0:off 1:of...
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
2019 May 29
0
Diskless Centos & Cgroup config changes
...ys in the statetab and this causes the machine to
fail, as I have tried /sys in the rwtab. The latter increases the boot time
to a point which is not usable. Trying /sys/fs/cgroup in rwtab seems to
improve boot time but also causes the machine not to complete booting.
I had some more success using cgconfig.conf, I was able to mount the memory
cgroup to a local disk (each node has a local temp disk) and manipulate
this using cgcreate but the cpu would not mount in the same fashion; the
error was: Error: cannot mount cpu to /var/tmp/cgroup/cpu: Device or
resource busy
So my question; in this particula...
2013 Aug 21
0
Re: Information needed regarding the libvirt version libvirt-1.0.6-1
...dWare.
> Since we have to fix this on top priority, can you please reply as soon as
> possible. Please let us know if you need any further information from our
> side.
Libvirt will never attempt to mount any cgroups controllers. It delegates
this task to the base OS. Historically the 'cgconfig' init script would
be used. On distros which use systemd though, systemd will take care of
this task. There's a bit more info here
http://libvirt.org/cgroups.html
Basically our recommendation is to mount all the controllers individually
at /sys/fs/cgroup/<controllername>
Regards,...
2014 Feb 10
0
Re: libvirt/qemu and cgroups
...concepts to setup grouping
> > of VMs. If you have older systemd, then you have to setup groups
> > manually. There's some guidance on setting up groups here
> >
> > http://libvirt.org/cgroups.html
> >
> > If you have systemd >= 205 then you can ignore cgconfig.conf entirely.
>
>
> systemd 208-10 and libvirt 1.2.1-1
>
> So you are telling me I spent hours and hours of reading for nothing ? GGGrrhhh.
>
> I use the slice concept (or partition map) with this file :
>
> machine-dahlia.slice
>
> I have been reading and r...
2014 Dec 15
0
C group hierarchy and libvirtd
On Centos 6.4 x64,with libvirt-0.10.2-18.el6.x86_64 i am trying to
set "memory.limit_in_bytes" for all qemu process.
changed "cgconfig.conf"
group mygroup{
perm {
admin {
uid = root;
gid = root;
}
task {
uid = qemu;
gid = kvm;
}
}
memory {...
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