vzctl cgroup question

D

descention

Guest
Disclaimer: I don't have any experience prior to today on cgroups.

I've been looking into getting openvz containers to work on the (unsupported) debian 3.10 kernel and *think* I'm close. I've been getting an error about "Failed to set limits for CPU limits (Cgroup, requested group parameter does not exist)". I used strace on starting the vm and found this:
Code:
open("/sys/fs/cgroup//vz-104/cpu.cfs_quota_us", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory)
I have an idea that this the missing cpu.cfs_quota_us may possibly be required (see Ref 1 below). What I don't understand is why this would be needed if the vm's "CPULIMIT" is 0. Is it possible to recompile my kernel with support for "cfs_quota_us"?

Ref 1:
http://openvz.org/Vzctl_for_upstream_kernel#Resource_management

Code:
[COLOR=#000000][FONT=tahoma]Directory /proc/vz not found, assuming non-OpenVZ kernel[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Starting container ...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Container is mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Could not properly cleanup container: No such file or directory[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Failed to set limits for CPU limits (Cgroup, requested group parameter does not exist)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Container start failed (try to check kernel messages, e.g. "dmesg | tail")[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Killing container ...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Container was stopped[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Container is unmounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK ERROR: command 'vzctl start 104' failed: exit code 95[/FONT][/COLOR]
Code:
proxmox-ve-2.6.32: not correctly installed (running kernel: 3.10-3-amd64)pve-manager: 3.1-21 (running version: 3.1-21/93bf03d4)
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: not correctly installed
libpve-common-perl: 3.0-8
libpve-access-control: 3.0-7
libpve-storage-perl: 3.0-17
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-4
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!