Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Fix Version/s: CU-2.6.32-042stab114.X, OpenVZ-legacy
-
Component/s: Containers::Kernel
-
Security Level: Public
-
Environment:Fully updated CentOS 6, e.g.
Description
>Description of problem:
I'm using OpenVZ and KVM on the same host for couple years.
Initially I just disabled the memory cgroup support due to incompatibility between OpenVZ and libvirt.
But recently I found myself in need to use it (because CentOS 7 guest has memory cgroup created for it anyway, it's visible from the host and libvirt uses this cgroup and inherits VPS memory limitations making libvirt/KVM unusable).
Therefore I enabled memory cgroup (via cgconfig) on HN.
KVM's libvirtd uses the memory.use_hierarchy special file.
Vanilla EL/CentOS 6 systems do have this setting available but OpenVZ kernel does not export it. Currently I've rebuilt libvirt to bypass this check and it runs OK.
>How reproducible: always
>Steps to Reproduce:
1. List the files under root memory cgroup directory
2. Look for memory.use_hierarchy file
>Actual results: File not found
>Expected results: File is found
>Host OS: CentOS 6.7 x86_64
>Guest OS: irrelevant
>Additional info (see https://openvz.org/Reporting_OpenVZ_problem):
[root@opennode ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@opennode ~]# uname -a
Linux opennode.infocs.ru 2.6.32-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@opennode ~]# rpm -qa|grep vz
vzstats-0.5.3-1.noarch
vzkernel-2.6.32-042stab113.11.x86_64
vzkernel-devel-2.6.32-042stab113.11.x86_64
vzctl-4.9.4-1.x86_64
vzctl-core-4.9.4-1.x86_64
e2fsprogs-resize2fs-static-1.42.11-1.ovz.x86_64
vzquota-3.1-1.x86_64
I'm using OpenVZ and KVM on the same host for couple years.
Initially I just disabled the memory cgroup support due to incompatibility between OpenVZ and libvirt.
But recently I found myself in need to use it (because CentOS 7 guest has memory cgroup created for it anyway, it's visible from the host and libvirt uses this cgroup and inherits VPS memory limitations making libvirt/KVM unusable).
Therefore I enabled memory cgroup (via cgconfig) on HN.
KVM's libvirtd uses the memory.use_hierarchy special file.
Vanilla EL/CentOS 6 systems do have this setting available but OpenVZ kernel does not export it. Currently I've rebuilt libvirt to bypass this check and it runs OK.
>How reproducible: always
>Steps to Reproduce:
1. List the files under root memory cgroup directory
2. Look for memory.use_hierarchy file
>Actual results: File not found
>Expected results: File is found
>Host OS: CentOS 6.7 x86_64
>Guest OS: irrelevant
>Additional info (see https://openvz.org/Reporting_OpenVZ_problem):
[root@opennode ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@opennode ~]# uname -a
Linux opennode.infocs.ru 2.6.32-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@opennode ~]# rpm -qa|grep vz
vzstats-0.5.3-1.noarch
vzkernel-2.6.32-042stab113.11.x86_64
vzkernel-devel-2.6.32-042stab113.11.x86_64
vzctl-4.9.4-1.x86_64
vzctl-core-4.9.4-1.x86_64
e2fsprogs-resize2fs-static-1.42.11-1.ovz.x86_64
vzquota-3.1-1.x86_64